@InterfaceAudience.Private public class ThriftUtilities extends Object
| Modifier | Constructor and Description | 
|---|---|
| private  | ThriftUtilities() | 
| Modifier and Type | Method and Description | 
|---|---|
| private static void | addAttributes(OperationWithAttributes op,
             Map<ByteBuffer,ByteBuffer> attributes)Adds all the attributes into the Operation object | 
| static Append | appendFromThrift(org.apache.hadoop.hbase.thrift2.generated.TAppend append) | 
| static CompareOperator | compareOpFromThrift(org.apache.hadoop.hbase.thrift2.generated.TCompareOp tCompareOp) | 
| static org.apache.hadoop.hbase.thrift2.generated.TDelete | deleteFromHBase(Delete in) | 
| static Delete | deleteFromThrift(org.apache.hadoop.hbase.thrift2.generated.TDelete in)Creates a  Delete(HBase) from aTDelete(Thrift). | 
| static List<Delete> | deletesFromThrift(List<org.apache.hadoop.hbase.thrift2.generated.TDelete> in)Converts multiple  TDeletes (Thrift) into a list ofDeletes (HBase). | 
| private static Durability | durabilityFromThrift(org.apache.hadoop.hbase.thrift2.generated.TDurability tDurability) | 
| static Get | getFromThrift(org.apache.hadoop.hbase.thrift2.generated.TGet in)Creates a  Get(HBase) from aTGet(Thrift). | 
| static List<Get> | getsFromThrift(List<org.apache.hadoop.hbase.thrift2.generated.TGet> in)Converts multiple  TGets (Thrift) into a list ofGets (HBase). | 
| static Increment | incrementFromThrift(org.apache.hadoop.hbase.thrift2.generated.TIncrement in) | 
| static Put | putFromThrift(org.apache.hadoop.hbase.thrift2.generated.TPut in)Creates a  Put(HBase) from aTPut(Thrift) | 
| static List<Put> | putsFromThrift(List<org.apache.hadoop.hbase.thrift2.generated.TPut> in)Converts multiple  TPuts (Thrift) into a list ofPuts (HBase). | 
| private static Scan.ReadType | readTypeFromThrift(org.apache.hadoop.hbase.thrift2.generated.TReadType tReadType) | 
| static org.apache.hadoop.hbase.thrift2.generated.THRegionLocation | regionLocationFromHBase(HRegionLocation hrl) | 
| static List<org.apache.hadoop.hbase.thrift2.generated.THRegionLocation> | regionLocationsFromHBase(List<HRegionLocation> locations) | 
| static org.apache.hadoop.hbase.thrift2.generated.TResult | resultFromHBase(Result in)Creates a  TResult(Thrift) from aResult(HBase). | 
| static List<org.apache.hadoop.hbase.thrift2.generated.TResult> | resultsFromHBase(Result[] in)Converts multiple  Results (HBase) into a list ofTResults (Thrift). | 
| static RowMutations | rowMutationsFromThrift(org.apache.hadoop.hbase.thrift2.generated.TRowMutations in)Creates a  RowMutations(HBase) from aTRowMutations(Thrift) | 
| static Scan | scanFromThrift(org.apache.hadoop.hbase.thrift2.generated.TScan in) | 
private ThriftUtilities()
public static Get getFromThrift(org.apache.hadoop.hbase.thrift2.generated.TGet in) throws IOException
in - the TGet to convertGet objectIOException - if an invalid time range or max version parameter is givenpublic static List<Get> getsFromThrift(List<org.apache.hadoop.hbase.thrift2.generated.TGet> in) throws IOException
TGets (Thrift) into a list of Gets (HBase).in - list of TGets to convertGet objectsIOException - if an invalid time range or max version parameter is givengetFromThrift(TGet)public static org.apache.hadoop.hbase.thrift2.generated.TResult resultFromHBase(Result in)
TResult (Thrift) from a Result (HBase).in - the Result to convertnullpublic static List<org.apache.hadoop.hbase.thrift2.generated.TResult> resultsFromHBase(Result[] in)
Results (HBase) into a list of TResults (Thrift).in - array of Results to convertTResultsresultFromHBase(Result)public static Put putFromThrift(org.apache.hadoop.hbase.thrift2.generated.TPut in)
Put (HBase) from a TPut (Thrift)in - the TPut to convertPutpublic static List<Put> putsFromThrift(List<org.apache.hadoop.hbase.thrift2.generated.TPut> in)
TPuts (Thrift) into a list of Puts (HBase).in - list of TPuts to convertPutsputFromThrift(TPut)public static Delete deleteFromThrift(org.apache.hadoop.hbase.thrift2.generated.TDelete in)
Delete (HBase) from a TDelete (Thrift).in - the TDelete to convertDeletepublic static List<Delete> deletesFromThrift(List<org.apache.hadoop.hbase.thrift2.generated.TDelete> in)
TDeletes (Thrift) into a list of Deletes (HBase).in - list of TDeletes to convertDeletesdeleteFromThrift(TDelete)public static org.apache.hadoop.hbase.thrift2.generated.TDelete deleteFromHBase(Delete in)
public static RowMutations rowMutationsFromThrift(org.apache.hadoop.hbase.thrift2.generated.TRowMutations in) throws IOException
RowMutations (HBase) from a TRowMutations (Thrift)in - the TRowMutations to convertRowMutationsIOExceptionpublic static Scan scanFromThrift(org.apache.hadoop.hbase.thrift2.generated.TScan in) throws IOException
IOExceptionpublic static Increment incrementFromThrift(org.apache.hadoop.hbase.thrift2.generated.TIncrement in) throws IOException
IOExceptionpublic static Append appendFromThrift(org.apache.hadoop.hbase.thrift2.generated.TAppend append) throws IOException
IOExceptionpublic static org.apache.hadoop.hbase.thrift2.generated.THRegionLocation regionLocationFromHBase(HRegionLocation hrl)
public static List<org.apache.hadoop.hbase.thrift2.generated.THRegionLocation> regionLocationsFromHBase(List<HRegionLocation> locations)
private static void addAttributes(OperationWithAttributes op, Map<ByteBuffer,ByteBuffer> attributes)
private static Durability durabilityFromThrift(org.apache.hadoop.hbase.thrift2.generated.TDurability tDurability)
public static CompareOperator compareOpFromThrift(org.apache.hadoop.hbase.thrift2.generated.TCompareOp tCompareOp)
private static Scan.ReadType readTypeFromThrift(org.apache.hadoop.hbase.thrift2.generated.TReadType tReadType)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.