| Modifier and Type | Field and Description |
|---|---|
boolean |
done
Whether this is definitely the last frame of rows.
|
static Meta.Frame |
EMPTY
Frame that has zero rows and is the last frame.
|
static Meta.Frame |
MORE
Frame that has zero rows but may have another frame.
|
long |
offset
Zero-based offset of first row.
|
Iterable<Object> |
rows
The rows.
|
| Constructor and Description |
|---|
Meta.Frame(long offset,
boolean done,
Iterable<Object> rows) |
| Modifier and Type | Method and Description |
|---|---|
static Meta.Frame |
create(int offset,
boolean done,
List<Object> rows) |
boolean |
equals(Object o) |
static Meta.Frame |
fromProto(Common.Frame proto) |
(package private) static Object |
getScalarValue(Common.TypedValue protoElement) |
int |
hashCode() |
(package private) static boolean |
isNewStyleColumn(Common.ColumnValue column)
Determines whether this message contains the new attributes in the
message.
|
(package private) static Object |
parseColumn(Common.ColumnValue column)
Parses the value for a ColumnValue using the separated array and scalar attributes.
|
(package private) static Object |
parseOldStyleColumn(Common.ColumnValue column)
For Calcite 1.5, we made the mistake of using array length to determine when the value for a
column is a scalar or an array.
|
(package private) static Common.TypedValue |
serializeScalar(Object element) |
Common.Frame |
toProto() |
(package private) static void |
validateColumnValue(Common.ColumnValue column)
Verifies that a ColumnValue has only a scalar or array value, not both and not neither.
|
public static final Meta.Frame EMPTY
public static final Meta.Frame MORE
public final long offset
public final boolean done
public static Meta.Frame create(int offset, boolean done, List<Object> rows)
public Common.Frame toProto()
static Common.TypedValue serializeScalar(Object element)
public static Meta.Frame fromProto(Common.Frame proto)
static boolean isNewStyleColumn(Common.ColumnValue column)
hasField trick does not work on repeated fields.column - The protobuf column objectstatic Object parseOldStyleColumn(Common.ColumnValue column)
column - The protobuf ColumnValue objectstatic Object parseColumn(Common.ColumnValue column)
column - The protobuf ColumnValue objectstatic void validateColumnValue(Common.ColumnValue column)
column - The protobuf ColumnValue objectIllegalArgumentException - When the above condition is not metstatic Object getScalarValue(Common.TypedValue protoElement)
Copyright © 2012–2016 The Apache Software Foundation. All rights reserved.