|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.thrift2.ThriftUtilities
@InterfaceAudience.Private public class ThriftUtilities
| Method Summary | |
|---|---|
static TDelete |
deleteFromHBase(Delete in)
|
static Delete |
deleteFromThrift(TDelete in)
Creates a Delete (HBase) from a TDelete (Thrift). |
static List<Delete> |
deletesFromThrift(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 List<Get> |
getsFromThrift(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 List<Put> |
putsFromThrift(List<TPut> in)
Converts multiple TPuts (Thrift) into a list of Puts (HBase). |
static TResult |
resultFromHBase(Result in)
Creates a TResult (Thrift) from a Result (HBase). |
static 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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Get getFromThrift(TGet in)
throws IOException
Get (HBase) from a TGet (Thrift).
This ignores any timestamps set on TColumn objects.
in - the TGet to convert
Get object
IOException - if an invalid time range or max version parameter is given
public static List<Get> getsFromThrift(List<TGet> in)
throws IOException
TGets (Thrift) into a list of Gets (HBase).
in - list of TGets to convert
Get objects
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 convert
nullpublic static List<TResult> resultsFromHBase(Result[] in)
Results (HBase) into a list of TResults (Thrift).
in - array of Results to convert
TResultsresultFromHBase(Result)public static Put putFromThrift(TPut in)
Put (HBase) from a TPut (Thrift)
in - the TPut to convert
Putpublic static List<Put> putsFromThrift(List<TPut> in)
TPuts (Thrift) into a list of Puts (HBase).
in - list of TPuts to convert
PutsputFromThrift(TPut)public static Delete deleteFromThrift(TDelete in)
Delete (HBase) from a TDelete (Thrift).
in - the TDelete to convert
Deletepublic static List<Delete> deletesFromThrift(List<TDelete> in)
TDeletes (Thrift) into a list of Deletes (HBase).
in - list of TDeletes to convert
DeletesdeleteFromThrift(TDelete)public static TDelete deleteFromHBase(Delete in)
public static RowMutations rowMutationsFromThrift(TRowMutations in)
throws IOException
RowMutations (HBase) from a TRowMutations (Thrift)
in - the TRowMutations to convert
RowMutations
IOException
public static Scan scanFromThrift(TScan in)
throws IOException
IOException
public static Increment incrementFromThrift(TIncrement in)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||