|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsimpledb.index.query.IndexSelectScan
public class IndexSelectScan
The scan class corresponding to the select relational algebra operator.
| Constructor Summary | |
|---|---|
IndexSelectScan(Index idx,
Constant val,
TableScan ts)
Creates an index select scan for the specified index and selection constant. |
|
| Method Summary | |
|---|---|
void |
beforeFirst()
Positions the scan before the first record, which in this case means positioning the index before the first instance of the selection constant. |
void |
close()
Closes the scan by closing the index and the tablescan. |
int |
getInt(java.lang.String fldname)
Returns the value of the field of the current data record. |
java.lang.String |
getString(java.lang.String fldname)
Returns the value of the field of the current data record. |
Constant |
getVal(java.lang.String fldname)
Returns the value of the field of the current data record. |
boolean |
hasField(java.lang.String fldname)
Returns whether the data record has the specified field. |
boolean |
next()
Moves to the next record, which in this case means moving the index to the next record satisfying the selection constant, and returning false if there are no more such index records. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IndexSelectScan(Index idx,
Constant val,
TableScan ts)
idx - the indexval - the selection constant| Method Detail |
|---|
public void beforeFirst()
beforeFirst in interface ScanScan.beforeFirst()public boolean next()
next in interface ScanScan.next()public void close()
close in interface ScanScan.close()public Constant getVal(java.lang.String fldname)
getVal in interface Scanfldname - the name of the field
Scan.getVal(java.lang.String)public int getInt(java.lang.String fldname)
getInt in interface Scanfldname - the name of the field
Scan.getInt(java.lang.String)public java.lang.String getString(java.lang.String fldname)
getString in interface Scanfldname - the name of the field
Scan.getString(java.lang.String)public boolean hasField(java.lang.String fldname)
hasField in interface Scanfldname - the name of the field
Scan.hasField(java.lang.String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||