Package org.apache.druid.data.input
Class ListBasedInputRowAdapter
java.lang.Object
org.apache.druid.data.input.ListBasedInputRowAdapter
- All Implemented Interfaces:
RowAdapter<InputRow>
Adapter for reading
ListBasedInputRow. The RowAdapters.standardRow() would also work, but this
one is faster because it avoids per-row field-name-to-index lookups. Must be instantiated with the same
RowSignature as the ListBasedInputRow that are to be parsed.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncolumnFunction(String columnName) Returns a function that retrieves the value for column "columnName" from rows.Returns a function that retrieves timestamps from rows.
-
Constructor Details
-
ListBasedInputRowAdapter
-
-
Method Details
-
timestampFunction
Description copied from interface:RowAdapterReturns a function that retrieves timestamps from rows. The default implementation delegates toRowAdapter.columnFunction(java.lang.String)and expects it to already contain long-typed values or nulls. Nulls, if present, will be converted to zeroes.- Specified by:
timestampFunctionin interfaceRowAdapter<InputRow>
-
columnFunction
Description copied from interface:RowAdapterReturns a function that retrieves the value for column "columnName" from rows.- Specified by:
columnFunctionin interfaceRowAdapter<InputRow>
-