|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimpledb.Tuple
public class Tuple
Tuple maintains information about the contents of a tuple. Tuples have a specified schema specified by a TupleDesc object and contain Field objects with the data for each field.
Constructor Summary | |
---|---|
Tuple(TupleDesc td)
Create a new tuple with the specified schema (type). |
Method Summary | |
---|---|
Field |
getField(int i)
|
RecordId |
getRecordId()
|
TupleDesc |
getTupleDesc()
|
void |
setField(int i,
Field f)
Change the value of the ith field of this tuple. |
void |
setRecordId(RecordId rid)
Set the RecordId information for this tuple. |
java.lang.String |
toString()
Returns the contents of this Tuple as a string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Tuple(TupleDesc td)
td
- the schema of this tuple. It must be a valid TupleDesc
instance with at least one field.Method Detail |
---|
public TupleDesc getTupleDesc()
public RecordId getRecordId()
public void setRecordId(RecordId rid)
rid
- the new RecordId for this tuple.public void setField(int i, Field f)
i
- index of the field to change. It must be a valid index.f
- new value for the field.public Field getField(int i)
i
- field index to return. Must be a valid index.
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |