| 
||||||||||
| 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,
            Collection<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(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 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,
                   Collection<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(String fldname)
Scan
getVal in interface Scanfldname - the name of the field
public int getInt(String fldname)
Scan
getInt in interface Scanfldname - the name of the field
public String getString(String fldname)
Scan
getString in interface Scanfldname - the name of the field
public boolean hasField(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 | |||||||||