@Override public String getType() { if (factoryPlugin == null) { return null; } return factoryPlugin.getType(); }
@Override public String getDisplayName() { return DISPLAY_NAME_PREFIX + geowaveStoreFactoryFamily.getType().toUpperCase(); }
@Override public String getDescription() { return "A datastore that uses the GeoWave API for spatial data persistence in " + geowaveStoreFactoryFamily.getType() + ". " + geowaveStoreFactoryFamily.getDescription(); }
public Map<String, String> getOptionsAsMap() { final Map<String, String> configOptions = ConfigUtils.populateListFromOptions(factoryOptions); if (factoryPlugin != null) { configOptions.put(GeoWaveStoreFinder.STORE_HINT_OPTION.getName(), factoryPlugin.getType()); } return configOptions; }
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; }
/** Take the given options and populate the given options list. This is JCommander specific. */ public static Map<String, String> populateListFromOptions( final StoreFactoryOptions optionsObject) { final Map<String, String> mapOptions = new HashMap<String, String>(); if (optionsObject != null) { final JCommanderPropertiesTransformer translator = new JCommanderPropertiesTransformer(); translator.addObject(optionsObject); translator.transformToMap(mapOptions); mapOptions.put(GeoWaveStoreFinder.STORE_HINT_KEY, optionsObject.getStoreFactory().getType()); } return mapOptions; } }
dataStoreFactory.getDescription() == null ? "no description" : dataStoreFactory.getDescription(); builder.append(String.format("%n %s:%n %s%n", dataStoreFactory.getType(), desc));
} else if (matchingFactoriesHaveSameRequiredOptionsCount) { LOGGER.warn("Multiple valid stores found with equal specificity for store"); LOGGER.warn(matchingFactory.getType() + " will be automatically chosen");
name = storeFactoryFamily.getType() + (param == null ? "" : ("_" + param)); final Map<String, String> paramStrs = new HashMap<String, String>();