dk.vajhoej.isam.local
Class LocalIsamResultReverse<T,TK>

java.lang.Object
  extended by dk.vajhoej.isam.local.LocalIsamResultReverse<T,TK>
All Implemented Interfaces:
IsamResult<T>

public class LocalIsamResultReverse<T,TK>
extends java.lang.Object
implements IsamResult<T>

Class LocalIsamResultReverse is a result from a find operation in a local ISAM source for implementations that does not support reverse.


Constructor Summary
LocalIsamResultReverse(java.lang.Class<T> t, Key<TK> k, NativeIsam del, byte[] buf, boolean firstfnd)
          Create instance of LocalIsamResult.
 
Method Summary
 void close()
          Close.
 T current()
          Return current record.
 boolean read()
          Read record.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalIsamResultReverse

public LocalIsamResultReverse(java.lang.Class<T> t,
                              Key<TK> k,
                              NativeIsam del,
                              byte[] buf,
                              boolean firstfnd)
                       throws IsamException
Create instance of LocalIsamResult.

Parameters:
t - type to load
del - delegate to NativeIsam
buf - buffer to receive data
firstfnd - whether first record was found
Throws:
IsamException - if problem
Method Detail

read

public boolean read()
             throws IsamException,
                    RecordException
Description copied from interface: IsamResult
Read record.

Specified by:
read in interface IsamResult<T>
Returns:
true if record read false if record not read
Throws:
IsamException - if problem with ISAM source
RecordException - if problem converting data

current

public T current()
          throws IsamException,
                 RecordException
Description copied from interface: IsamResult
Return current record.

Specified by:
current in interface IsamResult<T>
Returns:
current record
Throws:
IsamException - if problem with ISAM source
RecordException - if problem converting data

close

public void close()
           throws IsamException
Description copied from interface: IsamResult
Close.

Specified by:
close in interface IsamResult<T>
Throws:
IsamException - if problem with ISAM source