Package org.apache.calcite.adapter.druid
Interface Granularity
-
- All Superinterfaces:
DruidJson
- All Known Implementing Classes:
Granularities.AllGranularity
,Granularities.PeriodGranularity
public interface Granularity extends DruidJson
A strategy by which Druid rolls up rows into sub-totals based on their timestamp values.Typical granularities are based upon time units (e.g. 1 day or 15 minutes). A special granularity, all, combines all rows into a single total.
A Granularity instance is immutable, and generates a JSON string as part of a Druid query.
- See Also:
Granularities
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Granularity.Type
Type of supported periods for granularity.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Granularity.Type
getType()
-
-
-
Method Detail
-
getType
@Nonnull Granularity.Type getType()
-
-