private AdapterIndexMappingStore getOrCreateAdapterIndexMappingStore() { if (adapterIndexMappingStore == null) { adapterIndexMappingStore = storeOptions.createAdapterIndexMappingStore(); } return adapterIndexMappingStore; } }
public AdapterIndexMappingStore createAdapterIndexMappingStore() { return dataStorePlugin.createAdapterIndexMappingStore(); } }
private Index[] getIndicesForAdapter( final DataStorePluginOptions storeOptions, final String typeName, final InternalAdapterStore internalAdapterStore, final IndexStore indexStore) { return storeOptions.createAdapterIndexMappingStore().getIndicesForAdapter( internalAdapterStore.getAdapterId(typeName)).getIndices(indexStore); }
inputStoreOptions.createAdapterIndexMappingStore(); try (CloseableIterator<InternalDataAdapter<?>> adapterIt = inputStoreOptions.createAdapterStore().getAdapters()) {
@Override protected void lastSceneComplete(final AnalysisInfo analysisInfo) { processPreviousScene(); super.lastSceneComplete(analysisInfo); if (!ingestOptions.isSkipMerge()) { System.out.println("Merging overlapping tiles..."); for (final Index index : indices) { if (dataStorePluginOptions.createDataStoreOperations().mergeData( index, dataStorePluginOptions.createAdapterStore(), dataStorePluginOptions.createInternalAdapterStore(), dataStorePluginOptions.createAdapterIndexMappingStore(), dataStorePluginOptions.getFactoryOptions().getStoreOptions().getMaxRangeDecomposition())) { System.out.println( "Successfully merged overlapping tiles within index '" + index.getName() + "'"); } else { System.err.println( "Unable to merge overlapping landsat8 tiles in index '" + index.getName() + "'"); } } } }
@Override protected void lastSceneComplete(final AnalysisInfo analysisInfo) { processPreviousScene(); super.lastSceneComplete(analysisInfo); if (!ingestOptions.isSkipMerge()) { System.out.println("Merging overlapping tiles..."); for (final Index index : indices) { if (dataStorePluginOptions.createDataStoreOperations().mergeData( index, dataStorePluginOptions.createAdapterStore(), dataStorePluginOptions.createInternalAdapterStore(), dataStorePluginOptions.createAdapterIndexMappingStore(), dataStorePluginOptions.getFactoryOptions().getStoreOptions().getMaxRangeDecomposition())) { System.out.println( "Successfully merged overlapping tiles within index '" + index.getName() + "'"); } else { System.err.println( "Unable to merge overlapping landsat8 tiles in index '" + index.getName() + "'"); } } } // Clear all scene files? if ((lastScene != null) && !ingestOptions.isRetainImages()) { DownloadRunner.cleanDownloadedFiles(lastScene, sentinel2Options.getWorkspaceDir()); } lastScene = null; }
adapterStore = dataStoreOptions.createAdapterStore(); internalAdapterStore = dataStoreOptions.createInternalAdapterStore(); adapterIndexMappingStore = dataStoreOptions.createAdapterIndexMappingStore();
return false; final AdapterIndexMappingStore mappingStore = storeOptions.createAdapterIndexMappingStore(); final IndexStore indexStore = storeOptions.createIndexStore();
final AdapterIndexMappingStore mappingStore = storeOptions.createAdapterIndexMappingStore(); final IndexStore indexStore = storeOptions.createIndexStore();
inputStoreOptions.createInternalAdapterStore(); final AdapterIndexMappingStore adapterIndexMappingStore = inputStoreOptions.createAdapterIndexMappingStore(); final DataStoreOperations operations = inputStoreOptions.createDataStoreOperations();