@InterfaceAudience.Private public class ThriftUtilities extends Object
Constructor and Description |
---|
ThriftUtilities() |
Modifier and Type | Method and Description |
---|---|
static Append |
appendFromThrift(org.apache.hadoop.hbase.thrift.generated.TAppend tappend)
From a
TAppend create an Append . |
static List<org.apache.hadoop.hbase.thrift.generated.TCell> |
cellFromHBase(Cell in)
This utility method creates a list of Thrift TCell "struct" based on an Hbase Cell object.
|
static List<org.apache.hadoop.hbase.thrift.generated.TCell> |
cellFromHBase(Cell[] in)
This utility method creates a list of Thrift TCell "struct" based on an Hbase Cell array.
|
static org.apache.hadoop.hbase.thrift.generated.ColumnDescriptor |
colDescFromHbase(HColumnDescriptor in)
This utility method creates a new Thrift ColumnDescriptor "struct" based on an Hbase
HColumnDescriptor object.
|
static HColumnDescriptor |
colDescFromThrift(org.apache.hadoop.hbase.thrift.generated.ColumnDescriptor in)
This utility method creates a new Hbase HColumnDescriptor object based on a Thrift
ColumnDescriptor "struct".
|
static Increment |
incrementFromThrift(org.apache.hadoop.hbase.thrift.generated.TIncrement tincrement)
From a
TIncrement create an Increment . |
static List<org.apache.hadoop.hbase.thrift.generated.TRowResult> |
rowResultFromHBase(Result in) |
static List<org.apache.hadoop.hbase.thrift.generated.TRowResult> |
rowResultFromHBase(Result[] in)
This utility method creates a list of Thrift TRowResult "struct" based on an array of Hbase
RowResult objects.
|
static List<org.apache.hadoop.hbase.thrift.generated.TRowResult> |
rowResultFromHBase(Result[] in,
boolean sortColumns)
This utility method creates a list of Thrift TRowResult "struct" based on an Hbase RowResult
object.
|
public ThriftUtilities()
public static HColumnDescriptor colDescFromThrift(org.apache.hadoop.hbase.thrift.generated.ColumnDescriptor in) throws org.apache.hadoop.hbase.thrift.generated.IllegalArgument
org.apache.hadoop.hbase.thrift.generated.IllegalArgument
public static org.apache.hadoop.hbase.thrift.generated.ColumnDescriptor colDescFromHbase(HColumnDescriptor in)
public static List<org.apache.hadoop.hbase.thrift.generated.TCell> cellFromHBase(Cell in)
public static List<org.apache.hadoop.hbase.thrift.generated.TCell> cellFromHBase(Cell[] in)
in
- Hbase Cell arraypublic static List<org.apache.hadoop.hbase.thrift.generated.TRowResult> rowResultFromHBase(Result[] in, boolean sortColumns)
public static List<org.apache.hadoop.hbase.thrift.generated.TRowResult> rowResultFromHBase(Result[] in)
public static List<org.apache.hadoop.hbase.thrift.generated.TRowResult> rowResultFromHBase(Result in)
public static Increment incrementFromThrift(org.apache.hadoop.hbase.thrift.generated.TIncrement tincrement)
TIncrement
create an Increment
.tincrement
- the Thrift version of an incrementTIncrement
represented.public static Append appendFromThrift(org.apache.hadoop.hbase.thrift.generated.TAppend tappend)
TAppend
create an Append
.tappend
- the Thrift version of an append.TAppend
represented.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.