Enum TrailingBytes

java.lang.Object
java.lang.Enum<TrailingBytes>
io.github.flink.gcp.connector.bigtable.table.TrailingBytes
All Implemented Interfaces:
Serializable, Comparable<TrailingBytes>, java.lang.constant.Constable

@PublicEvolving public enum TrailingBytes extends Enum<TrailingBytes>
What a fixed-width decoder does with a cell or row key longer than the declared type's layout.

A BOOLEAN cell is outside this choice: HBase's Bytes.toBoolean rejects any array that is not exactly one byte, and the decoder mirrors that under both values.

  • Enum Constant Details

    • IGNORE

      public static final TrailingBytes IGNORE
      Decode the declared width and ignore the rest, which is what HBase's Bytes decoders do. This reads the leading component of a composite key, and it is what makes an equality predicate on a fixed-width row key match every key that decodes to the compared value.
    • REJECT

      public static final TrailingBytes REJECT
      Fail the read on any length but the declared type's exact width, so a value that was not written under this connector's encoding cannot silently decode as its prefix.
  • Method Details

    • values

      public static TrailingBytes[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static TrailingBytes valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      Overrides:
      toString in class Enum<TrailingBytes>