org.h2.index
Class NonUniqueHashCursor

java.lang.Object
  extended by org.h2.index.NonUniqueHashCursor
All Implemented Interfaces:
Cursor

public class NonUniqueHashCursor
extends java.lang.Object
implements Cursor

Cursor implementation for non-unique hash index

Author:
Sergi Vladykin

Constructor Summary
NonUniqueHashCursor(Session session, TableData tableData, IntArray positions)
           
 
Method Summary
 Row get()
          Get the complete current row.
 long getKey()
          Get the unique key of the current row.
 SearchRow getSearchRow()
          Get the current row.
 boolean next()
          Skip to the next row if one is available.
 boolean previous()
          Skip to the previous row if one is available.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NonUniqueHashCursor

public NonUniqueHashCursor(Session session,
                           TableData tableData,
                           IntArray positions)
Method Detail

get

public Row get()
        throws java.sql.SQLException
Description copied from interface: Cursor
Get the complete current row. All column are available.

Specified by:
get in interface Cursor
Returns:
the complete row
Throws:
java.sql.SQLException

getKey

public long getKey()
Description copied from interface: Cursor
Get the unique key of the current row.

Specified by:
getKey in interface Cursor
Returns:
the key

getSearchRow

public SearchRow getSearchRow()
                       throws java.sql.SQLException
Description copied from interface: Cursor
Get the current row. Only the data for indexed columns is available in this row.

Specified by:
getSearchRow in interface Cursor
Returns:
the search row
Throws:
java.sql.SQLException

next

public boolean next()
Description copied from interface: Cursor
Skip to the next row if one is available.

Specified by:
next in interface Cursor
Returns:
true if another row is available

previous

public boolean previous()
Description copied from interface: Cursor
Skip to the previous row if one is available. No filtering is made here.

Specified by:
previous in interface Cursor
Returns:
true if another row is available