@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  TAppendcreate anAppend. | 
| 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  TIncrementcreate anIncrement. | 
| 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
in - Thrift ColumnDescriptor objectorg.apache.hadoop.hbase.thrift.generated.IllegalArgumentpublic static org.apache.hadoop.hbase.thrift.generated.ColumnDescriptor colDescFromHbase(HColumnDescriptor in)
in - Hbase HColumnDescriptor objectpublic static List<org.apache.hadoop.hbase.thrift.generated.TCell> cellFromHBase(Cell in)
in - Hbase Cell objectpublic 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)
in - Hbase RowResult objectsortColumns - This boolean dictates if row data is returned in a sorted order
          sortColumns = True will set TRowResult's sortedColumns member
                        which is an ArrayList of TColumn struct
          sortColumns = False will set TRowResult's columns member which is
                        a map of columnName and TCell structpublic static List<org.apache.hadoop.hbase.thrift.generated.TRowResult> rowResultFromHBase(Result[] in)
in - Array of Hbase RowResult objectspublic 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–2019 The Apache Software Foundation. All rights reserved.