Class SqlJetMapCursor
- java.lang.Object
-
- org.tmatesoft.sqljet.core.internal.map.SqlJetMapCursor
-
- All Implemented Interfaces:
ISqlJetMapCursor,ISqlJetMapIterator
public class SqlJetMapCursor extends java.lang.Object implements ISqlJetMapCursor
-
-
Constructor Summary
Constructors Constructor Description SqlJetMapCursor(SqlJetMapDb mapDb, ISqlJetBtree btree, SqlJetMapDef mapDef, boolean writable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()booleaneof()Tests whether this cursor is positioned behind the last record.booleanfirst()Goes to the first record.java.lang.Object[]getKey()ISqlJetMapIndexCursorgetMapIndex()ISqlJetMapTableCursorgetMapTable()java.lang.Object[]getValue()booleangoToKey(java.lang.Object[] key)booleanlast()Goes to the last record.booleannext()Goes to the next record.booleanprevious()Goes to the previous record.voidput(java.lang.Object[] key, java.lang.Object[] value)
-
-
-
Constructor Detail
-
SqlJetMapCursor
public SqlJetMapCursor(SqlJetMapDb mapDb, ISqlJetBtree btree, SqlJetMapDef mapDef, boolean writable) throws SqlJetException
- Parameters:
mapDb-btree-mapDef-writable-- Throws:
SqlJetException
-
-
Method Detail
-
getMapTable
public ISqlJetMapTableCursor getMapTable() throws SqlJetException
- Specified by:
getMapTablein interfaceISqlJetMapCursor- Returns:
- Throws:
SqlJetException
-
getMapIndex
public ISqlJetMapIndexCursor getMapIndex() throws SqlJetException
- Specified by:
getMapIndexin interfaceISqlJetMapCursor- Throws:
SqlJetException
-
close
public void close() throws SqlJetException- Specified by:
closein interfaceISqlJetMapCursor- Throws:
SqlJetException
-
getKey
public java.lang.Object[] getKey() throws SqlJetException- Specified by:
getKeyin interfaceISqlJetMapCursor- Returns:
- Throws:
SqlJetException
-
getValue
public java.lang.Object[] getValue() throws SqlJetException- Specified by:
getValuein interfaceISqlJetMapCursor- Returns:
- Throws:
SqlJetException
-
goToKey
public boolean goToKey(java.lang.Object[] key) throws SqlJetException- Specified by:
goToKeyin interfaceISqlJetMapCursor- Parameters:
key-- Returns:
- Throws:
SqlJetException
-
put
public void put(java.lang.Object[] key, java.lang.Object[] value) throws SqlJetException- Specified by:
putin interfaceISqlJetMapCursor- Parameters:
key-value-- Throws:
SqlJetException
-
eof
public boolean eof() throws SqlJetExceptionDescription copied from interface:ISqlJetMapIteratorTests whether this cursor is positioned behind the last record.- Specified by:
eofin interfaceISqlJetMapIterator- Returns:
- true if the cursor is not on a record and fields can't be read.
- Throws:
SqlJetException
-
first
public boolean first() throws SqlJetExceptionDescription copied from interface:ISqlJetMapIteratorGoes to the first record.- Specified by:
firstin interfaceISqlJetMapIterator- Returns:
- true if there is at least one record.
- Throws:
SqlJetException
-
last
public boolean last() throws SqlJetExceptionDescription copied from interface:ISqlJetMapIteratorGoes to the last record.- Specified by:
lastin interfaceISqlJetMapIterator- Returns:
- true if there is at least one record.
- Throws:
SqlJetException
-
next
public boolean next() throws SqlJetExceptionDescription copied from interface:ISqlJetMapIteratorGoes to the next record.- Specified by:
nextin interfaceISqlJetMapIterator- Returns:
- true if there is at least one record and end of cursor is not reached yet
- Throws:
SqlJetException
-
previous
public boolean previous() throws SqlJetExceptionDescription copied from interface:ISqlJetMapIteratorGoes to the previous record.- Specified by:
previousin interfaceISqlJetMapIterator- Returns:
- true if there is at least one record and begin of cursor is not reached yet
- Throws:
SqlJetException
-
-