Package org.apache.accumulo.core.data
Class KeyBuilder
java.lang.Object
org.apache.accumulo.core.data.KeyBuilder
A builder used to build
Keys by defining their components.
The rules are:
- All components of the
Keyare 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
byte[], Text and
CharSequence. CharSequences must be UTF-8 encoded.
The builder is mutable and not thread safe.- Since:
- 2.0.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interfaceBuilder step used to set the columnFamily part of theKey.static interfaceBuilder step used to set the column qualifier part of theKey.static interfaceBuilder step used to set the column visibility part of theKey.static interfaceBuilder step used to set the row part of theKey. -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
KeyBuilder
public KeyBuilder()
-