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()
Scan
beforeFirst
in interface Scan
public boolean next()
Scan
public void close()
Scan
public Constant getVal(String fldName)
Record
value
of the specified field.public boolean hasField(String fldName)
hasField
in interface Scan
fldName
- the name of the fieldScan.hasField(java.lang.String)
Copyright © 2022 VanillaDB Organization. All rights reserved.