| Constructor and Description |
|---|
ProjectScan(Scan s,
Collection<String> fieldList)
Creates a project scan having the specified underlying scan and field
list.
|
| Modifier and Type | Method and Description |
|---|---|
void |
beforeFirst()
Positions the scan before its first record.
|
void |
close()
Closes the scan and its subscans, if any.
|
Constant |
getVal(String fldName)
Returns the
value of the specified field. |
boolean |
hasField(String fldName)
Returns true if the specified field is in the projection list.
|
boolean |
next()
Moves the scan to the next record.
|
public ProjectScan(Scan s, Collection<String> fieldList)
s - the underlying scanfieldList - the list of field namespublic void beforeFirst()
ScanbeforeFirst in interface Scanpublic boolean next()
Scanpublic void close()
Scanpublic Constant getVal(String fldName)
Recordvalue of the specified field.public boolean hasField(String fldName)
hasField in interface ScanfldName - the name of the fieldScan.hasField(java.lang.String)Copyright © 2022 VanillaDB Organization. All rights reserved.