Class ParseExceptionHandler
- java.lang.Object
-
- org.apache.druid.segment.incremental.ParseExceptionHandler
-
public class ParseExceptionHandler extends Object
A handler forParseException
s thrown during ingestion. Based on the given configuration, this handler can - log ParseExceptions. - keep most recent N ParseExceptions in memory. - throw a RuntimeException when it sees more ParseExceptions thanmaxAllowedParseExceptions
. No matter what the handler does, the relevant metric should be updated first.
-
-
Constructor Summary
Constructors Constructor Description ParseExceptionHandler(RowIngestionMeters rowIngestionMeters, boolean logParseExceptions, int maxAllowedParseExceptions, int maxSavedParseExceptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CircularBuffer<ParseExceptionReport>
getSavedParseExceptionReports()
void
handle(ParseException e)
void
logParseExceptionHelper(Exception e)
-
-
-
Constructor Detail
-
ParseExceptionHandler
public ParseExceptionHandler(RowIngestionMeters rowIngestionMeters, boolean logParseExceptions, int maxAllowedParseExceptions, int maxSavedParseExceptions)
-
-
Method Detail
-
handle
public void handle(@Nullable ParseException e)
-
getSavedParseExceptionReports
@Nullable public CircularBuffer<ParseExceptionReport> getSavedParseExceptionReports()
-
logParseExceptionHelper
public void logParseExceptionHelper(Exception e)
-
-