|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.data.DiffFeatureReader<T,F>
public class DiffFeatureReader<T extends org.opengis.feature.type.FeatureType,F extends org.opengis.feature.Feature>
A FeatureReader that considers differences.
Used to implement In-Process Transaction support. This implementation will need to peek ahead in order to check for deletetions.
Constructor Summary | |
---|---|
DiffFeatureReader(FeatureReader<T,F> reader,
Diff diff2)
This constructor grabs a "copy" of the current diff. |
|
DiffFeatureReader(FeatureReader<T,F> reader,
Diff diff2,
org.opengis.filter.Filter filter)
This constructor grabs a "copy" of the current diff. |
Method Summary | |
---|---|
void |
close()
Release the underlying resources associated with this stream. |
protected com.vividsolutions.jts.geom.Envelope |
extractBboxForSpatialIndexQuery(org.opengis.filter.spatial.BinarySpatialOperator filter)
|
T |
getFeatureType()
Return the FeatureType this reader has been configured to create. |
protected java.util.List |
getIndexedFeatures()
|
boolean |
hasNext()
Query whether this FeatureReader has another Feature. |
protected boolean |
isDefaultGeometry(AttributeExpression ae)
|
protected boolean |
isSubsetOfBboxFilter(org.opengis.filter.Filter f)
|
F |
next()
Reads the next Feature in the FeatureReader. |
protected void |
queryAdded()
|
protected void |
queryDiff()
|
protected void |
queryFidFilter()
|
protected void |
queryModified()
|
protected void |
querySpatialIndex()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DiffFeatureReader(FeatureReader<T,F> reader, Diff diff2)
This reader is not "live" to changes over the course of the Transaction. (Iterators are not always stable of the course of modifications)
reader
- diff2
- Differences of Feature by FIDpublic DiffFeatureReader(FeatureReader<T,F> reader, Diff diff2, org.opengis.filter.Filter filter)
This reader is not "live" to changes over the course of the Transaction. (Iterators are not always stable of the course of modifications)
reader
- diff2
- Differences of Feature by FIDMethod Detail |
---|
public T getFeatureType()
FeatureReader
getFeatureType
in interface FeatureReader<T extends org.opengis.feature.type.FeatureType,F extends org.opengis.feature.Feature>
FeatureReader.getFeatureType()
public F next() throws java.io.IOException, IllegalAttributeException, java.util.NoSuchElementException
FeatureReader
next
in interface FeatureReader<T extends org.opengis.feature.type.FeatureType,F extends org.opengis.feature.Feature>
java.io.IOException
- If an error occurs reading the Feature.
IllegalAttributeException
- If the attributes read do not comply
with the FeatureType.
java.util.NoSuchElementException
- If there are no more Features in the
Reader.FeatureReader.next()
public boolean hasNext() throws java.io.IOException
FeatureReader
hasNext
in interface FeatureReader<T extends org.opengis.feature.type.FeatureType,F extends org.opengis.feature.Feature>
java.io.IOException
- If an error occurs determining if there are more
Features.FeatureReader.hasNext()
public void close() throws java.io.IOException
FeatureReader
close
in interface FeatureReader<T extends org.opengis.feature.type.FeatureType,F extends org.opengis.feature.Feature>
java.io.IOException
- DOCUMENT ME!FeatureReader.close()
protected void queryDiff()
protected void querySpatialIndex()
protected void queryAdded()
protected void queryModified()
protected void queryFidFilter()
protected java.util.List getIndexedFeatures()
protected com.vividsolutions.jts.geom.Envelope extractBboxForSpatialIndexQuery(org.opengis.filter.spatial.BinarySpatialOperator filter)
protected boolean isDefaultGeometry(AttributeExpression ae)
protected boolean isSubsetOfBboxFilter(org.opengis.filter.Filter f)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |