Class SelectionColumnMapping
java.lang.Object
org.apache.cassandra.cql3.selection.SelectionColumnMapping
- All Implemented Interfaces:
SelectionColumns
Separately maintains the ColumnSpecifications and their mappings to underlying
columns as we may receive null mappings. This occurs where a query result
includes a column specification which does not map to any particular real
column, e.g. COUNT queries or where no-arg functions like now() are used
-
Method Summary
Modifier and TypeMethodDescriptionprotected SelectionColumnMappingaddMapping(ColumnSpecification colSpec, Iterable<ColumnMetadata> columns) protected SelectionColumnMappingaddMapping(ColumnSpecification colSpec, ColumnMetadata column) booleancom.google.common.collect.Multimap<ColumnSpecification,ColumnMetadata> inthashCode()protected static SelectionColumnMappingprotected static SelectionColumnMappingsimpleMapping(Iterable<ColumnMetadata> columnDefinitions) toString()
-
Method Details
-
newMapping
-
simpleMapping
-
addMapping
-
addMapping
protected SelectionColumnMapping addMapping(ColumnSpecification colSpec, Iterable<ColumnMetadata> columns) -
getColumnSpecifications
- Specified by:
getColumnSpecificationsin interfaceSelectionColumns
-
getMappings
- Specified by:
getMappingsin interfaceSelectionColumns
-
equals
-
hashCode
public int hashCode() -
toString
-