Package org.projectnessie.model
Class TableReference
- java.lang.Object
-
- org.projectnessie.model.TableReference
-
@Immutable public abstract class TableReference extends java.lang.ObjectFunctionality 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 java.lang.StringgetHash()abstract @NotNull @NotEmpty java.lang.StringgetName()abstract @NotEmpty java.lang.StringgetReference()abstract @NotEmpty java.lang.StringgetTimestamp()booleanhasHash()booleanhasReference()booleanhasTimestamp()static TableReferenceparse(java.lang.String tableReference)Parses the string representation of a table-reference to aTableReferenceobject.java.lang.StringtoString()
-
-
-
Method Detail
-
getName
@NotNull @NotEmpty public abstract @NotNull @NotEmpty java.lang.String getName()
-
getReference
@Nullable @NotEmpty public abstract @NotEmpty java.lang.String getReference()
-
hasReference
@Redacted public boolean hasReference()
-
getTimestamp
@Nullable @NotEmpty public abstract @NotEmpty java.lang.String getTimestamp()
-
hasTimestamp
@Redacted public boolean hasTimestamp()
-
getHash
@Nullable @NotEmpty public abstract @NotEmpty java.lang.String getHash()
-
hasHash
@Redacted public boolean hasHash()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
parse
public static TableReference parse(java.lang.String tableReference)
Parses the string representation of a table-reference to aTableReferenceobject.
-
-