public static final class ScanningQueryEngine.ResultColumns extends Object implements QueryResults.Columns
| Modifier and Type | Class and Description |
|---|---|
protected static class |
ScanningQueryEngine.ResultColumns.ColumnInfo |
| Modifier and Type | Field and Description |
|---|---|
protected static String |
DEFAULT_SELECTOR_NAME |
protected static ScanningQueryEngine.ResultColumns |
EMPTY |
protected static List<Column> |
NO_COLUMNS |
protected static List<String> |
NO_TYPES |
| Constructor and Description |
|---|
ScanningQueryEngine.ResultColumns(List<Column> columns,
List<String> columnTypes,
boolean includeFullTextSearchScores,
QueryResults.Columns precedingColumns)
Create a new definition for the query results given the supplied columns.
|
| Modifier and Type | Method and Description |
|---|---|
protected static String |
columnNameFor(Column column,
List<String> columnNames,
Set<Column> columnsWithDuplicateNames,
Collection<String> selectorNames) |
boolean |
equals(Object obj) |
protected static Set<Column> |
findColumnsWithSameNames(List<Column> columns) |
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.
|
String |
getPropertyNameForColumnName(String columnName)
Get the name of the property that corresponds to the named column in each tuple.
|
int |
getSelectorIndex(String selectorName)
Get the index of the nodes for this selector in each of the
node sequence batches. |
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.
|
boolean |
hasFullTextSearchScores()
Determine whether these results include full-text search scores.
|
int |
hashCode() |
Iterator<Column> |
iterator() |
String |
toString() |
QueryResults.Columns |
with(QueryResults.Columns other)
Return a new Columns that is a superset combination of both this Columns and the supplied Columns.
|
protected static final String DEFAULT_SELECTOR_NAME
protected static final ScanningQueryEngine.ResultColumns EMPTY
public ScanningQueryEngine.ResultColumns(List<Column> columns, List<String> columnTypes, boolean includeFullTextSearchScores, QueryResults.Columns precedingColumns)
columns - the columns that define the results; should never be modified directlycolumnTypes - the names of the types for each column in columnsincludeFullTextSearchScores - true if the results should include full text search scores, or false otherwiseprecedingColumns - the columns for the preceding plan node and which contain correct selector indexes; may be nullprotected static Set<Column> findColumnsWithSameNames(List<Column> columns)
protected static String columnNameFor(Column column, List<String> columnNames, Set<Column> columnsWithDuplicateNames, Collection<String> selectorNames)
public List<? extends Column> getColumns()
QueryResults.ColumnsgetColumns in interface QueryResults.Columnspublic List<String> getColumnNames()
QueryResults.ColumnsgetColumnNames in interface QueryResults.Columnscolumns; never nullpublic List<String> getColumnTypes()
QueryResults.ColumnsgetColumnTypes in interface QueryResults.Columnscolumns; never nullpublic String getColumnTypeForProperty(String selectorName, String propertyName)
QueryResults.ColumnsgetColumnTypeForProperty in interface QueryResults.ColumnsselectorName - the selector namepropertyName - the name of the propertypublic int getSelectorIndex(String selectorName)
QueryResults.Columnsnode sequence batches.getSelectorIndex in interface QueryResults.ColumnsselectorName - the selector namepublic List<String> getSelectorNames()
QueryResults.ColumnsgetSelectorNames in interface QueryResults.Columnspublic String getPropertyNameForColumnName(String columnName)
QueryResults.ColumnsgetPropertyNameForColumnName in interface QueryResults.ColumnscolumnName - the column namepublic String getSelectorNameForColumnName(String columnName)
QueryResults.ColumnsgetSelectorNameForColumnName in interface QueryResults.ColumnscolumnName - the column namepublic boolean hasFullTextSearchScores()
QueryResults.ColumnshasFullTextSearchScores in interface QueryResults.Columnspublic QueryResults.Columns with(QueryResults.Columns other)
QueryResults.Columnswith in interface QueryResults.Columnsother - the other columns; may not be nullthis and other; never nullCopyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.