@InterfaceAudience.Private public class ThriftUtilities extends Object
| Modifier and Type | Method and Description |
|---|---|
static Append |
appendFromThrift(TAppend append) |
static TDelete |
deleteFromHBase(Delete in) |
static Delete |
deleteFromThrift(TDelete in)
|
static List<Delete> |
deletesFromThrift(List<TDelete> in)
|
static Get |
getFromThrift(TGet in)
|
static List<Get> |
getsFromThrift(List<TGet> in)
|
static Increment |
incrementFromThrift(TIncrement in) |
static Put |
putFromThrift(TPut in)
|
static List<Put> |
putsFromThrift(List<TPut> in)
|
static TResult |
resultFromHBase(Result in)
|
static List<TResult> |
resultsFromHBase(Result[] in)
|
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 IOException
in - the TGet to convertGet objectIOException - if an invalid time range or max version parameter is givenpublic static List<Get> getsFromThrift(List<TGet> in) throws IOException
in - list of TGets to convertGet objectsIOException - if an invalid time range or max version parameter is givengetFromThrift(TGet)public static TResult resultFromHBase(Result in)
in - the Result to convertnullpublic static List<TResult> resultsFromHBase(Result[] in)
in - array of Results to convertTResultsresultFromHBase(Result)public static Put putFromThrift(TPut in)
in - the TPut to convertPutpublic static List<Put> putsFromThrift(List<TPut> in)
in - list of TPuts to convertPutsputFromThrift(TPut)public static Delete deleteFromThrift(TDelete in)
in - the TDelete to convertDeletepublic static List<Delete> deletesFromThrift(List<TDelete> in)
in - list of TDeletes to convertDeletesdeleteFromThrift(TDelete)public static RowMutations rowMutationsFromThrift(TRowMutations in) throws IOException
RowMutations (HBase) from a TRowMutations (Thrift)in - the TRowMutations to convertRowMutationsIOExceptionpublic static Scan scanFromThrift(TScan in) throws IOException
IOExceptionpublic static Increment incrementFromThrift(TIncrement in) throws IOException
IOExceptionpublic static Append appendFromThrift(TAppend append) throws IOException
IOExceptionCopyright © 2014 The Apache Software Foundation. All rights reserved.