com.devexperts.qd.ng
Class RecordSource

java.lang.Object
  extended by com.devexperts.qd.ng.RecordSource
Direct Known Subclasses:
RecordBuffer

public abstract class RecordSource
extends java.lang.Object

Record source is a read-only sequence of records that is available via RecordCursor using next() method. It supports navigation to arbitrary records by their position via getPosition() and cursorAt(long) methods and, thus, can be read multiple times.


Method Summary
abstract  RecordCursor cursorAt(long position)
          Returns read cursor at a specified position.
abstract  long getPosition()
          Retruns position of the current record.
abstract  RecordCursor next()
          Returns read cursor at the current position and advances position to next record.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

next

public abstract RecordCursor next()
Returns read cursor at the current position and advances position to next record.


cursorAt

public abstract RecordCursor cursorAt(long position)
Returns read cursor at a specified position. This postion should have been previously returned by getPosition() method.


getPosition

public abstract long getPosition()
Retruns position of the current record. This record will be read by next() method.