public class ThriftUtilities
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static Append |
appendFromThrift(TAppend append) |
static TDelete |
deleteFromHBase(Delete in) |
static Delete |
deleteFromThrift(TDelete in)
Creates a
Delete (HBase) from a TDelete (Thrift). |
static java.util.List<Delete> |
deletesFromThrift(java.util.List<TDelete> in)
Converts multiple
TDeletes (Thrift) into a list of Deletes (HBase). |
static Get |
getFromThrift(TGet in)
Creates a
Get (HBase) from a TGet (Thrift). |
static java.util.List<Get> |
getsFromThrift(java.util.List<TGet> in)
Converts multiple
TGets (Thrift) into a list of Gets (HBase). |
static Increment |
incrementFromThrift(TIncrement in) |
static Put |
putFromThrift(TPut in)
Creates a
Put (HBase) from a TPut (Thrift) |
static java.util.List<Put> |
putsFromThrift(java.util.List<TPut> in)
Converts multiple
TPuts (Thrift) into a list of Puts (HBase). |
static THRegionLocation |
regionLocationFromHBase(HRegionLocation hrl) |
static java.util.List<THRegionLocation> |
regionLocationsFromHBase(java.util.List<HRegionLocation> locations) |
static TResult |
resultFromHBase(Result in)
Creates a
TResult (Thrift) from a Result (HBase). |
static java.util.List<TResult> |
resultsFromHBase(Result[] in)
Converts multiple
Results (HBase) into a list of TResults (Thrift). |
static RowMutations |
rowMutationsFromThrift(TRowMutations in)
Creates a
RowMutations (HBase) from a TRowMutations (Thrift) |
static Scan |
scanFromThrift(TScan in) |
public static Get getFromThrift(TGet in) throws java.io.IOException
in - the TGet to convertGet objectjava.io.IOException - if an invalid time range or max version parameter is givenpublic static java.util.List<Get> getsFromThrift(java.util.List<TGet> in) throws java.io.IOException
TGets (Thrift) into a list of Gets (HBase).in - list of TGets to convertGet objectsjava.io.IOException - if an invalid time range or max version parameter is givengetFromThrift(TGet)public static TResult resultFromHBase(Result in)
TResult (Thrift) from a Result (HBase).in - the Result to convertnullpublic static java.util.List<TResult> resultsFromHBase(Result[] in)
Results (HBase) into a list of TResults (Thrift).in - array of Results to convertTResultsresultFromHBase(Result)public static Put putFromThrift(TPut in)
Put (HBase) from a TPut (Thrift)in - the TPut to convertPutpublic static java.util.List<Put> putsFromThrift(java.util.List<TPut> in)
TPuts (Thrift) into a list of Puts (HBase).in - list of TPuts to convertPutsputFromThrift(TPut)public static Delete deleteFromThrift(TDelete in)
Delete (HBase) from a TDelete (Thrift).in - the TDelete to convertDeletepublic static java.util.List<Delete> deletesFromThrift(java.util.List<TDelete> in)
TDeletes (Thrift) into a list of Deletes (HBase).in - list of TDeletes to convertDeletesdeleteFromThrift(TDelete)public static TDelete deleteFromHBase(Delete in)
public static RowMutations rowMutationsFromThrift(TRowMutations in) throws java.io.IOException
RowMutations (HBase) from a TRowMutations (Thrift)in - the TRowMutations to convertRowMutationsjava.io.IOExceptionpublic static Scan scanFromThrift(TScan in) throws java.io.IOException
java.io.IOExceptionpublic static Increment incrementFromThrift(TIncrement in) throws java.io.IOException
java.io.IOExceptionpublic static Append appendFromThrift(TAppend append) throws java.io.IOException
java.io.IOExceptionpublic static THRegionLocation regionLocationFromHBase(HRegionLocation hrl)
public static java.util.List<THRegionLocation> regionLocationsFromHBase(java.util.List<HRegionLocation> locations)