ContentDataStore getFeatureReaderAppend needs to skip to the end

Description

A short term fix is simple:

typeName, Transaction tx)
IOException {

ContentFeatureStore featureStore = ensureFeatureStore(typeName,tx);
FeatureWriter<SimpleFeatureType, SimpleFeature> writer = featureStore.getWriter( Filter.INCLUDE , WRITER_ADD );

mode
( writer.hasNext() ){
writer.next();
}
writer;
}

It would be preferable to:
1. Add an extra flag for WRITER_ADD | WRITER_APPEND
2. Make a featureSource.canAppend() method which returns false
3. Fix it properly
a) In getFeatureReader we can check for canAppend and the flag and skip to the end
b) Allow PropertyDataStoreFeatureReader to respect to flag by skipping to the end during the constructor. This would be a speed gain as it could blindly copy the lines with no need to parse stuff into features

Environment

None

Assignee

Unassigned

Reporter

codehaus

Triage

None

Components

Affects versions

Priority

Low
Configure