|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimpledb.record.RecordFile
public class RecordFile
Manages a file of records. There are methods for iterating through the records and accessing their contents.
Constructor Summary | |
---|---|
RecordFile(TableInfo ti,
Transaction tx)
Constructs an object to manage a file of records. |
Method Summary | |
---|---|
void |
beforeFirst()
Positions the current record so that a call to method next will wind up at the first record. |
void |
close()
Closes the record file. |
RID |
currentRid()
Returns the RID of the current record. |
void |
delete()
Deletes the current record. |
int |
getInt(String fldname)
Returns the value of the specified field in the current record. |
String |
getString(String fldname)
Returns the value of the specified field in the current record. |
void |
insert()
Inserts a new, blank record somewhere in the file beginning at the current record. |
void |
moveToRid(RID rid)
Positions the current record as indicated by the specified RID. |
boolean |
next()
Moves to the next record. |
void |
setInt(String fldname,
int val)
Sets the value of the specified field in the current record. |
void |
setString(String fldname,
String val)
Sets the value of the specified field in the current record. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RecordFile(TableInfo ti, Transaction tx)
ti
- the table metadatatx
- the transactionMethod Detail |
---|
public void close()
public void beforeFirst()
public boolean next()
public int getInt(String fldname)
fldname
- the name of the field
public String getString(String fldname)
fldname
- the name of the field
public void setInt(String fldname, int val)
fldname
- the name of the fieldval
- the new value for the fieldpublic void setString(String fldname, String val)
fldname
- the name of the fieldval
- the new value for the fieldpublic void delete()
public void insert()
public void moveToRid(RID rid)
rid
- a record identifierpublic RID currentRid()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |