_collector = new CountingCollector<NullFieldData>(keyFieldData, tzRounding);
else
_collector = new CountingCollector(keyFieldData, valueFieldData, tzRounding);
else if(distinctFieldData == null)
if(valueFieldData == null)
_collector = new SlicedCollector(keyFieldData, sliceFieldData, tzRounding);
else
_collector = new SlicedCollector(keyFieldData, valueFieldData, sliceFieldData, tzRounding);
else if(sliceFieldData == null)
if(valueFieldData == null)
_collector = new DistinctCollector(keyFieldData, distinctFieldData, tzRounding, exactThreshold);
else
throw new FacetPhaseExecutionException("unknown date_facet", "Can't use distinct_field and value_field together");