public class CassandraHelper extends Object
| Constructor and Description |
|---|
CassandraHelper() |
| Modifier and Type | Method and Description |
|---|---|
static List<ByteBuffer> |
convert(List<StaticBuffer> keys) |
static <E> Iterator<Entry> |
makeEntryIterator(Iterable<E> entries,
StaticArrayEntry.GetColVal<E,ByteBuffer> getter,
StaticBuffer lastColumn,
int limit) |
static <E> EntryList |
makeEntryList(Iterable<E> entries,
StaticArrayEntry.GetColVal<E,ByteBuffer> getter,
StaticBuffer lastColumn,
int limit)
Constructs an
EntryList from the Iterable of entries while excluding the end slice
(since the method contract states that the end slice is exclusive, yet Cassandra treats it as
inclusive) and respecting the limit. |
static KeyRange |
transformRange(org.apache.cassandra.dht.Range<org.apache.cassandra.dht.Token> range) |
static KeyRange |
transformRange(org.apache.cassandra.dht.Token<?> leftKeyExclusive,
org.apache.cassandra.dht.Token<?> rightKeyInclusive) |
public static List<ByteBuffer> convert(List<StaticBuffer> keys)
public static <E> EntryList makeEntryList(Iterable<E> entries, StaticArrayEntry.GetColVal<E,ByteBuffer> getter, StaticBuffer lastColumn, int limit)
EntryList from the Iterable of entries while excluding the end slice
(since the method contract states that the end slice is exclusive, yet Cassandra treats it as
inclusive) and respecting the limit.E - entries - getter - lastColumn - TODO: make this StaticBuffer so we can avoid the conversion and provide equals methodlimit - public static <E> Iterator<Entry> makeEntryIterator(Iterable<E> entries, StaticArrayEntry.GetColVal<E,ByteBuffer> getter, StaticBuffer lastColumn, int limit)
public static KeyRange transformRange(org.apache.cassandra.dht.Range<org.apache.cassandra.dht.Token> range)
public static KeyRange transformRange(org.apache.cassandra.dht.Token<?> leftKeyExclusive, org.apache.cassandra.dht.Token<?> rightKeyInclusive)
Copyright © 2012–2016. All rights reserved.