@InterfaceAudience.Private public class ThriftUtilities extends Object
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 TDeleteType deleteTypeFromHBase(Cell.Type type)
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 byte[] filterFromHBase(Filter filter) throws IOException
IOExceptionpublic static Filter filterFromThrift(byte[] filterBytes) throws IOException
IOExceptionpublic static TScan scanFromHBase(Scan in) throws IOException
IOExceptionpublic static Increment incrementFromThrift(TIncrement in) throws IOException
IOExceptionpublic static Append appendFromThrift(TAppend append) throws IOException
IOExceptionpublic static THRegionLocation regionLocationFromHBase(HRegionLocation hrl)
public static List<THRegionLocation> regionLocationsFromHBase(List<HRegionLocation> locations)
public static CompareOperator compareOpFromThrift(TCompareOp tCompareOp)
public static TableName tableNameFromThrift(TTableName tableName)
public static TableName[] tableNamesArrayFromThrift(List<TTableName> tableNames)
public static List<TableName> tableNamesFromThrift(List<TTableName> tableNames)
public static TTableName tableNameFromHBase(TableName table)
public static List<TTableName> tableNamesFromHBase(List<TableName> in)
public static List<TTableName> tableNamesFromHBase(TableName[] in)
public static byte[][] splitKeyFromThrift(List<ByteBuffer> in)
public static BloomType bloomFilterFromThrift(TBloomFilterType in)
public static Compression.Algorithm compressionAlgorithmFromThrift(TCompressionAlgorithm in)
public static DataBlockEncoding dataBlockEncodingFromThrift(TDataBlockEncoding in)
public static KeepDeletedCells keepDeletedCellsFromThrift(TKeepDeletedCells in)
public static ColumnFamilyDescriptor columnFamilyDescriptorFromThrift(TColumnFamilyDescriptor in)
public static NamespaceDescriptor namespaceDescriptorFromThrift(TNamespaceDescriptor in)
public static TNamespaceDescriptor namespaceDescriptorFromHBase(NamespaceDescriptor in)
public static List<TNamespaceDescriptor> namespaceDescriptorsFromHBase(NamespaceDescriptor[] in)
public static TableDescriptor tableDescriptorFromThrift(TTableDescriptor in)
public static HTableDescriptor hTableDescriptorFromThrift(TTableDescriptor in)
public static HTableDescriptor[] hTableDescriptorsFromThrift(List<TTableDescriptor> in)
public static List<TableDescriptor> tableDescriptorsFromThrift(List<TTableDescriptor> in)
public static TTableDescriptor tableDescriptorFromHBase(TableDescriptor in)
public static List<TTableDescriptor> tableDescriptorsFromHBase(List<TableDescriptor> in)
public static List<TTableDescriptor> tableDescriptorsFromHBase(TableDescriptor[] in)
public static TBloomFilterType bloomFilterFromHBase(BloomType in)
public static TCompressionAlgorithm compressionAlgorithmFromHBase(Compression.Algorithm in)
public static TDataBlockEncoding dataBlockEncodingFromHBase(DataBlockEncoding in)
public static TKeepDeletedCells keepDeletedCellsFromHBase(KeepDeletedCells in)
public static TColumnFamilyDescriptor columnFamilyDescriptorFromHBase(ColumnFamilyDescriptor in)
public static Cell toCell(ExtendedCellBuilder cellBuilder, byte[] row, TColumnValue columnValue)
public static NamespaceDescriptor[] namespaceDescriptorsFromThrift(List<TNamespaceDescriptor> in)
public static TAppend appendFromHBase(Append in) throws IOException
IOExceptionpublic static TIncrement incrementFromHBase(Increment in) throws IOException
IOExceptionpublic static TRowMutations rowMutationsFromHBase(RowMutations in)
public static TCompareOp compareOpFromHBase(CompareOperator compareOp)
public static List<ByteBuffer> splitKeyFromHBase(byte[][] in)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.