Package org.projectnessie.model
Class TableReference
java.lang.Object
org.projectnessie.model.TableReference
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-identifier is the table-identifier.
reference-name is the optional name of a branch or tag in Nessie.
hashOrTimestamp is the optional Nessie commit-hash or a timestamp within the named
reference. If hashOrTimestamp represents a valid commit hash, it is interpreted as one,
otherwise it represents a timestamp.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract @NotEmpty @NotEmpty StringgetHash()abstract @NotNull @NotNull @NotEmpty @NotEmpty StringgetName()abstract @NotEmpty @NotEmpty Stringabstract @NotEmpty @NotEmpty StringbooleanhasHash()booleanbooleanstatic TableReferenceParses the string representation of a table-reference to aTableReferenceobject.toString()
-
Constructor Details
-
TableReference
public TableReference()
-
-
Method Details
-
getName
@NotNull @NotNull @NotEmpty @NotEmpty public abstract @NotNull @NotNull @NotEmpty @NotEmpty String getName() -
getReference
-
hasReference
@Redacted public boolean hasReference() -
getTimestamp
-
hasTimestamp
@Redacted public boolean hasTimestamp() -
getHash
-
hasHash
@Redacted public boolean hasHash() -
toString
-
parse
Parses the string representation of a table-reference to aTableReferenceobject.
-