@InterfaceAudience.Private public class ThriftUtilities extends Object
| Modifier and Type | Method and Description |
|---|---|
static TAppend |
appendFromHBase(org.apache.hadoop.hbase.client.Append in) |
static org.apache.hadoop.hbase.client.Append |
appendFromThrift(TAppend append) |
static TBloomFilterType |
bloomFilterFromHBase(org.apache.hadoop.hbase.regionserver.BloomType in) |
static org.apache.hadoop.hbase.regionserver.BloomType |
bloomFilterFromThrift(TBloomFilterType in) |
static TColumnFamilyDescriptor |
columnFamilyDescriptorFromHBase(org.apache.hadoop.hbase.client.ColumnFamilyDescriptor in) |
static org.apache.hadoop.hbase.client.ColumnFamilyDescriptor |
columnFamilyDescriptorFromThrift(TColumnFamilyDescriptor in) |
static TCompareOp |
compareOpFromHBase(org.apache.hadoop.hbase.CompareOperator compareOp) |
static org.apache.hadoop.hbase.CompareOperator |
compareOpFromThrift(TCompareOp tCompareOp) |
static TCompressionAlgorithm |
compressionAlgorithmFromHBase(org.apache.hadoop.hbase.io.compress.Compression.Algorithm in) |
static org.apache.hadoop.hbase.io.compress.Compression.Algorithm |
compressionAlgorithmFromThrift(TCompressionAlgorithm in) |
static TDataBlockEncoding |
dataBlockEncodingFromHBase(org.apache.hadoop.hbase.io.encoding.DataBlockEncoding in) |
static org.apache.hadoop.hbase.io.encoding.DataBlockEncoding |
dataBlockEncodingFromThrift(TDataBlockEncoding in) |
static TDelete |
deleteFromHBase(org.apache.hadoop.hbase.client.Delete in) |
static org.apache.hadoop.hbase.client.Delete |
deleteFromThrift(TDelete in)
Creates a
Delete (HBase) from a TDelete (Thrift). |
static List<TDelete> |
deletesFromHBase(List<org.apache.hadoop.hbase.client.Delete> in) |
static List<org.apache.hadoop.hbase.client.Delete> |
deletesFromThrift(List<TDelete> in)
Converts multiple
TDeletes (Thrift) into a list of Deletes (HBase). |
static TDeleteType |
deleteTypeFromHBase(org.apache.hadoop.hbase.Cell.Type type) |
static byte[] |
filterFromHBase(org.apache.hadoop.hbase.filter.Filter filter) |
static org.apache.hadoop.hbase.filter.Filter |
filterFromThrift(byte[] filterBytes) |
static TGet |
getFromHBase(org.apache.hadoop.hbase.client.Get in) |
static org.apache.hadoop.hbase.client.Get |
getFromThrift(TGet in)
Creates a
Get (HBase) from a TGet (Thrift). |
static List<TGet> |
getsFromHBase(List<org.apache.hadoop.hbase.client.Get> in) |
static List<org.apache.hadoop.hbase.client.Get> |
getsFromThrift(List<TGet> in)
Converts multiple
TGets (Thrift) into a list of Gets (HBase). |
static org.apache.hadoop.hbase.HTableDescriptor |
hTableDescriptorFromThrift(TTableDescriptor in) |
static org.apache.hadoop.hbase.HTableDescriptor[] |
hTableDescriptorsFromThrift(List<TTableDescriptor> in) |
static TIncrement |
incrementFromHBase(org.apache.hadoop.hbase.client.Increment in) |
static org.apache.hadoop.hbase.client.Increment |
incrementFromThrift(TIncrement in) |
static TKeepDeletedCells |
keepDeletedCellsFromHBase(org.apache.hadoop.hbase.KeepDeletedCells in) |
static org.apache.hadoop.hbase.KeepDeletedCells |
keepDeletedCellsFromThrift(TKeepDeletedCells in) |
static TNamespaceDescriptor |
namespaceDescriptorFromHBase(org.apache.hadoop.hbase.NamespaceDescriptor in) |
static org.apache.hadoop.hbase.NamespaceDescriptor |
namespaceDescriptorFromThrift(TNamespaceDescriptor in) |
static List<TNamespaceDescriptor> |
namespaceDescriptorsFromHBase(org.apache.hadoop.hbase.NamespaceDescriptor[] in) |
static org.apache.hadoop.hbase.NamespaceDescriptor[] |
namespaceDescriptorsFromThrift(List<TNamespaceDescriptor> in) |
static TPut |
putFromHBase(org.apache.hadoop.hbase.client.Put in) |
static org.apache.hadoop.hbase.client.Put |
putFromThrift(TPut in)
Creates a
Put (HBase) from a TPut (Thrift) |
static List<TPut> |
putsFromHBase(List<org.apache.hadoop.hbase.client.Put> in) |
static List<org.apache.hadoop.hbase.client.Put> |
putsFromThrift(List<TPut> in)
Converts multiple
TPuts (Thrift) into a list of Puts (HBase). |
static THRegionLocation |
regionLocationFromHBase(org.apache.hadoop.hbase.HRegionLocation hrl) |
static List<THRegionLocation> |
regionLocationsFromHBase(List<org.apache.hadoop.hbase.HRegionLocation> locations) |
static TResult |
resultFromHBase(org.apache.hadoop.hbase.client.Result in)
Creates a
TResult (Thrift) from a Result (HBase). |
static org.apache.hadoop.hbase.client.Result |
resultFromThrift(TResult in) |
static List<TResult> |
resultsFromHBase(org.apache.hadoop.hbase.client.Result[] in)
Converts multiple
Results (HBase) into a list of TResults (Thrift). |
static org.apache.hadoop.hbase.client.Result[] |
resultsFromThrift(List<TResult> in) |
static TRowMutations |
rowMutationsFromHBase(org.apache.hadoop.hbase.client.RowMutations in) |
static org.apache.hadoop.hbase.client.RowMutations |
rowMutationsFromThrift(TRowMutations in)
Creates a
RowMutations (HBase) from a TRowMutations (Thrift) |
static TScan |
scanFromHBase(org.apache.hadoop.hbase.client.Scan in) |
static org.apache.hadoop.hbase.client.Scan |
scanFromThrift(TScan in) |
static List<ByteBuffer> |
splitKeyFromHBase(byte[][] in) |
static byte[][] |
splitKeyFromThrift(List<ByteBuffer> in) |
static TTableDescriptor |
tableDescriptorFromHBase(org.apache.hadoop.hbase.client.TableDescriptor in) |
static org.apache.hadoop.hbase.client.TableDescriptor |
tableDescriptorFromThrift(TTableDescriptor in) |
static List<TTableDescriptor> |
tableDescriptorsFromHBase(List<org.apache.hadoop.hbase.client.TableDescriptor> in) |
static List<TTableDescriptor> |
tableDescriptorsFromHBase(org.apache.hadoop.hbase.client.TableDescriptor[] in) |
static List<org.apache.hadoop.hbase.client.TableDescriptor> |
tableDescriptorsFromThrift(List<TTableDescriptor> in) |
static TTableName |
tableNameFromHBase(org.apache.hadoop.hbase.TableName table) |
static org.apache.hadoop.hbase.TableName |
tableNameFromThrift(TTableName tableName) |
static org.apache.hadoop.hbase.TableName[] |
tableNamesArrayFromThrift(List<TTableName> tableNames) |
static List<TTableName> |
tableNamesFromHBase(List<org.apache.hadoop.hbase.TableName> in) |
static List<TTableName> |
tableNamesFromHBase(org.apache.hadoop.hbase.TableName[] in) |
static List<org.apache.hadoop.hbase.TableName> |
tableNamesFromThrift(List<TTableName> tableNames) |
static org.apache.hadoop.hbase.Cell |
toCell(org.apache.hadoop.hbase.ExtendedCellBuilder cellBuilder,
byte[] row,
TColumnValue columnValue) |
public static org.apache.hadoop.hbase.client.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<org.apache.hadoop.hbase.client.Get> getsFromThrift(List<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 TResult resultFromHBase(org.apache.hadoop.hbase.client.Result in)
TResult (Thrift) from a Result (HBase).in - the Result to convertnullpublic static List<TResult> resultsFromHBase(org.apache.hadoop.hbase.client.Result[] in)
Results (HBase) into a list of TResults (Thrift).in - array of Results to convertTResultsresultFromHBase(Result)public static org.apache.hadoop.hbase.client.Put putFromThrift(TPut in)
Put (HBase) from a TPut (Thrift)in - the TPut to convertPutpublic static List<org.apache.hadoop.hbase.client.Put> putsFromThrift(List<TPut> in)
TPuts (Thrift) into a list of Puts (HBase).in - list of TPuts to convertPutsputFromThrift(TPut)public static org.apache.hadoop.hbase.client.Delete deleteFromThrift(TDelete in)
Delete (HBase) from a TDelete (Thrift).in - the TDelete to convertDeletepublic static List<org.apache.hadoop.hbase.client.Delete> deletesFromThrift(List<TDelete> in)
TDeletes (Thrift) into a list of Deletes (HBase).in - list of TDeletes to convertDeletesdeleteFromThrift(TDelete)public static TDeleteType deleteTypeFromHBase(org.apache.hadoop.hbase.Cell.Type type)
public static TDelete deleteFromHBase(org.apache.hadoop.hbase.client.Delete in)
public static org.apache.hadoop.hbase.client.RowMutations rowMutationsFromThrift(TRowMutations in) throws IOException
RowMutations (HBase) from a TRowMutations (Thrift)in - the TRowMutations to convertRowMutationsIOExceptionpublic static org.apache.hadoop.hbase.client.Scan scanFromThrift(TScan in) throws IOException
IOExceptionpublic static byte[] filterFromHBase(org.apache.hadoop.hbase.filter.Filter filter)
throws IOException
IOExceptionpublic static org.apache.hadoop.hbase.filter.Filter filterFromThrift(byte[] filterBytes)
throws IOException
IOExceptionpublic static TScan scanFromHBase(org.apache.hadoop.hbase.client.Scan in) throws IOException
IOExceptionpublic static org.apache.hadoop.hbase.client.Increment incrementFromThrift(TIncrement in) throws IOException
IOExceptionpublic static org.apache.hadoop.hbase.client.Append appendFromThrift(TAppend append) throws IOException
IOExceptionpublic static THRegionLocation regionLocationFromHBase(org.apache.hadoop.hbase.HRegionLocation hrl)
public static List<THRegionLocation> regionLocationsFromHBase(List<org.apache.hadoop.hbase.HRegionLocation> locations)
public static org.apache.hadoop.hbase.CompareOperator compareOpFromThrift(TCompareOp tCompareOp)
public static org.apache.hadoop.hbase.TableName tableNameFromThrift(TTableName tableName)
public static org.apache.hadoop.hbase.TableName[] tableNamesArrayFromThrift(List<TTableName> tableNames)
public static List<org.apache.hadoop.hbase.TableName> tableNamesFromThrift(List<TTableName> tableNames)
public static TTableName tableNameFromHBase(org.apache.hadoop.hbase.TableName table)
public static List<TTableName> tableNamesFromHBase(List<org.apache.hadoop.hbase.TableName> in)
public static List<TTableName> tableNamesFromHBase(org.apache.hadoop.hbase.TableName[] in)
public static byte[][] splitKeyFromThrift(List<ByteBuffer> in)
public static org.apache.hadoop.hbase.regionserver.BloomType bloomFilterFromThrift(TBloomFilterType in)
public static org.apache.hadoop.hbase.io.compress.Compression.Algorithm compressionAlgorithmFromThrift(TCompressionAlgorithm in)
public static org.apache.hadoop.hbase.io.encoding.DataBlockEncoding dataBlockEncodingFromThrift(TDataBlockEncoding in)
public static org.apache.hadoop.hbase.KeepDeletedCells keepDeletedCellsFromThrift(TKeepDeletedCells in)
public static org.apache.hadoop.hbase.client.ColumnFamilyDescriptor columnFamilyDescriptorFromThrift(TColumnFamilyDescriptor in)
public static org.apache.hadoop.hbase.NamespaceDescriptor namespaceDescriptorFromThrift(TNamespaceDescriptor in)
public static TNamespaceDescriptor namespaceDescriptorFromHBase(org.apache.hadoop.hbase.NamespaceDescriptor in)
public static List<TNamespaceDescriptor> namespaceDescriptorsFromHBase(org.apache.hadoop.hbase.NamespaceDescriptor[] in)
public static org.apache.hadoop.hbase.client.TableDescriptor tableDescriptorFromThrift(TTableDescriptor in)
public static org.apache.hadoop.hbase.HTableDescriptor hTableDescriptorFromThrift(TTableDescriptor in)
public static org.apache.hadoop.hbase.HTableDescriptor[] hTableDescriptorsFromThrift(List<TTableDescriptor> in)
public static List<org.apache.hadoop.hbase.client.TableDescriptor> tableDescriptorsFromThrift(List<TTableDescriptor> in)
public static TTableDescriptor tableDescriptorFromHBase(org.apache.hadoop.hbase.client.TableDescriptor in)
public static List<TTableDescriptor> tableDescriptorsFromHBase(List<org.apache.hadoop.hbase.client.TableDescriptor> in)
public static List<TTableDescriptor> tableDescriptorsFromHBase(org.apache.hadoop.hbase.client.TableDescriptor[] in)
public static TBloomFilterType bloomFilterFromHBase(org.apache.hadoop.hbase.regionserver.BloomType in)
public static TCompressionAlgorithm compressionAlgorithmFromHBase(org.apache.hadoop.hbase.io.compress.Compression.Algorithm in)
public static TDataBlockEncoding dataBlockEncodingFromHBase(org.apache.hadoop.hbase.io.encoding.DataBlockEncoding in)
public static TKeepDeletedCells keepDeletedCellsFromHBase(org.apache.hadoop.hbase.KeepDeletedCells in)
public static TColumnFamilyDescriptor columnFamilyDescriptorFromHBase(org.apache.hadoop.hbase.client.ColumnFamilyDescriptor in)
public static TGet getFromHBase(org.apache.hadoop.hbase.client.Get in)
public static org.apache.hadoop.hbase.Cell toCell(org.apache.hadoop.hbase.ExtendedCellBuilder cellBuilder,
byte[] row,
TColumnValue columnValue)
public static org.apache.hadoop.hbase.client.Result resultFromThrift(TResult in)
public static TPut putFromHBase(org.apache.hadoop.hbase.client.Put in)
public static org.apache.hadoop.hbase.NamespaceDescriptor[] namespaceDescriptorsFromThrift(List<TNamespaceDescriptor> in)
public static List<TDelete> deletesFromHBase(List<org.apache.hadoop.hbase.client.Delete> in)
public static TAppend appendFromHBase(org.apache.hadoop.hbase.client.Append in) throws IOException
IOExceptionpublic static TIncrement incrementFromHBase(org.apache.hadoop.hbase.client.Increment in) throws IOException
IOExceptionpublic static TRowMutations rowMutationsFromHBase(org.apache.hadoop.hbase.client.RowMutations in)
public static TCompareOp compareOpFromHBase(org.apache.hadoop.hbase.CompareOperator compareOp)
public static List<ByteBuffer> splitKeyFromHBase(byte[][] in)
public static org.apache.hadoop.hbase.client.Result[] resultsFromThrift(List<TResult> in)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.