public class DiffFeatureReader<T extends FeatureType,F extends Feature> extends Object implements FeatureReader<T,F>
Used to implement In-Process Transaction support. This implementation will need to peek ahead in order to check for deletetions.
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Release the underlying resources associated with this stream.
|
protected Envelope |
extractBboxForSpatialIndexQuery(BinarySpatialOperator filter) |
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(PropertyName 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() |
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 FIDpublic 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 Closeable
close
in interface AutoCloseable
close
in interface FeatureReader<T extends FeatureType,F extends Feature>
IOException
- if an I/O error occursFeatureReader.close()
protected void queryDiff()
protected void querySpatialIndex()
protected void queryAdded()
protected void queryModified()
protected void queryFidFilter()
protected List getIndexedFeatures()
protected Envelope extractBboxForSpatialIndexQuery(BinarySpatialOperator filter)
protected boolean isDefaultGeometry(PropertyName ae)
protected boolean isSubsetOfBboxFilter(Filter f)
Copyright © 1996–2019 Geotools. All rights reserved.