public class SelectScan extends Object implements UpdateScan
Constructor and Description |
---|
SelectScan(Scan s,
Predicate pred)
Creates a select scan having the specified underlying scan and predicate.
|
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.
|
void |
delete()
Deletes the current record from the scan.
|
RecordId |
getRecordId()
Returns the RecordId of the current record.
|
Constant |
getVal(String fldName)
Returns the
value of the specified field. |
boolean |
hasField(String fldName)
Returns true if the scan has the specified field.
|
void |
insert()
Inserts a new record somewhere in the scan.
|
void |
moveToRecordId(RecordId rid)
Positions the scan so that the current record has the specified record ID
.
|
boolean |
next()
Move to the next record satisfying the predicate.
|
void |
setVal(String fldname,
Constant val)
Modifies the field value of the current record.
|
public void beforeFirst()
Scan
beforeFirst
in interface Scan
public boolean next()
next
in interface Scan
Scan.next()
public void close()
Scan
public Constant getVal(String fldName)
Record
value
of the specified field.public boolean hasField(String fldName)
Scan
public void setVal(String fldname, Constant val)
UpdateScan
setVal
in interface UpdateScan
fldname
- the name of the fieldval
- the new value, expressed as a Constantpublic void delete()
UpdateScan
delete
in interface UpdateScan
public void insert()
UpdateScan
insert
in interface UpdateScan
public RecordId getRecordId()
UpdateScan
getRecordId
in interface UpdateScan
public void moveToRecordId(RecordId rid)
UpdateScan
moveToRecordId
in interface UpdateScan
rid
- the RecordId of the desired recordCopyright © 2022 VanillaDB Organization. All rights reserved.