Package org.apache.druid.data.input
Class InputRowListPlusRawValues
- java.lang.Object
-
- org.apache.druid.data.input.InputRowListPlusRawValues
-
public class InputRowListPlusRawValues extends Object
A triple of a list ofInputRows, aMapof raw values, and aParseException. The rawValues map contains the raw values before being parsed into InputRows. Note that a single map can be parsed into multiple InputRows, for example, with explodeSpec. The ParseException is the exception thrown when parsing bytes into either the rawValues map or the list of InputRows. In any case, one of triple must not be null.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<InputRow>getInputRows()ParseExceptiongetParseException()Map<String,Object>getRawValues()This method is left here only for test casesList<Map<String,Object>>getRawValuesList()static InputRowListPlusRawValuesof(List<InputRow> inputRows, Map<String,Object> rawColumns)static InputRowListPlusRawValuesof(Map<String,Object> rawColumns, ParseException parseException)static InputRowListPlusRawValuesof(InputRow inputRow, Map<String,Object> rawColumns)static InputRowListPlusRawValuesofList(List<Map<String,Object>> rawColumnsList, List<InputRow> inputRows)Create an instance ofInputRowListPlusRawValuesMake sure the size of given rawColumnsList and inputRows are the same if both of them are not nullstatic InputRowListPlusRawValuesofList(List<Map<String,Object>> rawColumnsList, List<InputRow> inputRows, ParseException parseException)Create an instance ofInputRowListPlusRawValuesMake sure the size of given rawColumnsList and inputRows are the same if both of them are not nullstatic InputRowListPlusRawValuesofList(List<Map<String,Object>> rawColumnsList, ParseException parseException)
-
-
-
Method Detail
-
of
public static InputRowListPlusRawValues of(@Nullable InputRow inputRow, Map<String,Object> rawColumns)
-
of
public static InputRowListPlusRawValues of(@Nullable List<InputRow> inputRows, Map<String,Object> rawColumns)
-
of
public static InputRowListPlusRawValues of(@Nullable Map<String,Object> rawColumns, ParseException parseException)
-
ofList
public static InputRowListPlusRawValues ofList(@Nullable List<Map<String,Object>> rawColumnsList, ParseException parseException)
-
ofList
public static InputRowListPlusRawValues ofList(@Nullable List<Map<String,Object>> rawColumnsList, @Nullable List<InputRow> inputRows)
Create an instance ofInputRowListPlusRawValuesMake sure the size of given rawColumnsList and inputRows are the same if both of them are not null
-
ofList
public static InputRowListPlusRawValues ofList(@Nullable List<Map<String,Object>> rawColumnsList, @Nullable List<InputRow> inputRows, @Nullable ParseException parseException)
Create an instance ofInputRowListPlusRawValuesMake sure the size of given rawColumnsList and inputRows are the same if both of them are not null
-
getRawValues
@Nullable public Map<String,Object> getRawValues()
This method is left here only for test cases
-
getParseException
@Nullable public ParseException getParseException()
-
-