use of org.locationtech.geowave.core.geotime.index.dimension.SimpleTimeIndexStrategy in project geowave by locationtech.
the class TemporalDimensionalityTypeProvider method createIndexFromOptions.
public static Index createIndexFromOptions(final TemporalOptions options) {
if (!options.noTimeRanges) {
final NumericDimensionDefinition[] dimensions = TEMPORAL_DIMENSIONS;
final NumericDimensionField<?>[] fields = TEMPORAL_FIELDS;
dimensions[dimensions.length - 1] = new TimeDefinition(options.periodicity);
fields[dimensions.length - 1] = new TimeField(options.periodicity);
final BasicIndexModel indexModel = new BasicIndexModel(fields);
final String combinedArrayID = DEFAULT_TEMPORAL_ID_STR + "_" + options.periodicity;
return new CustomNameIndex(XZHierarchicalIndexFactory.createFullIncrementalTieredStrategy(dimensions, new int[] { 63 }, SFCType.HILBERT, options.maxDuplicates), indexModel, combinedArrayID);
}
final BasicIndexModel indexModel = new BasicIndexModel(new NumericDimensionField[] { new BasicNumericDimensionField<>(TimeField.DEFAULT_FIELD_ID, Long.class) });
return new CustomNameIndex(new SimpleTimeIndexStrategy(), indexModel, DEFAULT_TEMPORAL_ID_STR);
}
Aggregations