Interface ProjectionSchema
- All Known Subinterfaces:
BaseTableProjectionSchema
- All Known Implementing Classes:
AggregateProjectionSchema,RollupTableProjectionSchema,TableProjectionSchema
public interface ProjectionSchema
Internal JSON representation of the contents of a projection for a segment
ProjectionMetadata to embed within
segment files. The word 'schema' is used very loosely here, as the contents of this object are not complete, and
must be combined with additional metadata from the segment for most uses. While this object will contain things like
the list of column names and how they are ordered, type information is not available, and in practice comes from the
ColumnDescriptor declarations which define how to read the column data.
For V10 segment format SegmentFileMetadata-
Method Summary
Modifier and TypeMethodDescriptionIfgetTimeColumnName()references a column ingetVirtualColumns()which is a time_floor expression, this method translates it into aGranularity.getName()Projection sort orderProjection sort order withgetTimeColumnName()substituted withColumnHolder.TIME_COLUMN_NAMEintThe position of the time column in the column list
-
Method Details
-
getName
String getName() -
getColumnNames
-
getVirtualColumns
VirtualColumns getVirtualColumns() -
getTimeColumnName
-
getTimeColumnPosition
int getTimeColumnPosition()The position of the time column in the column list -
getEffectiveGranularity
Granularity getEffectiveGranularity()IfgetTimeColumnName()references a column ingetVirtualColumns()which is a time_floor expression, this method translates it into aGranularity. -
getOrdering
Projection sort order -
getOrderingWithTimeColumnSubstitution
Projection sort order withgetTimeColumnName()substituted withColumnHolder.TIME_COLUMN_NAME
-