|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectDiffFeatureReader<T,F>
public class DiffFeatureReader<T extends FeatureType,F extends 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,
Filter filter)
This constructor grabs a "copy" of the current diff. |
Method Summary | |
---|---|
void |
close()
Release the underlying resources associated with this stream. |
protected Envelope |
extractBboxForSpatialIndexQuery(GeometryFilter f)
|
T |
getFeatureType()
Return the FeatureType this reader has been configured to create. |
protected List |
getIndexedFeatures()
|
boolean |
hasNext()
Query whether this FeatureReader has another Feature. |
protected boolean |
isDefaultGeometry(AttributeExpression ae)
|
protected boolean |
isSubsetOfBboxFilter(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 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, 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 FeatureType,F extends Feature>
FeatureReader.getFeatureType()
public F next() throws IOException, IllegalAttributeException, NoSuchElementException
FeatureReader
next
in interface FeatureReader<T extends FeatureType,F extends Feature>
IOException
- If an error occurs reading the Feature.
IllegalAttributeException
- If the attributes read do not comply
with the FeatureType.
NoSuchElementException
- If there are no more Features in the
Reader.FeatureReader.next()
public boolean hasNext() throws IOException
FeatureReader
hasNext
in interface FeatureReader<T extends FeatureType,F extends Feature>
IOException
- If an error occurs determining if there are more
Features.FeatureReader.hasNext()
public void close() throws IOException
FeatureReader
close
in interface FeatureReader<T extends FeatureType,F extends Feature>
IOException
- DOCUMENT ME!FeatureReader.close()
protected void queryDiff()
protected void querySpatialIndex()
protected void queryAdded()
protected void queryModified()
protected void queryFidFilter()
protected List getIndexedFeatures()
protected Envelope extractBboxForSpatialIndexQuery(GeometryFilter f)
protected boolean isDefaultGeometry(AttributeExpression ae)
protected boolean isSubsetOfBboxFilter(Filter f)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |