Package org.apache.druid.segment
Interface RowAdapter<RowType>
- All Known Implementing Classes:
ListBasedInputRowAdapter
public interface RowAdapter<RowType>
An adapter between arbitrary types and the needs of callers that want to read specific columns out of those
types (treating them as rows).
-
Method Summary
Modifier and TypeMethodDescriptioncolumnFunction(String columnName) Returns a function that retrieves the value for column "columnName" from rows.default ToLongFunction<RowType> Returns a function that retrieves timestamps from rows.
-
Method Details
-
timestampFunction
Returns a function that retrieves timestamps from rows. The default implementation delegates tocolumnFunction(java.lang.String)and expects it to already contain long-typed values or nulls. Nulls, if present, will be converted to zeroes. -
columnFunction
Returns a function that retrieves the value for column "columnName" from rows.
-