|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.gibello.zql.data.ZTuple
public class ZTuple
| Constructor Summary | |
|---|---|
ZTuple()
The simplest constructor |
|
ZTuple(java.lang.String colnames)
Create a new tuple, given it's column names |
|
| Method Summary | |
|---|---|
int |
getAttIndex(java.lang.String name)
Return the index of the attribute corresponding to the name |
java.lang.String |
getAttName(int index)
Return the name of the attribute corresponding to the index |
java.lang.Object |
getAttValue(int index)
Return the value of the attribute corresponding to the index |
java.lang.Object |
getAttValue(java.lang.String name)
Return the value of the attribute whith the given name |
int |
getNumAtt()
Return the number of attributes in the tupple |
boolean |
isAttribute(java.lang.String attrName)
To know if an attributes is already defined |
void |
setAtt(java.lang.String name,
java.lang.Object value)
Set the value of the given attribute name |
void |
setRow(java.lang.String row)
Set the current tuple's column values. |
void |
setRow(java.util.Vector row)
Set the current tuple's column values. |
java.lang.String |
toString()
Returns a string representation of the object |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ZTuple()
public ZTuple(java.lang.String colnames)
colnames - Column names separated by commas (,).| Method Detail |
|---|
public void setRow(java.lang.String row)
row - Column values separated by commas (,).public void setRow(java.util.Vector row)
row - A vector of column values.
public void setAtt(java.lang.String name,
java.lang.Object value)
name - the string representing the attribute namevalue - the Object representing the attribute valuepublic java.lang.String getAttName(int index)
index - integer giving the index of the attribute
public int getAttIndex(java.lang.String name)
index - integer giving the index of the attribute
public java.lang.Object getAttValue(int index)
index - integer giving the index of the attribute
public java.lang.Object getAttValue(java.lang.String name)
public boolean isAttribute(java.lang.String attrName)
attrName - the name of the attribute
public int getNumAtt()
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 | ||||||||