com.healthmarketscience.jackcess.impl
Class CursorImpl.BaseIterator

java.lang.Object
  extended by com.healthmarketscience.jackcess.impl.CursorImpl.BaseIterator
All Implemented Interfaces:
Iterator<Row>
Enclosing class:
CursorImpl

protected abstract class CursorImpl.BaseIterator
extends Object
implements Iterator<Row>

Base implementation of iterator for this cursor, modifiable.


Field Summary
protected  ColumnMatcher _colMatcher
           
protected  Collection<String> _columnNames
           
protected  Boolean _hasNext
           
protected  boolean _moveForward
           
protected  boolean _validRow
           
 
Constructor Summary
protected CursorImpl.BaseIterator(Collection<String> columnNames, boolean reset, boolean moveForward, ColumnMatcher columnMatcher)
           
 
Method Summary
protected abstract  boolean findNext()
           
 boolean hasNext()
           
 Row next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_columnNames

protected final Collection<String> _columnNames

_moveForward

protected final boolean _moveForward

_colMatcher

protected final ColumnMatcher _colMatcher

_hasNext

protected Boolean _hasNext

_validRow

protected boolean _validRow
Constructor Detail

CursorImpl.BaseIterator

protected CursorImpl.BaseIterator(Collection<String> columnNames,
                                  boolean reset,
                                  boolean moveForward,
                                  ColumnMatcher columnMatcher)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<Row>

next

public Row next()
Specified by:
next in interface Iterator<Row>

remove

public void remove()
Specified by:
remove in interface Iterator<Row>

findNext

protected abstract boolean findNext()
                             throws IOException
Throws:
IOException


Copyright © 2005-2017 Health Market Science. All Rights Reserved.