Search in sources :

Example 1 with OptionProvider

use of org.locationtech.geowave.core.store.server.ServerOpConfig.OptionProvider in project geowave by locationtech.

the class ServerOpHelper method addServerSideRowMerging.

public static void addServerSideRowMerging(final RowMergingDataAdapter<?, ?> adapter, final short internalAdapterId, final ServerSideOperations operations, final String serverOpClassName, final String serverOpVisiblityClassName, final String tableName) {
    final RowTransform rowTransform = adapter.getTransform();
    if (rowTransform != null) {
        final OptionProvider optionProvider = new RowMergingAdapterOptionProvider(internalAdapterId, adapter);
        final ServerOpConfig rowMergingCombinerConfig = new ServerOpConfig(EnumSet.allOf(ServerOpScope.class), rowTransform.getBaseTransformPriority(), rowTransform.getTransformName() + ROW_MERGING_SUFFIX, serverOpClassName, optionProvider);
        final ServerOpConfig rowMergingVisibilityCombinerConfig = new ServerOpConfig(EnumSet.of(ServerOpScope.SCAN), rowTransform.getBaseTransformPriority() + 1, rowTransform.getTransformName() + ROW_MERGING_VISIBILITY_SUFFIX, serverOpVisiblityClassName, optionProvider);
        updateServerOps(operations, tableName, rowMergingCombinerConfig, rowMergingVisibilityCombinerConfig);
    }
}
Also used : ServerOpScope(org.locationtech.geowave.core.store.server.ServerOpConfig.ServerOpScope) RowTransform(org.locationtech.geowave.core.store.adapter.RowMergingDataAdapter.RowTransform) OptionProvider(org.locationtech.geowave.core.store.server.ServerOpConfig.OptionProvider)

Aggregations

RowTransform (org.locationtech.geowave.core.store.adapter.RowMergingDataAdapter.RowTransform)1 OptionProvider (org.locationtech.geowave.core.store.server.ServerOpConfig.OptionProvider)1 ServerOpScope (org.locationtech.geowave.core.store.server.ServerOpConfig.ServerOpScope)1