| Package | Description |
|---|---|
| org.apache.druid.indexing.overlord | |
| org.apache.druid.metadata | |
| org.apache.druid.segment.realtime.appenderator |
| Modifier and Type | Method and Description |
|---|---|
SegmentIdWithShardSpec |
IndexerMetadataStorageCoordinator.allocatePendingSegment(String dataSource,
String sequenceName,
String previousSegmentId,
org.joda.time.Interval interval,
PartialShardSpec partialShardSpec,
String maxVersion,
boolean skipSegmentLineageCheck)
Allocate a new pending segment in the pending segments table.
|
| Modifier and Type | Method and Description |
|---|---|
SegmentIdWithShardSpec |
IndexerSQLMetadataStorageCoordinator.allocatePendingSegment(String dataSource,
String sequenceName,
String previousSegmentId,
org.joda.time.Interval interval,
PartialShardSpec partialShardSpec,
String maxVersion,
boolean skipSegmentLineageCheck) |
| Modifier and Type | Method and Description |
|---|---|
SegmentIdWithShardSpec |
SegmentAllocator.allocate(InputRow row,
String sequenceName,
String previousSegmentId,
boolean skipSegmentLineageCheck)
Allocates a new segment for a given timestamp.
|
static SegmentIdWithShardSpec |
SegmentIdWithShardSpec.fromDataSegment(DataSegment segment) |
SegmentIdWithShardSpec |
SegmentWithState.getSegmentIdentifier() |
SegmentIdWithShardSpec |
AppenderatorDriverAddResult.getSegmentIdentifier() |
| Modifier and Type | Method and Description |
|---|---|
List<SegmentIdWithShardSpec> |
BatchAppenderator.getInMemorySegments() |
List<SegmentIdWithShardSpec> |
Appenderator.getSegments()
Returns a list of all currently active segments.
|
List<SegmentIdWithShardSpec> |
StreamAppenderator.getSegments() |
List<SegmentIdWithShardSpec> |
AppenderatorImpl.getSegments() |
List<SegmentIdWithShardSpec> |
BatchAppenderator.getSegments()
Returns all active segments regardless whether they are in memory or persisted
|
Map<Long,SegmentIdWithShardSpec> |
AppenderatorPlumber.getSegmentsView() |
| Modifier and Type | Method and Description |
|---|---|
default Appenderator.AppenderatorAddResult |
Appenderator.add(SegmentIdWithShardSpec identifier,
InputRow row,
com.google.common.base.Supplier<Committer> committerSupplier)
Same as
Appenderator.add(SegmentIdWithShardSpec, InputRow, Supplier, boolean), with allowIncrementalPersists set to
true |
Appenderator.AppenderatorAddResult |
Appenderator.add(SegmentIdWithShardSpec identifier,
InputRow row,
com.google.common.base.Supplier<Committer> committerSupplier,
boolean allowIncrementalPersists)
Add a row.
|
Appenderator.AppenderatorAddResult |
StreamAppenderator.add(SegmentIdWithShardSpec identifier,
InputRow row,
com.google.common.base.Supplier<Committer> committerSupplier,
boolean allowIncrementalPersists) |
Appenderator.AppenderatorAddResult |
AppenderatorImpl.add(SegmentIdWithShardSpec identifier,
InputRow row,
com.google.common.base.Supplier<Committer> committerSupplier,
boolean allowIncrementalPersists) |
Appenderator.AppenderatorAddResult |
BatchAppenderator.add(SegmentIdWithShardSpec identifier,
InputRow row,
com.google.common.base.Supplier<Committer> committerSupplier,
boolean allowIncrementalPersists) |
int |
SegmentIdWithShardSpec.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<?> |
StreamAppenderator.drop(SegmentIdWithShardSpec identifier) |
com.google.common.util.concurrent.ListenableFuture<?> |
AppenderatorImpl.drop(SegmentIdWithShardSpec identifier) |
com.google.common.util.concurrent.ListenableFuture<?> |
BatchAppenderator.drop(SegmentIdWithShardSpec identifier) |
void |
AppenderatorPlumber.dropSegment(SegmentIdWithShardSpec identifier) |
long |
BatchAppenderator.getBytesInMemory(SegmentIdWithShardSpec identifier) |
int |
Appenderator.getRowCount(SegmentIdWithShardSpec identifier)
Returns the number of rows in a particular pending segment.
|
int |
StreamAppenderator.getRowCount(SegmentIdWithShardSpec identifier) |
int |
AppenderatorImpl.getRowCount(SegmentIdWithShardSpec identifier) |
int |
BatchAppenderator.getRowCount(SegmentIdWithShardSpec identifier) |
boolean |
AppenderatorDriverSegmentLockHelper.lock(SegmentIdWithShardSpec segmentId) |
static AppenderatorDriverAddResult |
AppenderatorDriverAddResult.ok(SegmentIdWithShardSpec segmentIdentifier,
int numRowsInSegment,
long totalNumRowsInAppenderator,
boolean isPersistRequired) |
| Modifier and Type | Method and Description |
|---|---|
static Committed |
Committed.create(Map<SegmentIdWithShardSpec,Integer> hydrants0,
Object metadata) |
Set<DataSegment> |
UsedSegmentChecker.findUsedSegments(Set<SegmentIdWithShardSpec> identifiers)
For any identifiers that exist and are actually used, returns the corresponding DataSegment objects.
|
void |
StreamAppenderatorDriver.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> |
StreamAppenderator.push(Collection<SegmentIdWithShardSpec> identifiers,
Committer committer,
boolean useUniquePath) |
com.google.common.util.concurrent.ListenableFuture<SegmentsAndCommitMetadata> |
AppenderatorImpl.push(Collection<SegmentIdWithShardSpec> identifiers,
Committer committer,
boolean useUniquePath) |
com.google.common.util.concurrent.ListenableFuture<SegmentsAndCommitMetadata> |
BatchAppenderator.push(Collection<SegmentIdWithShardSpec> identifiers,
Committer committer,
boolean useUniquePath) |
| Constructor and Description |
|---|
SegmentWithState(SegmentIdWithShardSpec segmentIdentifier,
SegmentWithState.SegmentState state,
DataSegment dataSegment) |
| Constructor and Description |
|---|
AppenderatorDriverMetadata(Map<String,List<SegmentWithState>> segments,
Map<String,String> lastSegmentIds,
Object callerMetadata,
Map<String,List<SegmentIdWithShardSpec>> activeSegments,
Map<String,List<SegmentIdWithShardSpec>> publishPendingSegments) |
AppenderatorDriverMetadata(Map<String,List<SegmentWithState>> segments,
Map<String,String> lastSegmentIds,
Object callerMetadata,
Map<String,List<SegmentIdWithShardSpec>> activeSegments,
Map<String,List<SegmentIdWithShardSpec>> publishPendingSegments) |
Copyright © 2011–2021 The Apache Software Foundation. All rights reserved.