org.gvsig.fmap.dal.index.spatial.jts
Class JTSQuadtree

java.lang.Object
  extended by org.gvsig.fmap.dal.feature.spi.index.AbstractFeatureIndexProvider
      extended by org.gvsig.fmap.dal.index.spatial.jts.JTSQuadtree
All Implemented Interfaces:
org.gvsig.fmap.dal.feature.spi.index.FeatureIndexProvider

public class JTSQuadtree
extends org.gvsig.fmap.dal.feature.spi.index.AbstractFeatureIndexProvider
implements org.gvsig.fmap.dal.feature.spi.index.FeatureIndexProvider

Adapter for ISPatialIndex gvSIG's interface to JTS Quadtree.

Author:
azabala

Nested Class Summary
 
Nested classes/interfaces inherited from class org.gvsig.fmap.dal.feature.spi.index.AbstractFeatureIndexProvider
org.gvsig.fmap.dal.feature.spi.index.AbstractFeatureIndexProvider.LongList
 
Field Summary
static String NAME
           
 
Constructor Summary
JTSQuadtree()
           
 
Method Summary
 void clear()
           
 void delete(Object o, org.gvsig.fmap.dal.feature.spi.FeatureReferenceProviderServices fref)
           
 void initialize()
           
 void insert(Object o, org.gvsig.fmap.dal.feature.spi.FeatureReferenceProviderServices fref)
           
 boolean isMatchSupported()
           
 boolean isNearestSupported()
           
 boolean isNearestToleranceSupported()
           
 boolean isRangeSupported()
           
 List match(Object value)
           
 List match(Object min, Object max)
           
 List nearest(int count, Object value)
           
 List nearest(int count, Object value, Object tolerance)
           
 List range(Object value1, Object value2)
           
 
Methods inherited from class org.gvsig.fmap.dal.feature.spi.index.AbstractFeatureIndexProvider
allowNulls, getFeatureIndexProviderServices, setFeatureIndexProviderServices
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.gvsig.fmap.dal.feature.spi.index.FeatureIndexProvider
allowNulls, setFeatureIndexProviderServices
 

Field Detail

NAME

public static final String NAME
Constructor Detail

JTSQuadtree

public JTSQuadtree()
Method Detail

initialize

public void initialize()
Specified by:
initialize in interface org.gvsig.fmap.dal.feature.spi.index.FeatureIndexProvider
Overrides:
initialize in class org.gvsig.fmap.dal.feature.spi.index.AbstractFeatureIndexProvider

delete

public void delete(Object o,
                   org.gvsig.fmap.dal.feature.spi.FeatureReferenceProviderServices fref)
Specified by:
delete in interface org.gvsig.fmap.dal.feature.spi.index.FeatureIndexProvider

insert

public void insert(Object o,
                   org.gvsig.fmap.dal.feature.spi.FeatureReferenceProviderServices fref)
Specified by:
insert in interface org.gvsig.fmap.dal.feature.spi.index.FeatureIndexProvider

match

public List match(Object value)
           throws org.gvsig.fmap.dal.feature.exception.FeatureIndexException
Specified by:
match in interface org.gvsig.fmap.dal.feature.spi.index.FeatureIndexProvider
Throws:
org.gvsig.fmap.dal.feature.exception.FeatureIndexException

match

public List match(Object min,
                  Object max)

nearest

public List nearest(int count,
                    Object value)
             throws org.gvsig.fmap.dal.feature.exception.FeatureIndexException
Specified by:
nearest in interface org.gvsig.fmap.dal.feature.spi.index.FeatureIndexProvider
Throws:
org.gvsig.fmap.dal.feature.exception.FeatureIndexException

isMatchSupported

public boolean isMatchSupported()
Specified by:
isMatchSupported in interface org.gvsig.fmap.dal.feature.spi.index.FeatureIndexProvider

isNearestSupported

public boolean isNearestSupported()
Specified by:
isNearestSupported in interface org.gvsig.fmap.dal.feature.spi.index.FeatureIndexProvider

isNearestToleranceSupported

public boolean isNearestToleranceSupported()
Specified by:
isNearestToleranceSupported in interface org.gvsig.fmap.dal.feature.spi.index.FeatureIndexProvider

isRangeSupported

public boolean isRangeSupported()
Specified by:
isRangeSupported in interface org.gvsig.fmap.dal.feature.spi.index.FeatureIndexProvider

nearest

public List nearest(int count,
                    Object value,
                    Object tolerance)
             throws org.gvsig.fmap.dal.feature.exception.FeatureIndexException
Specified by:
nearest in interface org.gvsig.fmap.dal.feature.spi.index.FeatureIndexProvider
Throws:
org.gvsig.fmap.dal.feature.exception.FeatureIndexException

range

public List range(Object value1,
                  Object value2)
           throws org.gvsig.fmap.dal.feature.exception.FeatureIndexException
Specified by:
range in interface org.gvsig.fmap.dal.feature.spi.index.FeatureIndexProvider
Throws:
org.gvsig.fmap.dal.feature.exception.FeatureIndexException

clear

public void clear()
           throws org.gvsig.fmap.dal.exception.DataException
Specified by:
clear in interface org.gvsig.fmap.dal.feature.spi.index.FeatureIndexProvider
Throws:
org.gvsig.fmap.dal.exception.DataException


Copyright © 2004-2013 gvSIG. All Rights Reserved.