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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Function<RowType,Object>
columnFunction(String columnName)
Returns a function that retrieves the value for column "columnName" from rows.default ToLongFunction<RowType>
timestampFunction()
Returns a function that retrieves timestamps from rows.
-
-
-
Method Detail
-
timestampFunction
default ToLongFunction<RowType> 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.
-
-