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 buildKeys 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[],TextandCharSequence.CharSequences 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 interfaceKeyBuilder.Buildstatic interfaceKeyBuilder.ColumnFamilyStepBuilder step used to set the columnFamily part of theKey.static interfaceKeyBuilder.ColumnQualifierStepBuilder step used to set the column qualifier part of theKey.static interfaceKeyBuilder.ColumnVisibilityStepBuilder step used to set the column visibility part of theKey.static interfaceKeyBuilder.RowStepBuilder step used to set the row part of theKey.
-
Constructor Summary
Constructors Constructor Description KeyBuilder()
-