Class TableReference


  • @Immutable
    public abstract class TableReference
    extends java.lang.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 Detail

      • TableReference

        public TableReference()
    • 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:
        toString in class java.lang.Object
      • parse

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