Class 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-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 String getName()
      • getReference

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

        @Redacted
        public boolean hasReference()
      • getTimestamp

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

        @Redacted
        public boolean hasTimestamp()
      • hasHash

        @Redacted
        public boolean hasHash()