Class SqlJetMapCursor
java.lang.Object
org.tmatesoft.sqljet.core.internal.map.SqlJetMapCursor
- All Implemented Interfaces:
ISqlJetMapCursor
,ISqlJetMapIterator
- Author:
- TMate Software Ltd., Sergey Scherbina (sergey.scherbina@gmail.com)
-
Constructor Summary
ConstructorsConstructorDescriptionSqlJetMapCursor
(SqlJetMapDb mapDb, ISqlJetBtree btree, SqlJetMapDef mapDef, boolean writable) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
boolean
eof()
Tests whether this cursor is positioned behind the last record.boolean
first()
Goes to the first record.java.lang.Object[]
getKey()
java.lang.Object[]
getValue()
boolean
goToKey
(java.lang.Object[] key) boolean
last()
Goes to the last record.boolean
next()
Goes to the next record.boolean
previous()
Goes to the previous record.void
put
(java.lang.Object[] key, java.lang.Object[] value) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
SqlJetMapCursor
public SqlJetMapCursor(SqlJetMapDb mapDb, ISqlJetBtree btree, SqlJetMapDef mapDef, boolean writable) throws SqlJetException - Parameters:
mapDb
-btree
-mapDef
-writable
-- Throws:
SqlJetException
-
-
Method Details
-
getMapTable
- Specified by:
getMapTable
in interfaceISqlJetMapCursor
- Returns:
- Throws:
SqlJetException
-
getMapIndex
- Specified by:
getMapIndex
in interfaceISqlJetMapCursor
- Throws:
SqlJetException
-
close
- Specified by:
close
in interfaceISqlJetMapCursor
- Throws:
SqlJetException
-
getKey
- Specified by:
getKey
in interfaceISqlJetMapCursor
- Returns:
- Throws:
SqlJetException
-
getValue
- Specified by:
getValue
in interfaceISqlJetMapCursor
- Returns:
- Throws:
SqlJetException
-
goToKey
- Specified by:
goToKey
in interfaceISqlJetMapCursor
- Parameters:
key
-- Returns:
- Throws:
SqlJetException
-
put
- Specified by:
put
in interfaceISqlJetMapCursor
- Parameters:
key
-value
-- Throws:
SqlJetException
-
eof
Description copied from interface:ISqlJetMapIterator
Tests whether this cursor is positioned behind the last record.- Specified by:
eof
in interfaceISqlJetMapIterator
- Returns:
- true if the cursor is not on a record and fields can't be read.
- Throws:
SqlJetException
-
first
Description copied from interface:ISqlJetMapIterator
Goes to the first record.- Specified by:
first
in interfaceISqlJetMapIterator
- Returns:
- true if there is at least one record.
- Throws:
SqlJetException
-
last
Description copied from interface:ISqlJetMapIterator
Goes to the last record.- Specified by:
last
in interfaceISqlJetMapIterator
- Returns:
- true if there is at least one record.
- Throws:
SqlJetException
-
next
Description copied from interface:ISqlJetMapIterator
Goes to the next record.- Specified by:
next
in interfaceISqlJetMapIterator
- Returns:
- true if there is at least one record and end of cursor is not reached yet
- Throws:
SqlJetException
-
previous
Description copied from interface:ISqlJetMapIterator
Goes to the previous record.- Specified by:
previous
in interfaceISqlJetMapIterator
- Returns:
- true if there is at least one record and begin of cursor is not reached yet
- Throws:
SqlJetException
-