Package org.apache.druid.frame.read
Class FrameReader
java.lang.Object
org.apache.druid.frame.read.FrameReader
Embeds the logic to read frames with a given
RowSignature.
Can be shared by multiple threads, to encourage reuse of column and field readers.-
Method Summary
Modifier and TypeMethodDescriptioncolumnCapabilities(Frame frame, String columnName) Returns capabilities for a particular column in a particular frame.static FrameReadercreate(RowSignature signature) Create a reader for frames with a givenRowSignature.makeComparisonWidget(Frame frame, List<KeyColumn> keyColumns) Create aFrameComparisonWidgetfor the given frame.makeCursorFactory(Frame frame) Create aCursorFactoryfor the given frame.
-
Method Details
-
create
Create a reader for frames with a givenRowSignature. The signature must exactly match the frames to be read, or else behavior is undefined.- Parameters:
signature- signature used to generate the reader
-
signature
-
columnCapabilities
Returns capabilities for a particular column in a particular frame.Preferred over
RowSignature.getColumnCapabilities(String)when reading a particular frame, because this method has more insight into what's actually going on with that specific frame (nulls, multivalue, etc). The RowSignature version is based solely on type. -
makeCursorFactory
Create aCursorFactoryfor the given frame. -
makeComparisonWidget
Create aFrameComparisonWidgetfor the given frame.Only possible for row-based frames. The provided sortColumns must be a prefix of
signature().
-