|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.basho.riak.client.util.CollectionWrapper<java.lang.String>
com.basho.riak.client.response.StreamedKeysCollection
public class StreamedKeysCollection
Presents the stream of keys from a Riak bucket response with query parameter keys=stream as a collection. Keys are read from the stream as needed. Note, this class is NOT thread-safe!
| Constructor Summary | |
|---|---|
StreamedKeysCollection(JSONTokener tokens)
|
|
| Method Summary | |
|---|---|
protected boolean |
cacheNext()
Tries to read and cache another set of keys from the input stream. |
protected void |
closeBackend()
Close the backend so no more objects can be read from it (getNext() should only return null afterwards). |
| Methods inherited from class com.basho.riak.client.util.CollectionWrapper |
|---|
add, addAll, cache, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Collection |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public StreamedKeysCollection(JSONTokener tokens)
| Method Detail |
|---|
protected boolean cacheNext()
cacheNext in class CollectionWrapper<java.lang.String>protected void closeBackend()
CollectionWrapper
closeBackend in class CollectionWrapper<java.lang.String>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||