public class AppenderatorDriverAddResult extends Object
BaseAppenderatorDriver#append). It contains the identifier of the
segment which the InputRow is added to, the number of rows in that segment and if persist is required because either
maxRowsInMemory or intermediate persist period threshold is hit.| Modifier and Type | Method and Description |
|---|---|
static AppenderatorDriverAddResult |
fail() |
int |
getNumRowsInSegment() |
SegmentIdWithShardSpec |
getSegmentIdentifier() |
long |
getTotalNumRowsInAppenderator() |
boolean |
isOk() |
boolean |
isPersistRequired() |
boolean |
isPushRequired(Integer maxRowsPerSegment,
Long maxTotalRows) |
static AppenderatorDriverAddResult |
ok(SegmentIdWithShardSpec segmentIdentifier,
int numRowsInSegment,
long totalNumRowsInAppenderator,
boolean isPersistRequired) |
public static AppenderatorDriverAddResult ok(SegmentIdWithShardSpec segmentIdentifier, int numRowsInSegment, long totalNumRowsInAppenderator, boolean isPersistRequired)
public static AppenderatorDriverAddResult fail()
public boolean isOk()
public SegmentIdWithShardSpec getSegmentIdentifier()
public int getNumRowsInSegment()
public long getTotalNumRowsInAppenderator()
public boolean isPersistRequired()
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.