public BaseIndexBuilder() { this(new IndexPluginOptions()); }
public void addIndex(String name, String type) { if (name != null && type != null) { IndexPluginOptions indexOptions = new IndexPluginOptions(); indexOptions.selectPlugin(type); getDimensionalityPlugins().put(name, indexOptions); } }
private static IndexPluginOptions loadIndexPluginOptions( final Properties props, final String name) { final IndexPluginOptions indexPlugin = new IndexPluginOptions(); final String indexNamespace = IndexPluginOptions.getIndexNamespace(name); if (!indexPlugin.load(props, indexNamespace)) { return null; } return indexPlugin; }
IndexPluginOptions existPlugin = new IndexPluginOptions(); if (existPlugin.load(existingProps, getNamespace())) { throw new ParameterException("That index already exists: " + getPluginName());
final IndexPluginOptions existPlugin = new IndexPluginOptions(); if (existPlugin.load(existingProps, getNamespace())) { throw new DuplicateEntryException("That store already exists: " + getPluginName());
final IndexPluginOptions existPlugin = new IndexPluginOptions(); if (existPlugin.load(existingProps, getNamespace())) { throw new DuplicateEntryException("That store already exists: " + getPluginName());
@Override public void execute(OperationParams params) { Properties existingProps = getGeoWaveConfigProperties(params); if (parameters.size() < 2) { throw new ParameterException("Must specify <existing index> <new index> names"); } // This is the new index name. String newIndex = parameters.get(1); String newIndexNamespace = IndexPluginOptions.getIndexNamespace(newIndex); // Make sure we're not already in the index. IndexPluginOptions existPlugin = new IndexPluginOptions(); if (existPlugin.load(existingProps, newIndexNamespace)) { throw new ParameterException("That index already exists: " + newIndex); } // Save the options. newPluginOptions.save(existingProps, newIndexNamespace); // Make default? if (Boolean.TRUE.equals(makeDefault)) { existingProps.setProperty(IndexPluginOptions.DEFAULT_PROPERTY_NAMESPACE, newIndex); } // Write properties file ConfigOptions.writeProperties(getGeoWaveConfigFile(params), existingProps); }
final IndexPluginOptions options = new IndexPluginOptions(); if (!options.load(existingProps, IndexPluginOptions.getIndexNamespace(indexes[i]))) { throw new TargetNotFoundException("That index does not exist: " + indexes[i]);
final List<IndexPluginOptions> indexOptions = new ArrayList<>(indexTypes.length); for (final String indexType : indexTypes) { final IndexPluginOptions indexOption = new IndexPluginOptions(); indexOption.selectPlugin(indexType); indexOptions.add(indexOption);
final List<IndexPluginOptions> indexOptions = new ArrayList<>(indexTypes.length); for (final String indexType : indexTypes) { final IndexPluginOptions indexOption = new IndexPluginOptions(); indexOption.selectPlugin(indexType); indexOptions.add(indexOption);
final List<IndexPluginOptions> indexOptions = new ArrayList<>(indexTypes.length); for (final String indexType : indexTypes) { final IndexPluginOptions indexOption = new IndexPluginOptions(); indexOption.selectPlugin(indexType); if (crsCode != null) {
final IndexPluginOptions pluginOptions = new IndexPluginOptions(); pluginOptions.selectPlugin(indexType); pluginOptions.save(props, IndexPluginOptions.getIndexNamespace(indexType));
final IndexPluginOptions indexOption = new IndexPluginOptions(); indexOption.selectPlugin((spatialTemporal ? "spatial_temporal" : "spatial"));