Class AerospikeKeyIterator
java.lang.Object
com.playtika.janusgraph.aerospike.operations.AerospikeKeyIterator
- All Implemented Interfaces:
com.aerospike.client.ScanCallback,Closeable,AutoCloseable,Iterator<org.janusgraph.diskstorage.StaticBuffer>,org.janusgraph.diskstorage.keycolumnvalue.KeyIterator,org.janusgraph.diskstorage.util.RecordIterator<org.janusgraph.diskstorage.StaticBuffer>
public class AerospikeKeyIterator
extends Object
implements org.janusgraph.diskstorage.keycolumnvalue.KeyIterator, com.aerospike.client.ScanCallback
Should be used for test purposes only
-
Constructor Summary
ConstructorsConstructorDescriptionAerospikeKeyIterator(org.janusgraph.diskstorage.keycolumnvalue.SliceQuery query) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()org.janusgraph.diskstorage.util.RecordIterator<org.janusgraph.diskstorage.Entry>booleanhasNext()org.janusgraph.diskstorage.StaticBuffernext()voidscanCallback(com.aerospike.client.Key key, com.aerospike.client.Record record) voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Constructor Details
-
AerospikeKeyIterator
public AerospikeKeyIterator(org.janusgraph.diskstorage.keycolumnvalue.SliceQuery query)
-
-
Method Details
-
getEntries
public org.janusgraph.diskstorage.util.RecordIterator<org.janusgraph.diskstorage.Entry> getEntries()- Specified by:
getEntriesin interfaceorg.janusgraph.diskstorage.keycolumnvalue.KeyIterator
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
hasNext
public boolean hasNext() -
next
public org.janusgraph.diskstorage.StaticBuffer next() -
scanCallback
public void scanCallback(com.aerospike.client.Key key, com.aerospike.client.Record record) throws com.aerospike.client.AerospikeException - Specified by:
scanCallbackin interfacecom.aerospike.client.ScanCallback- Throws:
com.aerospike.client.AerospikeException
-
setThread
-