Package io.druid.server.coordinator.helper

Examples of io.druid.server.coordinator.helper.DruidCoordinatorSegmentMerger$SegmentsToMerge


        retVal.add(segmentsToMerge);
      }
    };

    final AtomicReference<DatasourceWhitelist> whitelistRef = new AtomicReference<DatasourceWhitelist>(null);
    final DruidCoordinatorSegmentMerger merger = new DruidCoordinatorSegmentMerger(indexingServiceClient, whitelistRef);
    final DruidCoordinatorRuntimeParams params = DruidCoordinatorRuntimeParams.newBuilder()
                                                                    .withAvailableSegments(ImmutableSet.copyOf(segments))
                                                                    .withDynamicConfigs(
                                                                        new CoordinatorDynamicConfig.Builder().withMergeBytesLimit(
                                                                            mergeBytesLimit
                                                                        ).withMergeSegmentsLimit(
                                                                            mergeSegmentsLimit
                                                                        )
                                                                                                         .build()
                                                                    )
                                                                    .build();
    merger.run(params);
    return retVal;
  }
View Full Code Here


    if (config.isConvertSegments()) {
      helpers.add(new DruidCoordinatorVersionConverter(indexingServiceClient, whitelistRef));
    }
    if (config.isMergeSegments()) {
      helpers.add(new DruidCoordinatorSegmentMerger(indexingServiceClient, whitelistRef));
      helpers.add(
          new DruidCoordinatorHelper()
          {
            @Override
            public DruidCoordinatorRuntimeParams run(DruidCoordinatorRuntimeParams params)
View Full Code Here

TOP

Related Classes of io.druid.server.coordinator.helper.DruidCoordinatorSegmentMerger$SegmentsToMerge

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.