|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The class defines the data model of the XAT, which is a table of XML fragments.
Method Summary | |
void |
appendTable(XATTable sour)
Append this table to given table. |
int |
appendTuple(java.util.Vector new_tuple)
Append a new tuple to the end of the table. |
XATTable |
cloneSchema()
Construct a new XATTable which has the same column names as this XATTable. |
void |
deleteAllTuples()
Delete all the tuples in this XATTable. |
java.util.Vector |
deleteTuple(int position)
Delete a tuple of the specified position. |
java.util.Vector |
getCommonColumnNames(XATTable tab2)
This method takes two XATTables, finds all matching columns. |
java.lang.String |
getName()
Get the Name of the XATTable. |
int |
getNumberOfTuples()
Get total number of tuples in this table. |
java.util.Vector |
getRowList()
Get the vector containing the columns contents. |
java.util.Vector |
getTuple(int position)
Get a tuple in a specified position. |
java.util.Vector |
getUnCommonColumnNames(XATTable tab2)
This method takes two XATTables, and finds all un-matching columns. |
int |
insertTuple(int position,
java.util.Vector new_tuple)
Insert a new tuple to the table before specific position. |
void |
moveTuple(int from_position,
int to_position)
Move a tuple to a specific position. |
void |
print()
Prints the XATTable |
void |
setColumnName(java.lang.String newName,
int position)
Set Column Name in the specified position. |
java.lang.String |
setName(java.lang.String newName)
Set the Name of the Table. |
java.lang.String |
toString()
Convert the XATTable into a String for output. |
java.util.Vector |
updateTuple(int position,
java.util.Vector new_tuple)
Update a tuple. |
Methods inherited from interface edu.wpi.cs.dsrg.xmldb.xat.common.xatnode.XATDataSource |
deepCloneDataSource |
Methods inherited from interface edu.wpi.cs.dsrg.xmldb.xat.common.xatnode.ColumnAccessor |
appendColumn,
appendColumn,
deleteColumn,
getColList,
getColNames,
getColumn,
getColumnName,
getColumnPosition,
getNumberOfColumns,
insertColumn,
mergeColumnNames,
moveColumn,
updateColumn |
Methods inherited from interface edu.wpi.cs.dsrg.xmldb.xat.common.xatnode.RowAccessor |
getValue,
updateValue |
Methods inherited from interface edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATQueryObject |
getStatistics,
isValidStatistic |
Methods inherited from interface edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATProperties |
getProperties,
getProperty,
isValidPropertyName,
setProperty |
Method Detail |
public void appendTable(XATTable sour)
sour
- The source table will be appended.public int appendTuple(java.util.Vector new_tuple) throws XATTableSchemaNoMatchException
new_tuple
- The new tuple going to be appended.public XATTable cloneSchema()
public void deleteAllTuples()
public java.util.Vector deleteTuple(int position) throws XATTableOutOfRangeException, XATTableEmptyException
position
- The position of the tuple going to be deleted.public java.util.Vector getCommonColumnNames(XATTable tab2)
tab2
- The another source XATTable.public java.lang.String getName()
public int getNumberOfTuples()
public java.util.Vector getRowList()
public java.util.Vector getTuple(int position) throws XATTableEmptyException, XATTableOutOfRangeException
position
- The position of the tuple start from 1.public java.util.Vector getUnCommonColumnNames(XATTable tab2)
tab2
- The another source XATTable.public int insertTuple(int position, java.util.Vector new_tuple) throws XATTableOutOfRangeException, XATTableSchemaNoMatchException
positoin
- The inserted tuple position.new_tuple
- The new tuple content.public void moveTuple(int from_position, int to_position) throws XATTableOutOfRangeException, XATTableEmptyException
from_position
- The position of tuple to be moved.to_position
- Identify the dest position moved to.public void print()
public void setColumnName(java.lang.String newName, int position) throws XATTableOutOfRangeException
newName
- The new name for column.position
- The position for this new column name.public java.lang.String setName(java.lang.String newName)
newName
- The new name of the XATTable.public java.lang.String toString()
public java.util.Vector updateTuple(int position, java.util.Vector new_tuple) throws XATTableOutOfRangeException, XATTableEmptyException, XATTableSchemaNoMatchException
position
- The position of tuple to be updated.new_tuple
- The new tuple.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |