Package org.apache.hadoop.hbase
Class CellBuilderFactory
java.lang.Object
org.apache.hadoop.hbase.CellBuilderFactory
Create a CellBuilder instance. Currently, we have two kinds of Cell Builder.
CellBuilderType.DEEP_COPY
All bytes array passed into builder will be copied to build an
new Cell. The cell impl is KeyValue
CellBuilderType.SHALLOW_COPY
Just copy the references of passed bytes array to build an
new Cell The cell impl is IndividualBytesFieldCell
NOTE: The cell
impl may be changed in the future. The user application SHOULD NOT depend on any concrete cell
impl.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CellBuilder
create
(CellBuilderType type) Create a CellBuilder instance.
-
Constructor Details
-
CellBuilderFactory
private CellBuilderFactory()
-
-
Method Details
-
create
Create a CellBuilder instance.- Parameters:
type
- indicates which memory copy is used in building cell.- Returns:
- An new CellBuilder
-