E
- The entry type (such as SimpleFeature, GridCoverage, or whatever type the adapter
uses)C
- The custom constraints type, can be any arbitrary type, although should be persistable
so that it can work outside of just client code (such as server-side filtering,
map-reduce, or spark)public interface CustomIndexStrategy<E,C extends Persistable> extends Persistable
Modifier and Type | Interface and Description |
---|---|
static interface |
CustomIndexStrategy.PersistableBiPredicate<E,C extends Persistable> |
Modifier and Type | Method and Description |
---|---|
Class<C> |
getConstraintsClass() |
default CustomIndexStrategy.PersistableBiPredicate<E,C> |
getFilter(C constraints)
Optionally a custom index strategy can enable additional filtering beyond just the query ranges
(termed "fine-grained" filtering in documentation).
|
InsertionIds |
getInsertionIds(E entry)
This is the function that is called on ingest to tell GeoWave how to index the entry within
this custom index - the insertion IDs are a set of partition and sort keys, either of which
could be empty or null as needed (with the understanding that each partition key represents a
unique partition in the backend datastore)
|
QueryRanges |
getQueryRanges(C constraints)
This is the function that is called on query, when given a query with the constraints type.
|
fromBinary, toBinary
InsertionIds getInsertionIds(E entry)
entry
- the entry to be indexed on ingestQueryRanges getQueryRanges(C constraints)
constraints
- the query constraintsdefault CustomIndexStrategy.PersistableBiPredicate<E,C> getFilter(C constraints)
Copyright © 2013–2022. All rights reserved.