public StoreFactoryOptions getFactoryOptions() { return dataStorePlugin.getFactoryOptions(); }
public String getGeoWaveNamespace() { return getFactoryOptions().getGeoWaveNamespace(); } }
public OSMRunner( final OSMIngestCommandArgs ingestOptions, final DataStorePluginOptions inputStoreOptions) { this.ingestOptions = ingestOptions; if (!inputStoreOptions.getType().equals(new AccumuloStoreFactoryFamily().getType())) { throw new RuntimeException("Expected accumulo data store"); } accumuloOptions = (AccumuloRequiredOptions) inputStoreOptions.getFactoryOptions(); }
@Override protected void setup(final Context context) throws IOException, InterruptedException { super.setup(context); try { globalVisibility = context.getConfiguration().get(AbstractMapReduceIngest.GLOBAL_VISIBILITY_KEY); final String primaryIndexIdStr = context.getConfiguration().get(AbstractMapReduceIngest.INDEX_NAMES_KEY); if (primaryIndexIdStr != null) { indexName = primaryIndexIdStr; } final OSMIngestCommandArgs args = new OSMIngestCommandArgs(); args.deserializeFromString(context.getConfiguration().get("arguments")); final DataStorePluginOptions storeOptions = GeoWaveOutputFormat.getStoreOptions(context); osmProvider = new OsmProvider(args, (AccumuloRequiredOptions) storeOptions.getFactoryOptions()); } catch (final Exception e) { throw new IllegalArgumentException(e); } } }
if ((configFile != null) && (dataStorePlugin.getFactoryOptions() != null)) { File tokenFile = SecurityUtils.getFormattedTokenKeyFileForConfig(configFile); final Field[] fields = dataStorePlugin.getFactoryOptions().getClass().getDeclaredFields(); for (final Field field : fields) { for (final Annotation annotation : field.getAnnotations()) {
public DataStore createDataStore() { return getFactoryFamily().getDataStoreFactory().createStore(getFactoryOptions()); }
/** * From the given options (like 'username', 'password') setup this plugin options to be able to * create data stores. * * @param options */ public DataStorePluginOptions(final Map<String, String> options) throws IllegalArgumentException { factoryPlugin = GeoWaveStoreFinder.findStoreFamily(options); if (factoryPlugin == null) { throw new IllegalArgumentException("Cannot find store plugin factory"); } factoryOptions = factoryPlugin.getDataStoreFactory().createOptionsInstance(); ConfigUtils.populateOptionsFromList(getFactoryOptions(), options); }
public InternalAdapterStore createInternalAdapterStore() { return getFactoryFamily().getInternalAdapterStoreFactory().createStore(getFactoryOptions()); }
public DataStatisticsStore createDataStatisticsStore() { return getFactoryFamily().getDataStatisticsStoreFactory().createStore(getFactoryOptions()); }
public PersistentAdapterStore createAdapterStore() { return getFactoryFamily().getAdapterStoreFactory().createStore(getFactoryOptions()); }
public IndexStore createIndexStore() { return getFactoryFamily().getIndexStoreFactory().createStore(getFactoryOptions()); }
public AdapterIndexMappingStore createAdapterIndexMappingStore() { return getFactoryFamily().getAdapterIndexMappingStoreFactory().createStore(getFactoryOptions()); }
public DataStoreOperations createDataStoreOperations() { return getFactoryFamily().getDataStoreOperationsFactory().createStore(getFactoryOptions()); }
if (pluginOptions.getFactoryOptions() != null) { pluginOptions.getFactoryOptions().validatePluginOptions(existingProps); getGeoWaveConfigFile(), existingProps, pluginOptions.getFactoryOptions().getClass(), getNamespace() + "." + DataStorePluginOptions.OPTS);
requiredOptions = pluginOptions.getFactoryOptions(); } else { Properties existingProps = getGeoWaveConfigProperties(params); requiredOptions = pluginOptions.getFactoryOptions();
@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; }
inputStoreOptions.getFactoryOptions().setGeoWaveNamespace("osmnamespace");
internalAdapterStore, adapterIndexMappingStore, inputStoreOptions.getFactoryOptions().getStoreOptions().getMaxRangeDecomposition())) { JCommander.getConsole().println( "Unable to merge data within index '" + index.getName() + "'");
DataStoreOperations ops = inputStoreOptions.createDataStoreOperations(); if (ops instanceof ServerSideOperations && inputStoreOptions.getFactoryOptions().getStoreOptions().isServerSideLibraryEnabled()) { JCommander.getConsole().println( "Looking up remote datastore version for type ["