Class KeyBuilder

java.lang.Object
org.apache.accumulo.core.data.KeyBuilder

public class KeyBuilder extends Object
A builder used to build Keys by defining their components. The rules are:
  • All components of the Key are optional except the row
  • Components not explicitly set default to empty byte array except the timestamp which defaults to Long.MAX_VALUE
  • The column qualifier can only be set if the column family has been set first
  • The column visibility can only be set if at least the column family has been set first
The builder supports three types of components: byte[], Text and CharSequence. CharSequences must be UTF-8 encoded. The builder is mutable and not thread safe.
Since:
2.0
See Also:
  • Constructor Details

    • KeyBuilder

      public KeyBuilder()