org.apache.hadoop.hbase.mapreduce
Class CellCreator

java.lang.Object
  extended by org.apache.hadoop.hbase.mapreduce.CellCreator

@InterfaceAudience.Public
@InterfaceStability.Evolving
public class CellCreator
extends Object

Facade to create Cells for HFileOutputFormat. The created Cells are of Put type.


Field Summary
static String VISIBILITY_EXP_RESOLVER_CLASS
           
 
Constructor Summary
CellCreator(org.apache.hadoop.conf.Configuration conf)
           
 
Method Summary
 Cell create(byte[] row, int roffset, int rlength, byte[] family, int foffset, int flength, byte[] qualifier, int qoffset, int qlength, long timestamp, byte[] value, int voffset, int vlength)
           
 Cell create(byte[] row, int roffset, int rlength, byte[] family, int foffset, int flength, byte[] qualifier, int qoffset, int qlength, long timestamp, byte[] value, int voffset, int vlength, List<Tag> tags)
           
 Cell create(byte[] row, int roffset, int rlength, byte[] family, int foffset, int flength, byte[] qualifier, int qoffset, int qlength, long timestamp, byte[] value, int voffset, int vlength, String visExpression)
          Deprecated. 
 VisibilityExpressionResolver getVisibilityExpressionResolver()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VISIBILITY_EXP_RESOLVER_CLASS

@InterfaceStability.Unstable
public static final String VISIBILITY_EXP_RESOLVER_CLASS
See Also:
Constant Field Values
Constructor Detail

CellCreator

public CellCreator(org.apache.hadoop.conf.Configuration conf)
Method Detail

create

public Cell create(byte[] row,
                   int roffset,
                   int rlength,
                   byte[] family,
                   int foffset,
                   int flength,
                   byte[] qualifier,
                   int qoffset,
                   int qlength,
                   long timestamp,
                   byte[] value,
                   int voffset,
                   int vlength)
            throws IOException
Parameters:
row - row key
roffset - row offset
rlength - row length
family - family name
foffset - family offset
flength - family length
qualifier - column qualifier
qoffset - qualifier offset
qlength - qualifier length
timestamp - version timestamp
value - column value
voffset - value offset
vlength - value length
Returns:
created Cell
Throws:
IOException

create

@Deprecated
public Cell create(byte[] row,
                              int roffset,
                              int rlength,
                              byte[] family,
                              int foffset,
                              int flength,
                              byte[] qualifier,
                              int qoffset,
                              int qlength,
                              long timestamp,
                              byte[] value,
                              int voffset,
                              int vlength,
                              String visExpression)
            throws IOException
Deprecated. 

Parameters:
row - row key
roffset - row offset
rlength - row length
family - family name
foffset - family offset
flength - family length
qualifier - column qualifier
qoffset - qualifier offset
qlength - qualifier length
timestamp - version timestamp
value - column value
voffset - value offset
vlength - value length
visExpression - visibility expression to be associated with cell
Returns:
created Cell
Throws:
IOException

create

public Cell create(byte[] row,
                   int roffset,
                   int rlength,
                   byte[] family,
                   int foffset,
                   int flength,
                   byte[] qualifier,
                   int qoffset,
                   int qlength,
                   long timestamp,
                   byte[] value,
                   int voffset,
                   int vlength,
                   List<Tag> tags)
            throws IOException
Parameters:
row - row key
roffset - row offset
rlength - row length
family - family name
foffset - family offset
flength - family length
qualifier - column qualifier
qoffset - qualifier offset
qlength - qualifier length
timestamp - version timestamp
value - column value
voffset - value offset
vlength - value length
tags -
Returns:
created Cell
Throws:
IOException

getVisibilityExpressionResolver

@InterfaceStability.Unstable
public VisibilityExpressionResolver getVisibilityExpressionResolver()
Returns:
Visibility expression resolver


Copyright © 2015 The Apache Software Foundation. All rights reserved.