Class IndexFeatureSet

java.lang.Object
org.gvsig.tools.visitor.impl.AbstractVisitable
org.gvsig.tools.visitor.impl.AbstractIndexedVisitable
org.gvsig.fmap.dal.feature.impl.featureset.AbstractFeatureSet
org.gvsig.fmap.dal.feature.impl.IndexFeatureSet
All Implemented Interfaces:
Iterable<org.gvsig.fmap.dal.feature.Feature>, org.gvsig.fmap.dal.DataSet, org.gvsig.fmap.dal.feature.FeatureSet, org.gvsig.fmap.dal.feature.spi.FeatureSetProvider, org.gvsig.tools.dispose.Disposable, org.gvsig.tools.util.IsEmpty, org.gvsig.tools.util.Size, org.gvsig.tools.util.Size64, org.gvsig.tools.visitor.IndexedVisitable, org.gvsig.tools.visitor.Visitable

public class IndexFeatureSet extends AbstractFeatureSet implements org.gvsig.fmap.dal.feature.FeatureSet, org.gvsig.fmap.dal.feature.spi.FeatureSetProvider, Iterable<org.gvsig.fmap.dal.feature.Feature>
  • Constructor Details

    • IndexFeatureSet

      public IndexFeatureSet(org.gvsig.fmap.dal.feature.spi.index.FeatureIndexProviderServices index, org.gvsig.fmap.dal.feature.spi.LongList featureReferences)
  • Method Details

    • canFilter

      public boolean canFilter()
      Specified by:
      canFilter in interface org.gvsig.fmap.dal.feature.spi.FeatureSetProvider
    • canIterateFromIndex

      public boolean canIterateFromIndex()
      Specified by:
      canIterateFromIndex in interface org.gvsig.fmap.dal.feature.spi.FeatureSetProvider
    • canOrder

      public boolean canOrder()
      Specified by:
      canOrder in interface org.gvsig.fmap.dal.feature.spi.FeatureSetProvider
    • fastIterator

      public org.gvsig.tools.dispose.DisposableIterator fastIterator(long index) throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      fastIterator in interface org.gvsig.fmap.dal.feature.FeatureSet
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • fastIterator

      public org.gvsig.tools.dispose.DisposableIterator fastIterator(long index, long elements) throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      fastIterator in interface org.gvsig.fmap.dal.feature.FeatureSet
      Specified by:
      fastIterator in interface org.gvsig.fmap.dal.feature.spi.FeatureSetProvider
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • getSize

      public long getSize() throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      getSize in interface org.gvsig.fmap.dal.feature.FeatureSet
      Specified by:
      getSize in interface org.gvsig.fmap.dal.feature.spi.FeatureSetProvider
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface org.gvsig.fmap.dal.feature.spi.FeatureSetProvider
      Specified by:
      isEmpty in interface org.gvsig.tools.util.IsEmpty
      Overrides:
      isEmpty in class AbstractFeatureSet
    • iterator

      public org.gvsig.tools.dispose.DisposableIterator iterator(long index) throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      iterator in interface org.gvsig.fmap.dal.feature.FeatureSet
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • iterator

      public org.gvsig.tools.dispose.DisposableIterator iterator(long index, long elements) throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      iterator in interface org.gvsig.fmap.dal.feature.FeatureSet
      Specified by:
      iterator in interface org.gvsig.fmap.dal.feature.spi.FeatureSetProvider
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • delete

      public void delete(org.gvsig.fmap.dal.feature.Feature feature) throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      delete in interface org.gvsig.fmap.dal.feature.FeatureSet
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • commitChanges

      public void commitChanges() throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      commitChanges in interface org.gvsig.fmap.dal.feature.FeatureSet
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • getDefaultFeatureType

      public org.gvsig.fmap.dal.feature.FeatureType getDefaultFeatureType()
      Specified by:
      getDefaultFeatureType in interface org.gvsig.fmap.dal.feature.FeatureSet
    • getFeatureTypes

      public List getFeatureTypes()
      Specified by:
      getFeatureTypes in interface org.gvsig.fmap.dal.feature.FeatureSet
    • insert

      public void insert(org.gvsig.fmap.dal.feature.EditableFeature feature) throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      insert in interface org.gvsig.fmap.dal.feature.FeatureSet
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • update

      public void update(org.gvsig.fmap.dal.feature.EditableFeature feature) throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      update in interface org.gvsig.fmap.dal.feature.FeatureSet
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • dispose

      public void dispose()
      Specified by:
      dispose in interface org.gvsig.tools.dispose.Disposable
    • getFeatureStore

      public org.gvsig.fmap.dal.feature.FeatureStore getFeatureStore()
      Specified by:
      getFeatureStore in interface org.gvsig.fmap.dal.feature.FeatureSet
      Specified by:
      getFeatureStore in class AbstractFeatureSet