Package org.gvsig.fmap.dal.feature.impl
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>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassclass -
Field Summary
Fields inherited from class org.gvsig.fmap.dal.feature.impl.featureset.AbstractFeatureSet
LOGFields inherited from interface org.gvsig.fmap.dal.feature.FeatureSet
EMPTY_FEATURESET -
Constructor Summary
ConstructorsConstructorDescriptionIndexFeatureSet(org.gvsig.fmap.dal.feature.spi.index.FeatureIndexProviderServices index, org.gvsig.fmap.dal.feature.spi.LongList featureReferences) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleancanOrder()voidvoiddelete(org.gvsig.fmap.dal.feature.Feature feature) voiddispose()org.gvsig.tools.dispose.DisposableIteratorfastIterator(long index) org.gvsig.tools.dispose.DisposableIteratorfastIterator(long index, long elements) org.gvsig.fmap.dal.feature.FeatureTypeorg.gvsig.fmap.dal.feature.FeatureStorelonggetSize()voidinsert(org.gvsig.fmap.dal.feature.EditableFeature feature) booleanisEmpty()org.gvsig.tools.dispose.DisposableIteratoriterator(long index) org.gvsig.tools.dispose.DisposableIteratoriterator(long index, long elements) voidupdate(org.gvsig.fmap.dal.feature.EditableFeature feature) Methods inherited from class org.gvsig.fmap.dal.feature.impl.featureset.AbstractFeatureSet
accept, doAccept, doAccept, fastIterator, first, getDynObjectSet, getDynObjectSet, isFromStore, iterable, iterable, iterator, makeFilter, size, size64, toJson, toJSON, toJsonBuilderMethods inherited from class org.gvsig.tools.visitor.impl.AbstractIndexedVisitable
accept, doAcceptMethods inherited from class org.gvsig.tools.visitor.impl.AbstractVisitable
acceptMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gvsig.fmap.dal.DataSet
accept, isFromStoreMethods inherited from interface org.gvsig.fmap.dal.feature.FeatureSet
accept, accept, fastIterator, first, getDynObjectSet, getDynObjectSet, iterable, iterable, iterator, makeFilter, toJson, toJSON, toJsonBuilderMethods inherited from interface org.gvsig.fmap.dal.feature.spi.FeatureSetProvider
fastIterator, iteratorMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.gvsig.tools.util.Size
sizeMethods inherited from interface org.gvsig.tools.util.Size64
size64
-
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:
canFilterin interfaceorg.gvsig.fmap.dal.feature.spi.FeatureSetProvider
-
canIterateFromIndex
public boolean canIterateFromIndex()- Specified by:
canIterateFromIndexin interfaceorg.gvsig.fmap.dal.feature.spi.FeatureSetProvider
-
canOrder
public boolean canOrder()- Specified by:
canOrderin interfaceorg.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:
fastIteratorin interfaceorg.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:
fastIteratorin interfaceorg.gvsig.fmap.dal.feature.FeatureSet- Specified by:
fastIteratorin interfaceorg.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:
getSizein interfaceorg.gvsig.fmap.dal.feature.FeatureSet- Specified by:
getSizein interfaceorg.gvsig.fmap.dal.feature.spi.FeatureSetProvider- Throws:
org.gvsig.fmap.dal.exception.DataException
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceorg.gvsig.fmap.dal.feature.spi.FeatureSetProvider- Specified by:
isEmptyin interfaceorg.gvsig.tools.util.IsEmpty- Overrides:
isEmptyin classAbstractFeatureSet
-
iterator
public org.gvsig.tools.dispose.DisposableIterator iterator(long index) throws org.gvsig.fmap.dal.exception.DataException - Specified by:
iteratorin interfaceorg.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:
iteratorin interfaceorg.gvsig.fmap.dal.feature.FeatureSet- Specified by:
iteratorin interfaceorg.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:
deletein interfaceorg.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:
commitChangesin interfaceorg.gvsig.fmap.dal.feature.FeatureSet- Throws:
org.gvsig.fmap.dal.exception.DataException
-
getDefaultFeatureType
public org.gvsig.fmap.dal.feature.FeatureType getDefaultFeatureType()- Specified by:
getDefaultFeatureTypein interfaceorg.gvsig.fmap.dal.feature.FeatureSet
-
getFeatureTypes
- Specified by:
getFeatureTypesin interfaceorg.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:
insertin interfaceorg.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:
updatein interfaceorg.gvsig.fmap.dal.feature.FeatureSet- Throws:
org.gvsig.fmap.dal.exception.DataException
-
dispose
public void dispose()- Specified by:
disposein interfaceorg.gvsig.tools.dispose.Disposable
-
getFeatureStore
public org.gvsig.fmap.dal.feature.FeatureStore getFeatureStore()- Specified by:
getFeatureStorein interfaceorg.gvsig.fmap.dal.feature.FeatureSet- Specified by:
getFeatureStorein classAbstractFeatureSet
-