|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimpledb.materialize.SortScan
public class SortScan
Constructor Summary | |
---|---|
SortScan(List<TempTable> runs,
RecordComparator comp)
Creates a sort scan, given a list of 1 or 2 runs. |
Method Summary | |
---|---|
void |
beforeFirst()
Positions the scan before the first record in sorted order. |
void |
close()
Closes the two underlying scans. |
int |
getInt(String fldname)
Gets the integer value of the specified field of the current scan. |
String |
getString(String fldname)
Gets the string value of the specified field of the current scan. |
Constant |
getVal(String fldname)
Gets the Constant value of the specified field of the current scan. |
boolean |
hasField(String fldname)
Returns true if the specified field is in the current scan. |
boolean |
next()
Moves to the next record in sorted order. |
void |
restorePosition()
Moves the scan to its previously-saved position. |
void |
savePosition()
Saves the position of the current record, so that it can be restored at a later time. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SortScan(List<TempTable> runs, RecordComparator comp)
runs
- the list of runscomp
- the record comparatorMethod Detail |
---|
public void beforeFirst()
beforeFirst
in interface Scan
Scan.beforeFirst()
public boolean next()
next
in interface Scan
Scan.next()
public void close()
close
in interface Scan
Scan.close()
public Constant getVal(String fldname)
getVal
in interface Scan
fldname
- the name of the field
Scan.getVal(java.lang.String)
public int getInt(String fldname)
getInt
in interface Scan
fldname
- the name of the field
Scan.getInt(java.lang.String)
public String getString(String fldname)
getString
in interface Scan
fldname
- the name of the field
Scan.getString(java.lang.String)
public boolean hasField(String fldname)
hasField
in interface Scan
fldname
- the name of the field
Scan.hasField(java.lang.String)
public void savePosition()
public void restorePosition()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |