Package org.apache.accumulo.core.data
Class KeyBuilder
java.lang.Object
org.apache.accumulo.core.data.KeyBuilder
A builder used to build
Key
s 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
byte[]
, Text
and
CharSequence
. CharSequence
s must be UTF-8 encoded.
The builder is mutable and not thread safe.- Since:
- 2.0
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static interface
Builder step used to set the columnFamily part of theKey
.static interface
Builder step used to set the column qualifier part of theKey
.static interface
Builder step used to set the column visibility part of theKey
.static interface
Builder step used to set the row part of theKey
. -
Constructor Summary
-
Method Summary
-
Constructor Details
-
KeyBuilder
public KeyBuilder()
-