Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [geowave-dev] Secondary Indexing

Secondary indexing is not ready completed at this time.  What is it that you are trying to do?  A single time index does not benefit from a space filling curve (except for perhaps avoiding hot spotting).

If its a a single time attribute you are index, then a primary index will work.
Use one of the SimpleNumericStrategy's as an example and create time index strategy that returns a TimeDefinition for its single dimension definition.

    CommonIndexModel model = new BasicIndexModel(    new DimensionField[] {
            new TimeField(
                    Unit.MONTH)
        });
     Index index = new CustomIdIndex(new SimpleTimeIndexStrategy(), model, new ByteArrayId("mineidx")); 

     FeatureDataAdapter adapter = new FeatureDataAdapter(
                someFeatureType);
    dataStore.ingest(adapter, index, someTestFeature);
    dataStore.query(index, new TemporalQuery(new TemporalConstraints(new TemporalRange(before,new Date()),"when")));


On Thu, Nov 12, 2015 at 8:45 AM, Marcel Jacob <m.jacob@xxxxxxxxxxx> wrote:
Hello,
thanks for the last answer, that helped me out.
Now I´m thinking about using an additional index for my date. I found a
wiki page which describes secondary indexes, but not exactly how to use
them.
What need to be done for adding a secondary index? Could you give an
example or point to a class in github code?

Best regards,
Marcel Jacob.
_______________________________________________
geowave-dev mailing list
geowave-dev@xxxxxxxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.locationtech.org/mailman/listinfo/geowave-dev


Back to the top