Uses of Class
org.apache.druid.segment.realtime.appenderator.SegmentIdWithShardSpec
Packages that use SegmentIdWithShardSpec
Package
Description
-
Uses of SegmentIdWithShardSpec in org.apache.druid.indexing.overlord
Methods in org.apache.druid.indexing.overlord that return SegmentIdWithShardSpecModifier and TypeMethodDescriptionIndexerMetadataStorageCoordinator.allocatePendingSegment(String dataSource, org.joda.time.Interval interval, boolean skipSegmentLineageCheck, SegmentCreateRequest createRequest) Allocate a new pending segment in the pending segments table.Methods in org.apache.druid.indexing.overlord that return types with arguments of type SegmentIdWithShardSpecModifier and TypeMethodDescriptionIndexerMetadataStorageCoordinator.allocatePendingSegments(String dataSource, org.joda.time.Interval interval, boolean skipSegmentLineageCheck, List<SegmentCreateRequest> requests, boolean reduceMetadataIO) Allocates pending segments for the given requests in the pending segments table. -
Uses of SegmentIdWithShardSpec in org.apache.druid.metadata
Methods in org.apache.druid.metadata that return SegmentIdWithShardSpecModifier and TypeMethodDescriptionIndexerSQLMetadataStorageCoordinator.allocatePendingSegment(String dataSource, org.joda.time.Interval interval, boolean skipSegmentLineageCheck, SegmentCreateRequest createRequest) PendingSegmentRecord.getId()Methods in org.apache.druid.metadata that return types with arguments of type SegmentIdWithShardSpecModifier and TypeMethodDescriptionIndexerSQLMetadataStorageCoordinator.allocatePendingSegments(String dataSource, org.joda.time.Interval allocateInterval, boolean skipSegmentLineageCheck, List<SegmentCreateRequest> requests, boolean reduceMetadataIO) SqlSegmentsMetadataQuery.retrievePendingSegmentIds(String dataSource, String sequenceName, String sequencePreviousId) SqlSegmentsMetadataQuery.retrievePendingSegmentIdsWithExactInterval(String dataSource, String sequenceName, org.joda.time.Interval interval) Methods in org.apache.druid.metadata with parameters of type SegmentIdWithShardSpecModifier and TypeMethodDescriptionstatic PendingSegmentRecordPendingSegmentRecord.create(SegmentIdWithShardSpec id, String sequenceName, String sequencePrevId, String upgradedFromSegmentId, String taskAllocatorId) Creates a new record (with the current timestamp) that can be used to create a new entry in the pending segments metadata table.static PendingSegmentRecordPendingSegmentRecord.fromJson(SegmentIdWithShardSpec id, String sequenceName, String sequencePrevId, String upgradedFromSegmentId, String taskAllocatorId) Constructors in org.apache.druid.metadata with parameters of type SegmentIdWithShardSpecModifierConstructorDescriptionPendingSegmentRecord(SegmentIdWithShardSpec id, String sequenceName, String sequencePrevId, String upgradedFromSegmentId, String taskAllocatorId, org.joda.time.DateTime createdDate) -
Uses of SegmentIdWithShardSpec in org.apache.druid.metadata.segment
Methods in org.apache.druid.metadata.segment that return types with arguments of type SegmentIdWithShardSpecModifier and TypeMethodDescriptionDatasourceSegmentMetadataReader.findPendingSegmentIds(String sequenceName, String sequencePreviousId) Retrieves pending segment IDs for the given sequence name and previous ID.DatasourceSegmentMetadataReader.findPendingSegmentIdsWithExactInterval(String sequenceName, org.joda.time.Interval interval) Retrieves pending segment IDs that exactly match the given interval and sequence name. -
Uses of SegmentIdWithShardSpec in org.apache.druid.segment.realtime.appenderator
Methods in org.apache.druid.segment.realtime.appenderator that return SegmentIdWithShardSpecModifier and TypeMethodDescriptionSegmentAllocator.allocate(InputRow row, String sequenceName, String previousSegmentId, boolean skipSegmentLineageCheck) Allocates a new segment for a given timestamp.static SegmentIdWithShardSpecSegmentIdWithShardSpec.fromDataSegment(DataSegment segment) AppenderatorDriverAddResult.getSegmentIdentifier()SegmentWithState.getSegmentIdentifier()Methods in org.apache.druid.segment.realtime.appenderator that return types with arguments of type SegmentIdWithShardSpecModifier and TypeMethodDescriptionBatchAppenderator.getInMemorySegments()Appenderator.getSegments()Returns a list of all currently active segments.BatchAppenderator.getSegments()Returns all active segments regardless whether they are in memory or persistedStreamAppenderator.getSegments()Methods in org.apache.druid.segment.realtime.appenderator with parameters of type SegmentIdWithShardSpecModifier and TypeMethodDescriptionAppenderator.add(SegmentIdWithShardSpec identifier, InputRow row, com.google.common.base.Supplier<Committer> committerSupplier) Same asAppenderator.add(SegmentIdWithShardSpec, InputRow, Supplier, boolean), with allowIncrementalPersists set to trueAppenderator.add(SegmentIdWithShardSpec identifier, InputRow row, com.google.common.base.Supplier<Committer> committerSupplier, boolean allowIncrementalPersists) Add a row.BatchAppenderator.add(SegmentIdWithShardSpec identifier, InputRow row, com.google.common.base.Supplier<Committer> committerSupplier, boolean allowIncrementalPersists) StreamAppenderator.add(SegmentIdWithShardSpec identifier, InputRow row, com.google.common.base.Supplier<Committer> committerSupplier, boolean allowIncrementalPersists) intSegmentIdWithShardSpec.compareTo(SegmentIdWithShardSpec o) com.google.common.util.concurrent.ListenableFuture<?>Appenderator.drop(SegmentIdWithShardSpec identifier) Schedule dropping all data associated with a particular pending segment.com.google.common.util.concurrent.ListenableFuture<?>BatchAppenderator.drop(SegmentIdWithShardSpec identifier) com.google.common.util.concurrent.ListenableFuture<?>StreamAppenderator.drop(SegmentIdWithShardSpec identifier) longBatchAppenderator.getBytesInMemory(SegmentIdWithShardSpec identifier) intAppenderator.getRowCount(SegmentIdWithShardSpec identifier) Returns the number of rows in a particular pending segment.intBatchAppenderator.getRowCount(SegmentIdWithShardSpec identifier) intStreamAppenderator.getRowCount(SegmentIdWithShardSpec identifier) booleanAppenderatorDriverSegmentLockHelper.lock(SegmentIdWithShardSpec segmentId) static AppenderatorDriverAddResultAppenderatorDriverAddResult.ok(SegmentIdWithShardSpec segmentIdentifier, int numRowsInSegment, long totalNumRowsInAppenderator, boolean isPersistRequired) voidSinkQuerySegmentWalker.registerUpgradedPendingSegment(SegmentIdWithShardSpec id, Sink sink) Must be called when a segment is announced by a task.voidSinkQuerySegmentWalker.unregisterUpgradedPendingSegment(SegmentIdWithShardSpec id, Sink sink) Must be called when dropping sink from the sinkTimeline It is the responsibility of the caller to unregister all associated ids including the base idMethod parameters in org.apache.druid.segment.realtime.appenderator with type arguments of type SegmentIdWithShardSpecModifier and TypeMethodDescriptionstatic CommittedCommitted.create(Map<SegmentIdWithShardSpec, Integer> hydrants0, Object metadata) voidStreamAppenderatorDriver.moveSegmentOut(String sequenceName, List<SegmentIdWithShardSpec> identifiers) Move a set of identifiers out from "active", making way for newer segments.com.google.common.util.concurrent.ListenableFuture<SegmentsAndCommitMetadata>Appenderator.push(Collection<SegmentIdWithShardSpec> identifiers, Committer committer, boolean useUniquePath) Merge and push particular segments to deep storage.com.google.common.util.concurrent.ListenableFuture<SegmentsAndCommitMetadata>BatchAppenderator.push(Collection<SegmentIdWithShardSpec> identifiers, Committer committer, boolean useUniquePath) com.google.common.util.concurrent.ListenableFuture<SegmentsAndCommitMetadata>StreamAppenderator.push(Collection<SegmentIdWithShardSpec> identifiers, Committer committer, boolean useUniquePath) Constructors in org.apache.druid.segment.realtime.appenderator with parameters of type SegmentIdWithShardSpecModifierConstructorDescriptionSegmentWithState(SegmentIdWithShardSpec segmentIdentifier, SegmentWithState.SegmentState state, DataSegment dataSegment)