Class AbstractGeoIndex<A extends org.locationtech.jts.geom.Geometry,​O extends org.geotools.api.feature.simple.SimpleFeature>

  • All Implemented Interfaces:
    com.googlecode.cqengine.engine.ModificationListener<O>, com.googlecode.cqengine.index.AttributeIndex<A,​O>, com.googlecode.cqengine.index.Index<O>, com.googlecode.cqengine.index.support.indextype.OnHeapTypeIndex
    Direct Known Subclasses:
    BucketGeoIndex, QuadTreeGeoIndex, STRtreeGeoIndex

    public abstract class AbstractGeoIndex<A extends org.locationtech.jts.geom.Geometry,​O extends org.geotools.api.feature.simple.SimpleFeature>
    extends com.googlecode.cqengine.index.support.AbstractAttributeIndex<A,​O>
    implements com.googlecode.cqengine.index.support.indextype.OnHeapTypeIndex
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static ThreadLocal<org.locationtech.geomesa.utils.index.SpatialIndex<? extends org.geotools.api.feature.simple.SimpleFeature>> lastUsed  
      • Fields inherited from class com.googlecode.cqengine.index.support.AbstractAttributeIndex

        attribute
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean addAll​(com.googlecode.cqengine.persistence.support.ObjectSet<O> objectSet, com.googlecode.cqengine.query.option.QueryOptions queryOptions)  
      void clear​(com.googlecode.cqengine.query.option.QueryOptions queryOptions)  
      void destroy​(com.googlecode.cqengine.query.option.QueryOptions queryOptions)  
      com.googlecode.cqengine.index.Index<O> getEffectiveIndex()  
      void init​(com.googlecode.cqengine.persistence.support.ObjectStore<O> objectStore, com.googlecode.cqengine.query.option.QueryOptions queryOptions)  
      boolean isMutable()  
      boolean isQuantized()  
      boolean removeAll​(com.googlecode.cqengine.persistence.support.ObjectSet<O> objectSet, com.googlecode.cqengine.query.option.QueryOptions queryOptions)  
      com.googlecode.cqengine.resultset.ResultSet<O> retrieve​(com.googlecode.cqengine.query.Query<O> query, com.googlecode.cqengine.query.option.QueryOptions queryOptions)  
      • Methods inherited from class com.googlecode.cqengine.index.support.AbstractAttributeIndex

        equals, getAttribute, hashCode, supportsQuery
    • Field Detail

      • lastUsed

        public static final ThreadLocal<org.locationtech.geomesa.utils.index.SpatialIndex<? extends org.geotools.api.feature.simple.SimpleFeature>> lastUsed
    • Method Detail

      • init

        public void init​(com.googlecode.cqengine.persistence.support.ObjectStore<O> objectStore,
                         com.googlecode.cqengine.query.option.QueryOptions queryOptions)
        Specified by:
        init in interface com.googlecode.cqengine.engine.ModificationListener<A extends org.locationtech.jts.geom.Geometry>
      • addAll

        public boolean addAll​(com.googlecode.cqengine.persistence.support.ObjectSet<O> objectSet,
                              com.googlecode.cqengine.query.option.QueryOptions queryOptions)
        Specified by:
        addAll in interface com.googlecode.cqengine.engine.ModificationListener<A extends org.locationtech.jts.geom.Geometry>
      • removeAll

        public boolean removeAll​(com.googlecode.cqengine.persistence.support.ObjectSet<O> objectSet,
                                 com.googlecode.cqengine.query.option.QueryOptions queryOptions)
        Specified by:
        removeAll in interface com.googlecode.cqengine.engine.ModificationListener<A extends org.locationtech.jts.geom.Geometry>
      • clear

        public void clear​(com.googlecode.cqengine.query.option.QueryOptions queryOptions)
        Specified by:
        clear in interface com.googlecode.cqengine.engine.ModificationListener<A extends org.locationtech.jts.geom.Geometry>
      • destroy

        public void destroy​(com.googlecode.cqengine.query.option.QueryOptions queryOptions)
        Specified by:
        destroy in interface com.googlecode.cqengine.engine.ModificationListener<A extends org.locationtech.jts.geom.Geometry>
      • retrieve

        public com.googlecode.cqengine.resultset.ResultSet<O> retrieve​(com.googlecode.cqengine.query.Query<O> query,
                                                                       com.googlecode.cqengine.query.option.QueryOptions queryOptions)
        Specified by:
        retrieve in interface com.googlecode.cqengine.index.Index<A extends org.locationtech.jts.geom.Geometry>
      • isMutable

        public boolean isMutable()
        Specified by:
        isMutable in interface com.googlecode.cqengine.index.Index<A extends org.locationtech.jts.geom.Geometry>
      • isQuantized

        public boolean isQuantized()
        Specified by:
        isQuantized in interface com.googlecode.cqengine.index.Index<A extends org.locationtech.jts.geom.Geometry>
      • getEffectiveIndex

        public com.googlecode.cqengine.index.Index<O> getEffectiveIndex()
        Specified by:
        getEffectiveIndex in interface com.googlecode.cqengine.index.Index<A extends org.locationtech.jts.geom.Geometry>