public synchronized DataStore getDataStore() { if (dataStore == null) { dataStore = factoryFamily.getDataStoreFactory().createStore( ConfigUtils.populateOptionsFromList( factoryFamily.getDataStoreFactory().createOptionsInstance(), storeConfigObj)); } return dataStore; }
public synchronized AdapterIndexMappingStore getAdapterIndexMappingStore() { if (adapterIndexMappingStore == null) { adapterIndexMappingStore = factoryFamily.getAdapterIndexMappingStoreFactory().createStore( ConfigUtils.populateOptionsFromList( factoryFamily.getDataStatisticsStoreFactory().createOptionsInstance(), storeConfigObj)); } return adapterIndexMappingStore; }
public synchronized PersistentAdapterStore getAdapterStore() { if (adapterStore == null) { adapterStore = factoryFamily.getAdapterStoreFactory().createStore( ConfigUtils.populateOptionsFromList( factoryFamily.getAdapterStoreFactory().createOptionsInstance(), storeConfigObj)); } return adapterStore; }
@Override public String getDescription() { return "A datastore that uses the GeoWave API for spatial data persistence in " + geowaveStoreFactoryFamily.getType() + ". " + geowaveStoreFactoryFamily.getDescription(); }
name = storeFactoryFamily.getType() + (param == null ? "" : ("_" + param)); final Map<String, String> paramStrs = new HashMap<String, String>(); storeFactoryFamily.getAdapterStoreFactory().createOptionsInstance(), paramStrs); adapterStore = storeFactoryFamily.getAdapterStoreFactory().createStore(options); internalAdapterStore = storeFactoryFamily.getInternalAdapterStoreFactory().createStore(options); dataStore = storeFactoryFamily.getDataStoreFactory().createStore(options); dataStatisticsStore = storeFactoryFamily.getDataStatisticsStoreFactory().createStore(options); indexStore = storeFactoryFamily.getIndexStoreFactory().createStore(options); adapterIndexMappingStore = storeFactoryFamily.getAdapterIndexMappingStoreFactory().createStore(options); lockingManagementFactory = factory;
final StoreFactoryOptions options = ConfigUtils.populateOptionsFromList( geowaveStoreFactoryFamily.getDataStoreFactory().createOptionsInstance(), originalParams != null ? originalParams : filteredParams); geowaveStoreFactoryFamily.getIndexStoreFactory().createStore(options); } catch (final Exception e) { LOGGER.info("supplied map is not able to construct index store", e);
@Override public String getType() { if (factoryPlugin == null) { return null; } return factoryPlugin.getType(); }
public synchronized IndexStore getIndexStore() { if (indexStore == null) { indexStore = factoryFamily.getIndexStoreFactory().createStore( ConfigUtils.populateOptionsFromList( factoryFamily.getIndexStoreFactory().createOptionsInstance(), storeConfigObj)); } return indexStore; }
public synchronized InternalAdapterStore getInternalAdapterStore() { if (internalAdapterStore == null) { internalAdapterStore = factoryFamily.getInternalAdapterStoreFactory().createStore( ConfigUtils.populateOptionsFromList( factoryFamily.getInternalAdapterStoreFactory().createOptionsInstance(), storeConfigObj)); } return internalAdapterStore; }
public synchronized DataStatisticsStore getDataStatisticsStore() { if (dataStatisticsStore == null) { dataStatisticsStore = factoryFamily.getDataStatisticsStoreFactory().createStore( ConfigUtils.populateOptionsFromList( factoryFamily.getDataStatisticsStoreFactory().createOptionsInstance(), storeConfigObj)); } return dataStatisticsStore; }
public static AdapterIndexMappingStore createAdapterIndexMappingStore( final Map<String, String> configOptions) { final StoreFactoryFamilySpi factory = findStoreFamily(configOptions); if (factory == null) { return null; } return factory.getAdapterIndexMappingStoreFactory().createStore( ConfigUtils.populateOptionsFromList( factory.getAdapterIndexMappingStoreFactory().createOptionsInstance(), configOptions)); }
@Override public String getDisplayName() { return DISPLAY_NAME_PREFIX + geowaveStoreFactoryFamily.getType().toUpperCase(); }
final StoreFactoryFamilySpi dataStoreFactory = dataStoreFactoryEntry.getValue(); final String desc = dataStoreFactory.getDescription() == null ? "no description" : dataStoreFactory.getDescription(); builder.append(String.format("%n %s:%n %s%n", dataStoreFactory.getType(), desc));
public static IndexStore createIndexStore(final Map<String, String> configOptions) { final StoreFactoryFamilySpi factory = findStoreFamily(configOptions); if (factory == null) { return null; } return factory.getIndexStoreFactory().createStore( ConfigUtils.populateOptionsFromList( factory.getIndexStoreFactory().createOptionsInstance(), configOptions)); }
public static InternalAdapterStore createInternalAdapterStore( final Map<String, String> configOptions) { final StoreFactoryFamilySpi factory = findStoreFamily(configOptions); if (factory == null) { return null; } return factory.getInternalAdapterStoreFactory().createStore( ConfigUtils.populateOptionsFromList( // factory.getAdapterStoreFactory().createOptionsInstance(), factory.getInternalAdapterStoreFactory().createOptionsInstance(), configOptions)); }
public static DataStatisticsStore createDataStatisticsStore( final Map<String, String> configOptions) { final StoreFactoryFamilySpi factory = findStoreFamily(configOptions); if (factory == null) { return null; } return factory.getDataStatisticsStoreFactory().createStore( ConfigUtils.populateOptionsFromList( factory.getDataStatisticsStoreFactory().createOptionsInstance(), configOptions)); }
public AdapterIndexMappingStore createAdapterIndexMappingStore() { return getFactoryFamily().getAdapterIndexMappingStoreFactory().createStore(getFactoryOptions()); }
public static synchronized ConfigOption[] getAllOptions( final StoreFactoryFamilySpi storeFactoryFamily, final boolean includeHidden) { final List<ConfigOption> allOptions = new ArrayList<>(); allOptions.addAll( Arrays.asList( ConfigUtils.createConfigOptionsFromJCommander( storeFactoryFamily.getDataStoreFactory().createOptionsInstance(), includeHidden))); // TODO our JCommanderPrefixTranslator's use of reflection does not // follow inheritance, these are commonly inherited classes and options // for all data stores provided as a stop gap until we can investigate // allOptions.addAll( // Arrays.asList( // ConfigUtils.createConfigOptionsFromJCommander( // new BaseDataStoreOptions()))); // allOptions.add( // new ConfigOption( // StoreFactoryOptions.GEOWAVE_NAMESPACE_OPTION, // StoreFactoryOptions.GEOWAVE_NAMESPACE_DESCRIPTION, // true, // String.class)); return allOptions.toArray(new ConfigOption[] {}); }
public static synchronized List<Param> getPluginParams( final StoreFactoryFamilySpi storeFactoryFamily) { List<Param> params = paramMap.get(storeFactoryFamily.getType()); if (params == null) { final ConfigOption[] configOptions = GeoWaveStoreFinder.getAllOptions(storeFactoryFamily, false); params = new ArrayList<Param>( Lists.transform( Lists.newArrayList(configOptions), new GeoWaveConfigOptionToGeoToolsConfigOption())); params.addAll(BASE_GEOWAVE_PLUGIN_PARAMS); paramMap.put(storeFactoryFamily.getType(), params); } return params; }
public static PersistentAdapterStore createAdapterStore(final Map<String, String> configOptions) { final StoreFactoryFamilySpi factory = findStoreFamily(configOptions); if (factory == null) { return null; } return factory.getAdapterStoreFactory().createStore( ConfigUtils.populateOptionsFromList( factory.getAdapterStoreFactory().createOptionsInstance(), configOptions)); }