org.apache.hadoop.hbase.thrift
Class ThriftUtilities

java.lang.Object
  extended by org.apache.hadoop.hbase.thrift.ThriftUtilities

public class ThriftUtilities
extends Object


Constructor Summary
ThriftUtilities()
           
 
Method Summary
static TCell cellFromHBase(Cell in)
          This utility method creates a new Thrift TCell "struct" based on an Hbase Cell object.
static ColumnDescriptor colDescFromHbase(HColumnDescriptor in)
          This utility method creates a new Thrift ColumnDescriptor "struct" based on an Hbase HColumnDescriptor object.
static HColumnDescriptor colDescFromThrift(ColumnDescriptor in)
          This utility method creates a new Hbase HColumnDescriptor object based on a Thrift ColumnDescriptor "struct".
static TRowResult rowResultFromHBase(RowResult in)
          This utility method creates a new Thrift TRowResult "struct" based on an Hbase RowResult object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThriftUtilities

public ThriftUtilities()
Method Detail

colDescFromThrift

public static HColumnDescriptor colDescFromThrift(ColumnDescriptor in)
                                           throws IllegalArgument
This utility method creates a new Hbase HColumnDescriptor object based on a Thrift ColumnDescriptor "struct".

Parameters:
in - Thrift ColumnDescriptor object
Returns:
HColumnDescriptor
Throws:
IllegalArgument

colDescFromHbase

public static ColumnDescriptor colDescFromHbase(HColumnDescriptor in)
This utility method creates a new Thrift ColumnDescriptor "struct" based on an Hbase HColumnDescriptor object.

Parameters:
in - Hbase HColumnDescriptor object
Returns:
Thrift ColumnDescriptor

cellFromHBase

public static TCell cellFromHBase(Cell in)
This utility method creates a new Thrift TCell "struct" based on an Hbase Cell object.

Parameters:
in - Hbase Cell object
Returns:
Thrift TCell

rowResultFromHBase

public static TRowResult rowResultFromHBase(RowResult in)
This utility method creates a new Thrift TRowResult "struct" based on an Hbase RowResult object.

Parameters:
in - Hbase RowResult object
Returns:
Thrift TRowResult


Copyright © 2008 The Apache Software Foundation