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);
}
}
Aggregations