Class KeyRecordIterator

java.lang.Object
org.springframework.data.aerospike.query.KeyRecordIterator
All Implemented Interfaces:
Closeable, AutoCloseable, Iterator<com.aerospike.client.query.KeyRecord>

public class KeyRecordIterator extends Object implements Iterator<com.aerospike.client.query.KeyRecord>, Closeable
Iterator for traversing a collection of KeyRecords
Author:
peter
  • Constructor Details

    • KeyRecordIterator

      public KeyRecordIterator(String namespace)
    • KeyRecordIterator

      public KeyRecordIterator(String namespace, com.aerospike.client.query.KeyRecord singleRecord)
    • KeyRecordIterator

      public KeyRecordIterator(String namespace, com.aerospike.client.query.RecordSet recordSet)
    • KeyRecordIterator

      public KeyRecordIterator(String namespace, com.aerospike.client.query.ResultSet resultSet)
  • Method Details

    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<com.aerospike.client.query.KeyRecord>
    • next

      public com.aerospike.client.query.KeyRecord next()
      Specified by:
      next in interface Iterator<com.aerospike.client.query.KeyRecord>
    • remove

      public void remove()
      Specified by:
      remove in interface Iterator<com.aerospike.client.query.KeyRecord>
    • toString

      public String toString()
      Overrides:
      toString in class Object