public class FrameReader extends Object
RowSignature.
Stateless and immutable.| Modifier and Type | Method and Description |
|---|---|
ColumnCapabilities |
columnCapabilities(Frame frame,
String columnName)
Returns capabilities for a particular column in a particular frame.
|
static FrameReader |
create(RowSignature signature)
Create a reader for frames with a given
RowSignature. |
FrameComparisonWidget |
makeComparisonWidget(Frame frame,
List<SortColumn> sortColumns)
Create a
FrameComparisonWidget for the given frame. |
CursorFactory |
makeCursorFactory(Frame frame)
Create a
CursorFactory for the given frame. |
RowSignature |
signature() |
public static FrameReader create(RowSignature signature)
RowSignature. The signature must exactly match the frames to be
read, or else behavior is undefined.public RowSignature signature()
@Nullable public ColumnCapabilities columnCapabilities(Frame frame, String columnName)
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.public CursorFactory makeCursorFactory(Frame frame)
CursorFactory for the given frame.public FrameComparisonWidget makeComparisonWidget(Frame frame, List<SortColumn> sortColumns)
FrameComparisonWidget for the given frame.
Only possible for frames of type FrameType.ROW_BASED. The provided
sortColumns must be a prefix of signature().Copyright © 2011–2022 The Apache Software Foundation. All rights reserved.