Class TableReference

java.lang.Object
org.projectnessie.model.TableReference

@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-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 Details

    • TableReference

      public TableReference()
  • Method Details

    • getName

      @NotNull @NotNull @NotEmpty @NotEmpty public abstract @NotNull @NotNull @NotEmpty @NotEmpty String getName()
    • getReference

      @Nullable @Nullable @NotEmpty @NotEmpty public abstract @NotEmpty @NotEmpty String getReference()
    • hasReference

      @Redacted public boolean hasReference()
    • getTimestamp

      @Nullable @Nullable @NotEmpty @NotEmpty public abstract @NotEmpty @NotEmpty String getTimestamp()
    • hasTimestamp

      @Redacted public boolean hasTimestamp()
    • getHash

      @Nullable @Nullable @NotEmpty @NotEmpty public abstract @NotEmpty @NotEmpty String getHash()
    • hasHash

      @Redacted public boolean hasHash()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • parse

      public static TableReference parse(String tableReference)
      Parses the string representation of a table-reference to a TableReference object.