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 |
---|
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.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
protected static final String DEFAULT_SELECTOR_NAME
protected static final ScanningQueryEngine.ResultColumns EMPTY
public 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 columns
includeFullTextSearchScores
- 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.Columns
getColumns
in interface QueryResults.Columns
public List<String> getColumnNames()
QueryResults.Columns
getColumnNames
in interface QueryResults.Columns
columns
; never nullpublic List<String> getColumnTypes()
QueryResults.Columns
getColumnTypes
in interface QueryResults.Columns
columns
; never nullpublic String getColumnTypeForProperty(String selectorName, String propertyName)
QueryResults.Columns
getColumnTypeForProperty
in interface QueryResults.Columns
selectorName
- the selector namepropertyName
- the name of the propertypublic int getSelectorIndex(String selectorName)
QueryResults.Columns
node sequence batches
.getSelectorIndex
in interface QueryResults.Columns
selectorName
- the selector namepublic List<String> getSelectorNames()
QueryResults.Columns
getSelectorNames
in interface QueryResults.Columns
public String getPropertyNameForColumnName(String columnName)
QueryResults.Columns
getPropertyNameForColumnName
in interface QueryResults.Columns
columnName
- the column namepublic String getSelectorNameForColumnName(String columnName)
QueryResults.Columns
getSelectorNameForColumnName
in interface QueryResults.Columns
columnName
- the column namepublic boolean hasFullTextSearchScores()
QueryResults.Columns
hasFullTextSearchScores
in interface QueryResults.Columns
public QueryResults.Columns with(QueryResults.Columns other)
QueryResults.Columns
with
in interface QueryResults.Columns
other
- the other columns; may not be nullthis
and other
; never nullCopyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.