Class MemoryFeatureSet

java.lang.Object
org.gvsig.tools.dispose.impl.AbstractDisposable
org.gvsig.fmap.dal.feature.spi.AbstractFeatureSetProvider
org.gvsig.fmap.dal.feature.spi.memory.MemoryFeatureSet
All Implemented Interfaces:
FeatureSetProvider, org.gvsig.tools.dispose.Disposable

public class MemoryFeatureSet extends AbstractFeatureSetProvider
  • Field Details

    • data

      protected List data
  • Constructor Details

    • MemoryFeatureSet

      public MemoryFeatureSet(AbstractFeatureStoreProvider store, org.gvsig.fmap.dal.feature.FeatureQuery query, org.gvsig.fmap.dal.feature.FeatureType featureType, List data)
  • Method Details

    • canFilter

      public boolean canFilter()
    • canOrder

      public boolean canOrder()
    • canIterateFromIndex

      public boolean canIterateFromIndex()
    • getSize

      public long getSize() throws org.gvsig.fmap.dal.exception.DataException
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • isEmpty

      public boolean isEmpty() throws org.gvsig.fmap.dal.exception.DataException
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • doDispose

      protected void doDispose() throws org.gvsig.tools.exception.BaseException
      Specified by:
      doDispose in class org.gvsig.tools.dispose.impl.AbstractDisposable
      Throws:
      org.gvsig.tools.exception.BaseException
    • createFastIterator

      protected AbstractFeatureProviderIterator createFastIterator(long index) throws org.gvsig.fmap.dal.exception.DataException
      Description copied from class: AbstractFeatureSetProvider
      Creates a new fast Iterator, begginning at the specified data index. By fast this means the object instances of data ( FeatureProvider) may be reused between the Iterator.next() method invocations.
      Specified by:
      createFastIterator in class AbstractFeatureSetProvider
      Parameters:
      index - the first element position to be returned by the Iterator
      Returns:
      a new Iterator
      Throws:
      org.gvsig.fmap.dal.exception.DataException - if there is an error creating the Iterator
    • createIterator

      protected AbstractFeatureProviderIterator createIterator(long index) throws org.gvsig.fmap.dal.exception.DataException
      Description copied from class: AbstractFeatureSetProvider
      Creates a new Iterator, begginning at the specified data index.
      Specified by:
      createIterator in class AbstractFeatureSetProvider
      Parameters:
      index - the first element position to be returned by the Iterator
      Returns:
      a new Iterator
      Throws:
      org.gvsig.fmap.dal.exception.DataException - if there is an error creating the Iterator