Package org.apache.beam.sdk.io.csv
Class CsvIOParseError
- java.lang.Object
-
- org.apache.beam.sdk.io.csv.CsvIOParseError
-
@DefaultSchema(org.apache.beam.sdk.schemas.AutoValueSchema.class) public abstract class CsvIOParseError extends java.lang.ObjectCsvIOParseErroris a data class to store errors from CSV record processing. It isSchemamapped for compatibility with writing to Beam Schema-aware I/O connectors.
-
-
Constructor Summary
Constructors Constructor Description CsvIOParseError()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract @Nullable java.lang.StringgetCsvRecord()The CSV record associated with the caughtException.abstract @Nullable java.lang.StringgetFilename()The filename associated with the caughtException.abstract java.lang.StringgetMessage()The caughtThrowable.getMessage().abstract org.joda.time.InstantgetObservedTimestamp()The date and time when theExceptionoccurred.abstract java.lang.StringgetStackTrace()The caughtThrowable.getStackTrace().
-
-
-
Method Detail
-
getMessage
public abstract java.lang.String getMessage()
The caughtThrowable.getMessage().
-
getCsvRecord
public abstract @Nullable java.lang.String getCsvRecord()
The CSV record associated with the caughtException. AnnotatedNullableas not all processing errors are associated with a CSV record.
-
getFilename
public abstract @Nullable java.lang.String getFilename()
The filename associated with the caughtException. AnnotatedNullableas not all processing errors are associated with a file.
-
getObservedTimestamp
public abstract org.joda.time.Instant getObservedTimestamp()
The date and time when theExceptionoccurred.
-
getStackTrace
public abstract java.lang.String getStackTrace()
The caughtThrowable.getStackTrace().
-
-