Package org.projectnessie.model
Class TableReference
- java.lang.Object
-
- org.projectnessie.model.TableReference
-
- Direct Known Subclasses:
ImmutableTableReference
@Immutable public abstract class TableReference extends Object
Functionality to parse a table-reference string representation containing the table name plus optional reference name, commit hash or timestamp.The syntax is
table-identifier ( '@' reference-name )? ( '#' hashOrTimestamp )?table-identifieris the table-identifier.reference-nameis the optional name of a branch or tag in Nessie.hashOrTimestampis the optional Nessie commit-hash or a timestamp within the named reference. IfhashOrTimestamprepresents a valid commit hash, it is interpreted as one, otherwise it represents a timestamp.
-
-
Constructor Summary
Constructors Constructor Description TableReference()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract @NotEmpty StringgetHash()abstract @NotNull @NotEmpty StringgetName()abstract @NotEmpty StringgetReference()abstract @NotEmpty StringgetTimestamp()booleanhasHash()booleanhasReference()booleanhasTimestamp()static TableReferenceparse(String tableReference)Parses the string representation of a table-reference to aTableReferenceobject.StringtoString()
-
-
-
Method Detail
-
getName
@NotNull @NotEmpty public abstract @NotNull @NotEmpty String getName()
-
hasReference
@Redacted public boolean hasReference()
-
hasTimestamp
@Redacted public boolean hasTimestamp()
-
hasHash
@Redacted public boolean hasHash()
-
parse
public static TableReference parse(String tableReference)
Parses the string representation of a table-reference to aTableReferenceobject.
-
-