|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsimpledb.query.ProjectScan
public class ProjectScan
The scan class corresponding to the project relational algebra operator. All methods except hasField delegate their work to the underlying scan.
| Constructor Summary | |
|---|---|
ProjectScan(Scan s,
java.util.Collection<java.lang.String> fieldlist)
Creates a project scan having the specified underlying scan and field list. |
|
| Method Summary | |
|---|---|
void |
beforeFirst()
Positions the scan before its first record. |
void |
close()
Closes the scan and its subscans, if any. |
int |
getInt(java.lang.String fldname)
Returns the value of the specified integer field in the current record. |
java.lang.String |
getString(java.lang.String fldname)
Returns the value of the specified string field in the current record. |
Constant |
getVal(java.lang.String fldname)
Returns the value of the specified field in the current record. |
boolean |
hasField(java.lang.String fldname)
Returns true if the specified field is in the projection list. |
boolean |
next()
Moves the scan to the next record. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProjectScan(Scan s,
java.util.Collection<java.lang.String> fieldlist)
s - the underlying scanfieldlist - the list of field names| Method Detail |
|---|
public void beforeFirst()
Scan
beforeFirst in interface Scanpublic boolean next()
Scan
next in interface Scanpublic void close()
Scan
close in interface Scanpublic Constant getVal(java.lang.String fldname)
Scan
getVal in interface Scanfldname - the name of the field
public int getInt(java.lang.String fldname)
Scan
getInt in interface Scanfldname - the name of the field
public java.lang.String getString(java.lang.String fldname)
Scan
getString in interface Scanfldname - the name of the field
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 | |||||||||