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() |
ParseException |
getParseException() |
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,
ParseException parseException) |
public static AppenderatorDriverAddResult ok(SegmentIdWithShardSpec segmentIdentifier, int numRowsInSegment, long totalNumRowsInAppenderator, boolean isPersistRequired, @Nullable ParseException parseException)
public static AppenderatorDriverAddResult fail()
public boolean isOk()
public SegmentIdWithShardSpec getSegmentIdentifier()
public int getNumRowsInSegment()
public long getTotalNumRowsInAppenderator()
public boolean isPersistRequired()
public boolean isPushRequired(@Nullable Integer maxRowsPerSegment, @Nullable Long maxTotalRows)
@Nullable public ParseException getParseException()
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.