public class GeoWaveTransactionManagement extends AbstractTransactionManagement implements GeoWaveTransaction
This is used to simulate the functionality of a database including transaction independence.
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
LOGGER |
components
Constructor and Description |
---|
GeoWaveTransactionManagement(int maxAdditionBufferSize,
GeoWaveDataStoreComponents components,
String typeName,
org.geotools.data.Transaction transaction,
LockingManagement lockingManager,
String txID)
Create an empty Diff
|
Modifier and Type | Method and Description |
---|---|
void |
add(String fid,
org.opengis.feature.simple.SimpleFeature feature) |
void |
clear()
Clear diff - called during rollback.
|
void |
commit() |
String[] |
composeAuthorizations() |
String |
composeVisibility() |
void |
flush()
Flush in memory records to store for query processing.
|
StatisticsCache |
getDataStatistics() |
String |
getID() |
CloseableIterator<org.opengis.feature.simple.SimpleFeature> |
interweaveTransaction(Integer limit,
org.opengis.filter.Filter filter,
CloseableIterator<org.opengis.feature.simple.SimpleFeature> it) |
boolean |
isEmpty()
Check if modifiedFeatures and addedFeatures are empty.
|
void |
modify(String fid,
org.opengis.feature.simple.SimpleFeature original,
org.opengis.feature.simple.SimpleFeature updated)
Record a modification to the indicated feature ID.
|
void |
remove(String fid,
org.opengis.feature.simple.SimpleFeature feature) |
void |
rollback() |
public GeoWaveTransactionManagement(int maxAdditionBufferSize, GeoWaveDataStoreComponents components, String typeName, org.geotools.data.Transaction transaction, LockingManagement lockingManager, String txID) throws IOException
IOException
public boolean isEmpty()
isEmpty
in interface GeoWaveTransaction
public void clear()
public void modify(String fid, org.opengis.feature.simple.SimpleFeature original, org.opengis.feature.simple.SimpleFeature updated) throws IOException
modify
in interface GeoWaveTransaction
fid
- the feature IDoriginal
- original featureupdated
- replacement feature; null to indicate removeIOException
public void add(String fid, org.opengis.feature.simple.SimpleFeature feature) throws IOException
add
in interface GeoWaveTransaction
IOException
public void remove(String fid, org.opengis.feature.simple.SimpleFeature feature) throws IOException
remove
in interface GeoWaveTransaction
IOException
public void rollback() throws IOException
IOException
public String[] composeAuthorizations()
composeAuthorizations
in interface GeoWaveTransaction
public String composeVisibility()
composeVisibility
in interface GeoWaveTransaction
public String getID()
public void flush() throws IOException
GeoWaveTransaction
flush
in interface GeoWaveTransaction
IOException
public void commit() throws IOException
IOException
public StatisticsCache getDataStatistics()
getDataStatistics
in interface GeoWaveTransaction
getDataStatistics
in class AbstractTransactionManagement
public CloseableIterator<org.opengis.feature.simple.SimpleFeature> interweaveTransaction(Integer limit, org.opengis.filter.Filter filter, CloseableIterator<org.opengis.feature.simple.SimpleFeature> it)
interweaveTransaction
in interface GeoWaveTransaction
Copyright © 2013–2022. All rights reserved.