public static CellBuilder create(CellBuilderType type) {
    switch (type) {
      case SHALLOW_COPY:
        return new IndividualBytesFieldCellBuilder();
      case DEEP_COPY:
        return new KeyValueBuilder();
      default:
        throw new UnsupportedOperationException("The type:" + type + " is unsupported");
    }
  }
Create a CellBuilder instance.
@param type indicates which memory copy is used in building cell.
@return An new CellBuilder
hbase-common/src/main/java/org/apache/hadoop/hbase/CellBuilderFactory.java