use of org.projectnessie.model.TableReference in project nessie by projectnessie.
the class NessieViewCatalog method newViewOps.
protected BaseMetastoreViewOperations newViewOps(TableIdentifier viewIdentifier) {
validateTableIdentifier(viewIdentifier);
TableReference tr = TableReference.parse(viewIdentifier.name());
Preconditions.checkArgument(!tr.hasTimestamp(), "Invalid view name: # is only allowed for hashes (reference by " + "timestamp is not supported)");
UpdateableReference newReference = this.reference;
if (tr.getReference() != null) {
newReference = loadReference(tr.getReference(), tr.getHash());
}
return new NessieViewOperations(ContentKey.of(org.projectnessie.model.Namespace.of(viewIdentifier.namespace().levels()), tr.getName()), newReference, api, fileIO, catalogOptions);
}
use of org.projectnessie.model.TableReference in project iceberg by apache.
the class NessieCatalog method newTableOps.
@Override
protected TableOperations newTableOps(TableIdentifier tableIdentifier) {
TableReference tr = TableReference.parse(tableIdentifier.name());
Preconditions.checkArgument(!tr.hasTimestamp(), "Invalid table name: # is only allowed for hashes (reference by " + "timestamp is not supported)");
UpdateableReference newReference = this.reference;
if (tr.getReference() != null) {
newReference = loadReference(tr.getReference(), tr.getHash());
}
return new NessieTableOperations(ContentKey.of(org.projectnessie.model.Namespace.of(tableIdentifier.namespace().levels()), tr.getName()), newReference, api, fileIO, catalogOptions);
}
Aggregations