|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsimpledb.multibuffer.ChunkScan
public class ChunkScan
The class for the chunk operator.
| Constructor Summary | |
|---|---|
ChunkScan(TableInfo ti,
int startbnum,
int endbnum,
Transaction tx)
Creates a chunk consisting of the specified pages. |
|
| Method Summary | |
|---|---|
void |
beforeFirst()
Positions the scan before its first record. |
void |
close()
Closes the scan and its subscans, if any. |
int |
getInt(String fldname)
Returns the value of the specified integer field in the current record. |
String |
getString(String fldname)
Returns the value of the specified string field in the current record. |
Constant |
getVal(String fldname)
Returns the value of the specified field in the current record. |
boolean |
hasField(String fldname)
Returns true if the scan has the specified field. |
boolean |
next()
Moves to the next record in the current block of the chunk. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChunkScan(TableInfo ti,
int startbnum,
int endbnum,
Transaction tx)
ti - the metadata for the chunked tablestartbnum - the starting block numberendbnum - the ending block numbertx - the current transaction| Method Detail |
|---|
public void beforeFirst()
Scan
beforeFirst in interface ScanScan.beforeFirst()public boolean next()
next in interface ScanScan.next()public void close()
Scan
close in interface ScanScan.close()public Constant getVal(String fldname)
Scan
getVal in interface Scanfldname - the name of the field
Scan.getVal(java.lang.String)public int getInt(String fldname)
Scan
getInt in interface Scanfldname - the name of the field
Scan.getInt(java.lang.String)public String getString(String fldname)
Scan
getString in interface Scanfldname - the name of the field
Scan.getString(java.lang.String)public boolean hasField(String fldname)
Scan
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 | |||||||||