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
IOExceptionpublic boolean isEmpty()
isEmpty in interface GeoWaveTransactionpublic void clear()
public void modify(String fid, org.opengis.feature.simple.SimpleFeature original, org.opengis.feature.simple.SimpleFeature updated) throws IOException
modify in interface GeoWaveTransactionfid - the feature IDoriginal - original featureupdated - replacement feature; null to indicate removeIOExceptionpublic void add(String fid, org.opengis.feature.simple.SimpleFeature feature) throws IOException
add in interface GeoWaveTransactionIOExceptionpublic void remove(String fid, org.opengis.feature.simple.SimpleFeature feature) throws IOException
remove in interface GeoWaveTransactionIOExceptionpublic void rollback()
throws IOException
IOExceptionpublic String[] composeAuthorizations()
composeAuthorizations in interface GeoWaveTransactionpublic String composeVisibility()
composeVisibility in interface GeoWaveTransactionpublic String getID()
public void flush()
throws IOException
GeoWaveTransactionflush in interface GeoWaveTransactionIOExceptionpublic void commit()
throws IOException
IOExceptionpublic StatisticsCache getDataStatistics()
getDataStatistics in interface GeoWaveTransactiongetDataStatistics in class AbstractTransactionManagementpublic CloseableIterator<org.opengis.feature.simple.SimpleFeature> interweaveTransaction(Integer limit, org.opengis.filter.Filter filter, CloseableIterator<org.opengis.feature.simple.SimpleFeature> it)
interweaveTransaction in interface GeoWaveTransactionCopyright © 2013–2022. All rights reserved.