|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectme.prettyprint.cassandra.service.MultigetSliceIterator<K,N,V>
K - The type of the row keyN - Column name typeV - Column value typepublic class MultigetSliceIterator<K,N,V>
Iterates over the MultigetSliceQuery result set, refreshing until all qualifying rows are retrieved based on input keys. This iterator is optimized for parallelism with the help of maxThreadCount option provided. If maxThreadCount is not provided, it calls Cassandra with the set(maxRowCountPerQuery) of row keys at a time unless all keys are queried. E.g., maxRowCountPerQuery is 100 and maxThreadCount 5, it calls Cassandra 5 times using 5 threads/ parallelism for total of 500 keys. You can also configure it not to use Threads and call Cassandra 5 time sequentially instead of parallelism by not setting maxThreadCount or setting it 0
| Constructor Summary | |
|---|---|
MultigetSliceIterator(boolean reversed,
int maxRowCountPerQuery,
Keyspace keyspace,
Serializer<K> keySerializer,
Serializer<N> nameSerializer,
Serializer<V> valueSerializer,
String columnFamily,
List<K> rowKeys,
N start,
N finish)
Constructor with the required parameters. |
|
MultigetSliceIterator(boolean reversed,
int maxRowCountPerQuery,
Keyspace keyspace,
Serializer<K> keySerializer,
Serializer<N> nameSerializer,
Serializer<V> valueSerializer,
String columnFamily,
List<K> rowKeys,
N start,
N finish,
int maxColumnCountPerRow)
Constructor with the required parameters. |
|
MultigetSliceIterator(boolean reversed,
Keyspace keyspace,
Serializer<K> keySerializer,
Serializer<N> nameSerializer,
Serializer<V> valueSerializer,
String columnFamily,
List<K> rowKeys,
N start,
N finish)
Constructor with the required parameters. |
|
MultigetSliceIterator(boolean reversed,
Keyspace keyspace,
Serializer<K> keySerializer,
Serializer<N> nameSerializer,
Serializer<V> valueSerializer,
String columnFamily,
List<K> rowKeys,
N start,
N finish,
int maxColumnCountPerRow)
Constructor with the required parameters Constructor with the required parameters. |
|
MultigetSliceIterator(boolean reversed,
Keyspace keyspace,
Serializer<K> keySerializer,
Serializer<N> nameSerializer,
Serializer<V> valueSerializer,
String columnFamily,
List<K> rowKeys,
N start,
N finish,
int maxThreadCount,
int maxRowCountPerQuery,
int maxColumnCountPerRow)
Constructor with all required parameters. |
|
| Method Summary | |
|---|---|
String |
getHostsUsed()
The CassandraHost on which this operation
was successful |
int |
getRowCountPerQueryUsed()
Returns the RowCount per query used in this operation |
int |
getThreadCountUsed()
Number of threads used to call Cassandra |
long |
getTotalExecutionTimeMicro()
How long the operation took to execute in MICRO-seconds. |
long |
getTotalExecutionTimeNano()
How long the operation took to execute in NANO-seconds. |
boolean |
hasNext()
|
Row<K,N,V> |
next()
|
void |
remove()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MultigetSliceIterator(boolean reversed,
Keyspace keyspace,
Serializer<K> keySerializer,
Serializer<N> nameSerializer,
Serializer<V> valueSerializer,
String columnFamily,
List<K> rowKeys,
N start,
N finish)
reversed - maxColsCountPerQuery - maxColCount - maxRowCountPerQuery - keyspace - keySerializer - nameSerializer - valueSerializer -
public MultigetSliceIterator(boolean reversed,
Keyspace keyspace,
Serializer<K> keySerializer,
Serializer<N> nameSerializer,
Serializer<V> valueSerializer,
String columnFamily,
List<K> rowKeys,
N start,
N finish,
int maxColumnCountPerRow)
reversed - maxColsCountPerQuery - maxColCount - maxRowCountPerQuery - keyspace - keySerializer - nameSerializer - valueSerializer -
public MultigetSliceIterator(boolean reversed,
int maxRowCountPerQuery,
Keyspace keyspace,
Serializer<K> keySerializer,
Serializer<N> nameSerializer,
Serializer<V> valueSerializer,
String columnFamily,
List<K> rowKeys,
N start,
N finish,
int maxColumnCountPerRow)
reversed - maxColsCountPerQuery - maxColCount - maxRowCountPerQuery - keyspace - keySerializer - nameSerializer - valueSerializer -
public MultigetSliceIterator(boolean reversed,
int maxRowCountPerQuery,
Keyspace keyspace,
Serializer<K> keySerializer,
Serializer<N> nameSerializer,
Serializer<V> valueSerializer,
String columnFamily,
List<K> rowKeys,
N start,
N finish)
reversed - maxColsCountPerQuery - maxColCount - maxRowCountPerQuery - keyspace - keySerializer - nameSerializer - valueSerializer -
public MultigetSliceIterator(boolean reversed,
Keyspace keyspace,
Serializer<K> keySerializer,
Serializer<N> nameSerializer,
Serializer<V> valueSerializer,
String columnFamily,
List<K> rowKeys,
N start,
N finish,
int maxThreadCount,
int maxRowCountPerQuery,
int maxColumnCountPerRow)
reversed - maxColsCountPerQuery - maxColCount - maxRowCountPerQuery - keyspace - keySerializer - nameSerializer - valueSerializer - | Method Detail |
|---|
public boolean hasNext()
hasNext in interface Iterator<Row<K,N,V>>public Row<K,N,V> next()
next in interface Iterator<Row<K,N,V>>public void remove()
remove in interface Iterator<Row<K,N,V>>public long getTotalExecutionTimeMicro()
public long getTotalExecutionTimeNano()
public String getHostsUsed()
CassandraHost on which this operation
was successful
public int getThreadCountUsed()
public int getRowCountPerQueryUsed()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||