/** * Provides a wrapper on the provided reader which gives a diff writer. * * @param contentFeatureStore ContentFeatureStore * @param reader FeatureReader requiring diff support * @return FeatureWriter with diff support */ public FeatureWriter<SimpleFeatureType, SimpleFeature> diffWriter( ContentFeatureStore contentFeatureStore, FeatureReader<SimpleFeatureType, SimpleFeature> reader) { return new DiffContentFeatureWriter(contentFeatureStore, diff, reader); } }
DiffTransactionState state = (DiffTransactionState) getTransaction().getState(getEntry()); FeatureReader<SimpleFeatureType, SimpleFeature> reader = getReader(query); writer = new DiffContentFeatureWriter(this, state.getDiff(), reader); } else { writer = getWriterInternal(query, flags);