Package org.apache.calcite.adapter.druid
Class Granularities
java.lang.Object
org.apache.calcite.adapter.druid.Granularities
Factory methods and helpers for
Granularity
.-
Method Summary
Modifier and TypeMethodDescriptionstatic Granularity
all()
Returns a Granularity that causes all rows to be rolled up into one.static Granularity
createGranularity
(org.apache.calcite.avatica.util.TimeUnitRange timeUnit, String timeZone) Creates a Granularity based on a time unit.
-
Method Details
-
all
Returns a Granularity that causes all rows to be rolled up into one. -
createGranularity
public static Granularity createGranularity(org.apache.calcite.avatica.util.TimeUnitRange timeUnit, String timeZone) Creates a Granularity based on a time unit.When used in a query, Druid will rollup and round time values based on specified period and timezone.
-