Package io.druid.indexing.common.actions

Examples of io.druid.indexing.common.actions.SegmentMetadataUpdateAction


        restoredSegments.add(toolbox.getDataSegmentArchiver().restore(segment));
      }

      // Update metadata for moved segments
      toolbox.getTaskActionClient().submit(
          new SegmentMetadataUpdateAction(
              ImmutableSet.copyOf(restoredSegments)
          )
      );

      return TaskStatus.success(getId());
View Full Code Here


      archivedSegments.add(toolbox.getDataSegmentArchiver().archive(segment));
    }

    // Update metadata for moved segments
    toolbox.getTaskActionClient().submit(
        new SegmentMetadataUpdateAction(
            ImmutableSet.copyOf(archivedSegments)
        )
    );

    return TaskStatus.success(getId());
View Full Code Here

    }

    // Move segments
    for (DataSegment segment : unusedSegments) {
      final DataSegment movedSegment = toolbox.getDataSegmentMover().move(segment, targetLoadSpec);
      toolbox.getTaskActionClient().submit(new SegmentMetadataUpdateAction(ImmutableSet.of(movedSegment)));
    }

    return TaskStatus.success(getId());
  }
View Full Code Here

TOP

Related Classes of io.druid.indexing.common.actions.SegmentMetadataUpdateAction

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.