|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.CellUtil
@InterfaceAudience.Public @InterfaceStability.Evolving public final class CellUtil
Utility methods helpful slinging Cell instances.
| Constructor Summary | |
|---|---|
CellUtil()
|
|
| Method Summary | |
|---|---|
static byte[] |
cloneFamily(Cell cell)
|
static byte[] |
cloneQualifier(Cell cell)
|
static byte[] |
cloneRow(Cell cell)
get individual arrays for tests |
static byte[] |
cloneValue(Cell cell)
|
static int |
copyFamilyTo(Cell cell,
byte[] destination,
int destinationOffset)
|
static int |
copyQualifierTo(Cell cell,
byte[] destination,
int destinationOffset)
|
static int |
copyRowTo(Cell cell,
byte[] destination,
int destinationOffset)
copyTo |
static int |
copyValueTo(Cell cell,
byte[] destination,
int destinationOffset)
|
static Cell |
createCell(byte[] row,
byte[] family,
byte[] qualifier,
long timestamp,
byte type,
byte[] value)
|
static CellScanner |
createCellScanner(Cell[] cellArray)
|
static CellScanner |
createCellScanner(Iterable<Cell> cellIterable)
|
static CellScanner |
createCellScanner(Iterator<Cell> cells)
|
static CellScanner |
createCellScanner(List<? extends CellScannable> cellScannerables)
|
static CellScanner |
createCellScanner(NavigableMap<byte[],List<Cell>> map)
Flatten the map of cells out under the CellScanner |
static int |
estimatedSizeOf(Cell cell)
|
static ByteRange |
fillFamilyRange(Cell cell,
ByteRange range)
|
static ByteRange |
fillQualifierRange(Cell cell,
ByteRange range)
|
static ByteRange |
fillRowRange(Cell cell,
ByteRange range)
ByteRange |
static ByteBuffer |
getQualifierBufferShallowCopy(Cell cell)
|
static byte |
getRowByte(Cell cell,
int index)
misc |
static ByteBuffer |
getValueBufferShallowCopy(Cell cell)
|
static boolean |
isDelete(Cell cell)
|
static boolean |
isDeleteFamily(Cell cell)
|
static boolean |
matchingFamily(Cell left,
byte[] buf)
|
static boolean |
matchingFamily(Cell left,
Cell right)
|
static boolean |
matchingQualifier(Cell left,
byte[] buf)
|
static boolean |
matchingQualifier(Cell left,
Cell right)
|
static boolean |
matchingRow(Cell left,
byte[] buf)
|
static boolean |
matchingRow(Cell left,
Cell right)
|
static boolean |
matchingValue(Cell left,
byte[] buf)
|
static boolean |
matchingValue(Cell left,
Cell right)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CellUtil()
| Method Detail |
|---|
public static ByteRange fillRowRange(Cell cell,
ByteRange range)
public static ByteRange fillFamilyRange(Cell cell,
ByteRange range)
public static ByteRange fillQualifierRange(Cell cell,
ByteRange range)
public static byte[] cloneRow(Cell cell)
public static byte[] cloneFamily(Cell cell)
public static byte[] cloneQualifier(Cell cell)
public static byte[] cloneValue(Cell cell)
public static int copyRowTo(Cell cell,
byte[] destination,
int destinationOffset)
public static int copyFamilyTo(Cell cell,
byte[] destination,
int destinationOffset)
public static int copyQualifierTo(Cell cell,
byte[] destination,
int destinationOffset)
public static int copyValueTo(Cell cell,
byte[] destination,
int destinationOffset)
public static byte getRowByte(Cell cell,
int index)
public static ByteBuffer getValueBufferShallowCopy(Cell cell)
public static ByteBuffer getQualifierBufferShallowCopy(Cell cell)
public static Cell createCell(byte[] row,
byte[] family,
byte[] qualifier,
long timestamp,
byte type,
byte[] value)
public static CellScanner createCellScanner(List<? extends CellScannable> cellScannerables)
cellScannerables -
cellIterablespublic static CellScanner createCellScanner(Iterable<Cell> cellIterable)
cellIterable -
cellIterablepublic static CellScanner createCellScanner(Iterator<Cell> cells)
cells -
cellIterable or null if cells is
nullpublic static CellScanner createCellScanner(Cell[] cellArray)
cellArray -
cellArraypublic static CellScanner createCellScanner(NavigableMap<byte[],List<Cell>> map)
map - Map of Cell Lists; for example, the map of families to Cells that is used
inside Put, etc., keeping Cells organized by family.
cellIterable
public static boolean matchingRow(Cell left,
Cell right)
left - right -
left and right Cells match
public static boolean matchingRow(Cell left,
byte[] buf)
public static boolean matchingFamily(Cell left,
Cell right)
public static boolean matchingFamily(Cell left,
byte[] buf)
public static boolean matchingQualifier(Cell left,
Cell right)
public static boolean matchingQualifier(Cell left,
byte[] buf)
public static boolean matchingValue(Cell left,
Cell right)
public static boolean matchingValue(Cell left,
byte[] buf)
public static boolean isDelete(Cell cell)
KeyValue.Type.Delete or
a {KeyValue.Type#DeleteFamily} or a KeyValue.Type.DeleteColumn
KeyValue type.public static boolean isDeleteFamily(Cell cell)
public static int estimatedSizeOf(Cell cell)
cell -
cell size in bytes.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||