public class TableScanCursor extends CursorImpl
CursorImpl.BaseIterator, CursorImpl.DirHandler, CursorImpl.IdImpl, CursorImpl.PositionImpl, CursorImpl.SavepointImpl
Cursor.Id, Cursor.Position, Cursor.Savepoint
_columnMatcher, _curPos, _prevPos, MOVE_FORWARD, MOVE_REVERSE
Constructor and Description |
---|
TableScanCursor(TableImpl table) |
Modifier and Type | Method and Description |
---|---|
protected CursorImpl.PositionImpl |
findAnotherPosition(TableImpl.RowState rowState,
CursorImpl.PositionImpl curPos,
boolean moveForward)
Finds the next non-deleted row after the given row (as defined by this
cursor) and returns the id of the row, where "next" may be backwards if
moveForward is
false . |
protected com.healthmarketscience.jackcess.impl.TableScanCursor.ScanDirHandler |
getDirHandler(boolean moveForward)
Returns the DirHandler for the given movement direction.
|
protected CursorImpl.PositionImpl |
getRowPosition(RowIdImpl rowId)
Returns the appropriate position information for the given row (which is
the current row and is valid).
|
protected boolean |
isUpToDate()
Returns
true if this cursor is up-to-date with respect to the
relevant table and related table objects, false otherwise. |
protected void |
reset(boolean moveForward)
Resets this cursor for traversing the given direction.
|
protected void |
restorePositionImpl(CursorImpl.PositionImpl curPos,
CursorImpl.PositionImpl prevPos)
Restores a current and previous position for the cursor.
|
afterLast, beforeFirst, createCursor, currentRowMatches, currentRowMatches, currentRowMatches, currentRowMatchesImpl, currentRowMatchesImpl, deleteCurrentRow, findAnotherRow, findAnotherRow, findAnotherRowImpl, findAnotherRowImpl, findFirstRow, findFirstRow, findFirstRow, findNextRow, findNextRow, findNextRow, findRow, getColumnMatcher, getCurrentRow, getCurrentRow, getCurrentRowValue, getCurrentRowValue, getDefaultColumnMatcher, getErrorHandler, getFirstPosition, getFormat, getId, getLastPosition, getNextRow, getNextRow, getPageChannel, getPreviousRow, getPreviousRow, getRowState, getSavepoint, getTable, isAfterLast, isAtBeginning, isBeforeFirst, isCurrentRowDeleted, isCurrentRowValid, iterator, iterator, keepSearching, moveNextRows, movePreviousRows, moveToAnotherRow, moveToNextRow, moveToPreviousRow, newIterable, prepareSearchInfo, prepareSearchInfo, reset, restorePosition, restorePosition, restoreSavepoint, restoreSavepoint, setColumnMatcher, setCurrentRowValue, setCurrentRowValue, setErrorHandler, toString, updateCurrentRow, updateCurrentRowFromMap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public TableScanCursor(TableImpl table)
protected com.healthmarketscience.jackcess.impl.TableScanCursor.ScanDirHandler getDirHandler(boolean moveForward)
CursorImpl
getDirHandler
in class CursorImpl
protected boolean isUpToDate()
CursorImpl
true
if this cursor is up-to-date with respect to the
relevant table and related table objects, false
otherwise.isUpToDate
in class CursorImpl
protected void reset(boolean moveForward)
CursorImpl
reset
in class CursorImpl
protected void restorePositionImpl(CursorImpl.PositionImpl curPos, CursorImpl.PositionImpl prevPos) throws IOException
CursorImpl
restorePositionImpl
in class CursorImpl
IOException
protected CursorImpl.PositionImpl getRowPosition(RowIdImpl rowId) throws IOException
CursorImpl
getRowPosition
in class CursorImpl
IOException
protected CursorImpl.PositionImpl findAnotherPosition(TableImpl.RowState rowState, CursorImpl.PositionImpl curPos, boolean moveForward) throws IOException
CursorImpl
false
. If there are no more rows, the returned
rowId should equal the value returned by CursorImpl.getLastPosition()
if
moving forward and CursorImpl.getFirstPosition()
if moving backward.findAnotherPosition
in class CursorImpl
IOException
Copyright © 2005–2018. All rights reserved.