@Override
protected boolean performStatsCommand(
final DataStorePluginOptions storeOptions,
final InternalDataAdapter<?> adapter,
final StatsCommandLineOptions statsOptions) throws IOException {
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;
}