|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.openrdf.sesame.query.QueryResultsTable
A table for query results. This table is provided for those who do not want to use the streaming approach provided by the QueryResultListener. The QueryResultsTableBuilder can be used to build the tables. The query results table is guaranteed to be rectangular (i.e. the number of columns is equal for all rows).
TableQueryResultListener,
QueryResultsTableBuilder,
Serialized Form| Constructor Summary | |
QueryResultsTable(int colCount)
Creates a new QueryResultsTable that can store a query result with the indicated number of columns. |
|
QueryResultsTable(int colCount,
String[] columnNames)
|
|
| Method Summary | |
boolean |
equals(Object other)
Compares this QueryResultsTable with another, returning true if both contain the same values. |
int |
getColumnCount()
Gets the number of columns in this table. |
String |
getColumnName(int column)
Return the name of the column at index 'column' |
String[] |
getColumnNames()
return the names of all columns in an array. |
int |
getRowCount()
Gets the number of rows in this table. |
Value |
getValue(int row,
int column)
Fetches the value at the specified row and column in this table. |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public QueryResultsTable(int colCount)
colCount - The number of columns that the query result has.
public QueryResultsTable(int colCount,
String[] columnNames)
| Method Detail |
public int getRowCount()
public int getColumnCount()
public String[] getColumnNames()
public String getColumnName(int column)
column - the column index
public Value getValue(int row,
int column)
IndexOutOfBoundsException - If the requested row or column
is out of the range of this table.public boolean equals(Object other)
public int hashCode()
public String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||