Class SqlJetMapCursor
java.lang.Object
org.tmatesoft.sqljet.core.internal.map.SqlJetMapCursor
- All Implemented Interfaces:
ISqlJetMapCursor
,ISqlJetMapIterator
-
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.Object[]
getKey()
Object[]
getValue()
boolean
boolean
last()
Goes to the last record.boolean
next()
Goes to the next record.boolean
previous()
Goes to the previous record.void
-
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
-