public abstract class DuplicateCommands extends CqlCommands
| Modifier and Type | Field and Description |
|---|---|
protected AtomicInteger |
failedCount |
protected Set<Metacard> |
failedMetacards |
protected AtomicInteger |
ingestedCount |
protected static int |
MAX_BATCH_SIZE |
protected long |
start |
DATE_FORMAT, DEFAULT_TEMPORAL_PROPERTYbundleContext, catalogFramework, catalogProvider, DATETIME_FORMATTER, DEFAULT_NUMBER_OF_ITEMS, DEFAULT_TRANSFORMER_ID, ESCAPE, filterBuilder, isProvider, NAMESPACE, SERIALIZED_OBJECT_ID, SINGLE_WILDCARD, WILDCARDsession, userconsole, ERROR_COLOR, MS_PER_SECOND| Constructor and Description |
|---|
DuplicateCommands() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
duplicateInBatches(CatalogFacade queryFacade,
CatalogFacade ingestFacade,
org.opengis.filter.Filter filter,
String sourceId)
In batches, loops through a query of the queryFacade and an ingest to the ingestFacade of the
metacards from the response until there are no more metacards from the queryFacade or the
maxMetacards has been reached.
|
protected List<Metacard> |
ingestMetacards(CatalogFacade provider,
List<Metacard> metacards) |
protected List<Metacard> |
subtract(List<Metacard> queried,
List<Metacard> ingested) |
protected void |
writeFailedMetacards(Set<Metacard> failedMetacardsToWrite) |
getFilter, getFilter, getFilterStartTime, getTemporalProperty, hasFiltergetCacheProxy, getCatalog, getFormattedDuration, getFormattedDuration, getServiceByFilterexecute, executeWithSubjectcalculateRecordsPerSecond, printColor, printErrorMessage, printHeaderMessage, printProgressAndFlush, printSuccessMessageprotected static final int MAX_BATCH_SIZE
protected AtomicInteger ingestedCount
protected AtomicInteger failedCount
protected long start
protected void duplicateInBatches(CatalogFacade queryFacade, CatalogFacade ingestFacade, org.opengis.filter.Filter filter, String sourceId)
queryFacade - - the CatalogFacade to duplicate fromingestFacade - - the CatalogFacade to duplicate tofilter - - the filter to query withprotected List<Metacard> ingestMetacards(CatalogFacade provider, List<Metacard> metacards)
protected void writeFailedMetacards(Set<Metacard> failedMetacardsToWrite) throws IOException
IOExceptionThis work is licensed under a Creative Commons Attribution 4.0 International License.