Class TableProjectionSchema
java.lang.Object
org.apache.druid.segment.projections.TableProjectionSchema
- All Implemented Interfaces:
BaseTableProjectionSchema,ProjectionSchema
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTableProjectionSchema(VirtualColumns virtualColumns, List<String> columns, AggregatorFactory[] aggregators, List<OrderBy> ordering) -
Method Summary
Modifier and TypeMethodDescriptionasMetadata(List<AggregateProjectionMetadata> projections) Convert to v9Metadatawhen supplied with an added list of projectionsbooleanstatic TableProjectionSchemafromMetadata(List<String> dims, Metadata metadata) Get list of 'dimension' columns, excludingColumnHolder.TIME_COLUMN_NAMEIfProjectionSchema.getTimeColumnName()references a column inProjectionSchema.getVirtualColumns()which is a time_floor expression, this method translates it into aGranularity.Projection sort orderintThe position of the time column in the column listinthashCode()toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.druid.segment.projections.BaseTableProjectionSchema
getName, getOrderingWithTimeColumnSubstitution, getTimeColumnName
-
Field Details
-
TYPE_NAME
- See Also:
-
-
Constructor Details
-
TableProjectionSchema
public TableProjectionSchema(VirtualColumns virtualColumns, List<String> columns, @Nullable AggregatorFactory[] aggregators, List<OrderBy> ordering)
-
-
Method Details
-
fromMetadata
-
getColumnNames
- Specified by:
getColumnNamesin interfaceProjectionSchema
-
getVirtualColumns
- Specified by:
getVirtualColumnsin interfaceProjectionSchema
-
getColumns
-
getAggregators
-
getTimeColumnPosition
public int getTimeColumnPosition()Description copied from interface:ProjectionSchemaThe position of the time column in the column list- Specified by:
getTimeColumnPositionin interfaceProjectionSchema
-
getEffectiveGranularity
Description copied from interface:ProjectionSchemaIfProjectionSchema.getTimeColumnName()references a column inProjectionSchema.getVirtualColumns()which is a time_floor expression, this method translates it into aGranularity.- Specified by:
getEffectiveGranularityin interfaceProjectionSchema
-
getOrdering
Description copied from interface:ProjectionSchemaProjection sort order- Specified by:
getOrderingin interfaceProjectionSchema
-
getDimensionNames
Description copied from interface:BaseTableProjectionSchemaGet list of 'dimension' columns, excludingColumnHolder.TIME_COLUMN_NAME- Specified by:
getDimensionNamesin interfaceBaseTableProjectionSchema
-
asMetadata
Description copied from interface:BaseTableProjectionSchemaConvert to v9Metadatawhen supplied with an added list of projections- Specified by:
asMetadatain interfaceBaseTableProjectionSchema
-
equals
-
hashCode
public int hashCode() -
toString
-