@Immutable public static interface QueryResults.Columns extends Serializable, Iterable<Column>
tuples
in the results, and which can be used to access the individual values in each of
the tuples.Modifier and Type | Method and Description |
---|---|
int |
getColumnCount()
Get the number of columns in each tuple.
|
int |
getColumnIndexForName(String columnName)
Get the index of the column given the column name.
|
int |
getColumnIndexForProperty(String selectorName,
String propertyName)
Get the index of the column given the name of the selector and the property name from where the column should be
obtained.
|
List<String> |
getColumnNames()
Get the names of the columns.
|
List<? extends Column> |
getColumns()
Get the columns.
|
String |
getColumnTypeForProperty(String selectorName,
String propertyName)
Get the type of the column given the name of the selector and the property name from where the column should be
obtained.
|
List<String> |
getColumnTypes()
Get the type name for each column.
|
int |
getFullTextSearchScoreIndexFor(String selectorName)
Get the index of the tuple value containing the full-text search score for the node taken from the named selector.
|
int |
getLocationCount()
Get the number of
QueryResults.Location objects in each tuple. |
int |
getLocationIndex(String selectorName)
Get the index of a tuple's correct Location object given the name of the selector used in the query.
|
int |
getLocationIndexForColumn(int columnIndex)
Get the index of a tuple's correct Location object given the column index.
|
int |
getLocationIndexForColumn(String columnName)
Get the index of a tuple's correct Location object given the column index.
|
String |
getPropertyNameForColumn(int columnIndex)
Get the name of the property that corresponds to the supplied column in each tuple.
|
String |
getPropertyNameForColumnName(String columnName)
Get the name of the property that corresponds to the named column in each tuple.
|
String |
getSelectorNameForColumnName(String columnName)
Get the name of the selector that produced the column with the given name.
|
List<String> |
getSelectorNames()
Get the names of the selectors that are associated with these results.
|
QueryResults.TupleReformatter |
getTupleReformatter()
Get the reducer that converts a tuple of the form described by the wrapped columns format to this columns format.
|
int |
getTupleSize()
Get the size of the tuple arrays.
|
List<String> |
getTupleValueNames()
Get the names of the all of the tuple values.
|
boolean |
hasFullTextSearchScores()
Determine whether these results include full-text search scores.
|
boolean |
hasSelector(String selectorName)
Determine if these results contain values from the selector with the supplied name.
|
boolean |
includes(QueryResults.Columns other)
Determine whether this mapping includes all of the columns (and locations) in the supplied mapping.
|
boolean |
isUnionCompatible(QueryResults.Columns other)
Determine whether this column and the other are union-compatible (that is, having the same columns).
|
QueryResults.Columns |
joinWith(QueryResults.Columns columns)
Obtain a new definition for the query results that is a combination of the these columns and the supplied columns,
where the columns from this object appear first, followed by columns from the supplied set.
|
QueryResults.Columns |
subSelect(Column... columns)
Obtain a new definition for the query results that can be used to reference the same tuples that use this columns
definition, but that defines a subset of the columns in this definition.
|
QueryResults.Columns |
subSelect(List<Column> columns)
Obtain a new definition for the query results that can be used to reference the same tuples that use this columns
definition, but that defines a subset of the columns in this definition.
|
List<? extends Column> getColumns()
getColumnCount()
; never nullList<String> getColumnNames()
getColumnCount()
; never nullList<String> getColumnTypes()
getColumnCount()
; never nullint getColumnCount()
int getLocationCount()
QueryResults.Location
objects in each tuple.List<String> getSelectorNames()
QueryResults.Location
object for each of the selectors.getLocationCount()
; never nullint getTupleSize()
List<String> getTupleValueNames()
int getLocationIndexForColumn(int columnIndex)
columnIndex
- the column indexIndexOutOfBoundsException
- if the column index is invalidint getLocationIndexForColumn(String columnName)
columnName
- the column nameNoSuchElementException
- if the column name is invalidint getLocationIndex(String selectorName)
selectorName
- the selector nameNoSuchElementException
- if the selector name is invalidboolean hasSelector(String selectorName)
selectorName
- the selector nameString getPropertyNameForColumn(int columnIndex)
columnIndex
- the column indexIndexOutOfBoundsException
- if the column index is invalidString getPropertyNameForColumnName(String columnName)
columnName
- the column nameint getColumnIndexForName(String columnName)
columnName
- the column nameNoSuchElementException
- if the column name is invalid or doesn't match an existing columnString getSelectorNameForColumnName(String columnName)
columnName
- the column nameNoSuchElementException
- if the column name is invalid or doesn't match an existing columnint getColumnIndexForProperty(String selectorName, String propertyName)
selectorName
- the selector namepropertyName
- the name of the propertyNoSuchElementException
- if the selector name or the property name are invalidString getColumnTypeForProperty(String selectorName, String propertyName)
selectorName
- the selector namepropertyName
- the name of the propertyNoSuchElementException
- if the selector name or the property name are invalidint getFullTextSearchScoreIndexFor(String selectorName)
selectorName
- the selector nameDouble
full-text search score, or -1 if there is no full-text search
score for the named selectorNoSuchElementException
- if the selector name is invalidboolean hasFullTextSearchScores()
boolean includes(QueryResults.Columns other)
other
- the other mapping; may not be nullboolean isUnionCompatible(QueryResults.Columns other)
other
- the other mapping; may not be nullQueryResults.Columns subSelect(List<Column> columns)
columns
- the new columns, which must be a subset of the columns in this definition; may not be nullQueryResults.Columns subSelect(Column... columns)
columns
- the new columns, which must be a subset of the columns in this definition; may not be nullQueryResults.Columns joinWith(QueryResults.Columns columns)
columns
- the new columns, which must be a subset of the columns in this definition; may not be nullQueryResults.TupleReformatter getTupleReformatter()
Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.