public DataStatisticsStore createDataStatisticsStore() { return dataStorePlugin.createDataStatisticsStore(); }
@Override protected boolean performStatsCommand( final DataStorePluginOptions storeOptions, final InternalDataAdapter<?> adapter, final StatsCommandLineOptions statsOptions) throws IOException { // Remove the stat final DataStatisticsStore statStore = storeOptions.createDataStatisticsStore(); final String[] authorizations = getAuthorizations(statsOptions.getAuthorizations()); if (!statStore.removeStatistics( adapter.getAdapterId(), fieldName, new BaseStatisticsType<>(statType), authorizations)) { throw new RuntimeException("Unable to remove statistic: " + statType); } return true; }
final DataStatisticsStore statsStore = storeOptions.createDataStatisticsStore(); final InternalAdapterStore internalAdapterStore = storeOptions.createInternalAdapterStore(); final String[] authorizations = getAuthorizations(statsOptions.getAuthorizations());
/** Prep the driver & run the operation. */ @Override public void execute(final OperationParams params) { // Ensure we have all the required arguments if (parameters.size() != 1) { throw new ParameterException("Requires arguments: <store name>"); } final String inputStoreName = parameters.get(0); // Attempt to load input store. if (inputStoreOptions == null) { final StoreLoader inputStoreLoader = new StoreLoader(inputStoreName); if (!inputStoreLoader.loadFromConfig(getGeoWaveConfigFile(params))) { throw new ParameterException("Cannot find store name: " + inputStoreLoader.getStoreName()); } inputStoreOptions = inputStoreLoader.getDataStorePlugin(); } // Get all statistics, remove all statistics, then re-add final DataStatisticsStore statsStore = inputStoreOptions.createDataStatisticsStore(); final InternalAdapterStore internalAdapterStore = inputStoreOptions.createInternalAdapterStore(); inputStoreOptions.createDataStoreOperations().mergeStats(statsStore, internalAdapterStore); }
new StatsCompositionTool( provider, storeOptions.createDataStatisticsStore(), index, adapter,
new StatsCompositionTool( provider, storeOptions.createDataStatisticsStore(), index, adapter)) {
final String typeName, final String timeField) { final DataStatisticsStore statisticsStore = dataStorePlugin.createDataStatisticsStore(); final InternalAdapterStore internalAdapterStore = dataStorePlugin.createInternalAdapterStore(); final short adapterId = internalAdapterStore.getAdapterId(typeName);
final String typeName, final String geomField) { final DataStatisticsStore statisticsStore = dataStorePlugin.createDataStatisticsStore(); final InternalAdapterStore internalAdapterStore = dataStorePlugin.createInternalAdapterStore(); final short adapterId = internalAdapterStore.getAdapterId(typeName);