@InterfaceAudience.Private public final class ThriftUtilities extends Object
Modifier | Constructor and Description |
---|---|
private |
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(ColumnFamilyDescriptor in)
This utility method creates a new Thrift ColumnDescriptor "struct" based on an Hbase
HColumnDescriptor object.
|
static ColumnFamilyDescriptor |
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 Permission.Action[] |
permissionActionsFromString(String permission_actions) |
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.
|
private ThriftUtilities()
public static ColumnFamilyDescriptor colDescFromThrift(org.apache.hadoop.hbase.thrift.generated.ColumnDescriptor in) throws org.apache.hadoop.hbase.thrift.generated.IllegalArgument
in
- Thrift ColumnDescriptor objectorg.apache.hadoop.hbase.thrift.generated.IllegalArgument
- if the column name is emptypublic static org.apache.hadoop.hbase.thrift.generated.ColumnDescriptor colDescFromHbase(ColumnFamilyDescriptor 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.public static Permission.Action[] permissionActionsFromString(String permission_actions)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.