public class ThriftDataResultHelper extends Object
ColumnOrSuperColumn.| Modifier and Type | Class and Description |
|---|---|
static class |
ThriftDataResultHelper.ColumnFamilyType
The Enum ColumnFamilyType.
|
| Constructor and Description |
|---|
ThriftDataResultHelper() |
| Modifier and Type | Method and Description |
|---|---|
static List<Object> |
getRowKeys(List<org.apache.cassandra.thrift.KeySlice> keySlices,
EntityMetadata metadata)
Fetches Row keys from a
List of KeySlice. |
static <T> T |
transformThriftResult(org.apache.cassandra.thrift.ColumnOrSuperColumn cosc,
ThriftDataResultHelper.ColumnFamilyType columnFamilyType,
ThriftRow row)
Transform thrift result.
|
static <T> List<T> |
transformThriftResult(List<org.apache.cassandra.thrift.ColumnOrSuperColumn> coscList,
ThriftDataResultHelper.ColumnFamilyType columnFamilyType,
ThriftRow row)
Transforms data retrieved as result via thrift to a List whose content
type is determined by
ThriftDataResultHelper.ColumnFamilyType. |
static <T> Map<ByteBuffer,List<T>> |
transformThriftResult(Map<ByteBuffer,List<org.apache.cassandra.thrift.ColumnOrSuperColumn>> coscResultMap,
ThriftDataResultHelper.ColumnFamilyType columnFamilyType,
ThriftRow row)
Transforms data retrieved as result via thrift to a Map whose content
type is determined by
ThriftDataResultHelper.ColumnFamilyType. |
static <T> Map<ByteBuffer,List<T>> |
transformThriftResult(ThriftDataResultHelper.ColumnFamilyType columnFamilyType,
List<org.apache.cassandra.thrift.KeySlice> keySlices,
ThriftRow row)
Transform thrift result.
|
<T> List<T> |
transformThriftResultAndAddToList(Map<ByteBuffer,List<org.apache.cassandra.thrift.ColumnOrSuperColumn>> coscResultMap,
ThriftDataResultHelper.ColumnFamilyType columnFamilyType,
ThriftRow row)
Transforms data retrieved as result via thrift to a List whose content
type is determined by
ThriftDataResultHelper.ColumnFamilyType. |
ThriftRow |
translateToThriftRow(Map<ByteBuffer,List<org.apache.cassandra.thrift.ColumnOrSuperColumn>> coscResultMap,
boolean isCounterType,
EntityMetadata.Type columnFamilyType,
ThriftRow row)
Translates into thrift row.
|
public static <T> List<T> transformThriftResult(List<org.apache.cassandra.thrift.ColumnOrSuperColumn> coscList, ThriftDataResultHelper.ColumnFamilyType columnFamilyType, ThriftRow row)
ThriftDataResultHelper.ColumnFamilyType.T - the generic typecoscList - the cosc listcolumnFamilyType - the column family typerow - the rowpublic static <T> T transformThriftResult(org.apache.cassandra.thrift.ColumnOrSuperColumn cosc,
ThriftDataResultHelper.ColumnFamilyType columnFamilyType,
ThriftRow row)
T - the generic typecosc - the cosccolumnFamilyType - the column family typerow - the rowpublic static <T> Map<ByteBuffer,List<T>> transformThriftResult(Map<ByteBuffer,List<org.apache.cassandra.thrift.ColumnOrSuperColumn>> coscResultMap, ThriftDataResultHelper.ColumnFamilyType columnFamilyType, ThriftRow row)
ThriftDataResultHelper.ColumnFamilyType.T - the generic typecoscResultMap - the cosc result mapcolumnFamilyType - the column family typerow - the rowpublic static <T> Map<ByteBuffer,List<T>> transformThriftResult(ThriftDataResultHelper.ColumnFamilyType columnFamilyType, List<org.apache.cassandra.thrift.KeySlice> keySlices, ThriftRow row)
T - the generic typecolumnFamilyType - the column family typekeySlices - the key slicesrow - the rowpublic <T> List<T> transformThriftResultAndAddToList(Map<ByteBuffer,List<org.apache.cassandra.thrift.ColumnOrSuperColumn>> coscResultMap, ThriftDataResultHelper.ColumnFamilyType columnFamilyType, ThriftRow row)
ThriftDataResultHelper.ColumnFamilyType.T - the generic typecoscResultMap - the cosc result mapcolumnFamilyType - the column family typerow - the rowpublic ThriftRow translateToThriftRow(Map<ByteBuffer,List<org.apache.cassandra.thrift.ColumnOrSuperColumn>> coscResultMap, boolean isCounterType, EntityMetadata.Type columnFamilyType, ThriftRow row)
coscResultMap - the cosc result mapisCounterType - the is counter typecolumnFamilyType - the column family typerow - the rowpublic static List<Object> getRowKeys(List<org.apache.cassandra.thrift.KeySlice> keySlices, EntityMetadata metadata)
List of KeySlice.keySlices - the key slicesmetadata - the metadataCopyright © 2015. All Rights Reserved.