Package org.apache.accumulo.core.data
Class KeyBuilder
- java.lang.Object
-
- org.apache.accumulo.core.data.KeyBuilder
-
public class KeyBuilder extends Object
A builder used to buildKey
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
andCharSequence
.CharSequence
s must be UTF-8 encoded. The builder is mutable and not thread safe.- Since:
- 2.0
- See Also:
Key
- All components of the
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
KeyBuilder.Build
static interface
KeyBuilder.ColumnFamilyStep
Builder step used to set the columnFamily part of theKey
.static interface
KeyBuilder.ColumnQualifierStep
Builder step used to set the column qualifier part of theKey
.static interface
KeyBuilder.ColumnVisibilityStep
Builder step used to set the column visibility part of theKey
.static interface
KeyBuilder.RowStep
Builder step used to set the row part of theKey
.
-
Constructor Summary
Constructors Constructor Description KeyBuilder()
-