Modifier and Type | Field and Description |
---|---|
static Meta.CursorFactory |
ARRAY |
Class |
clazz |
List<String> |
fieldNames |
List<Field> |
fields |
static Meta.CursorFactory |
LIST |
static Meta.CursorFactory |
OBJECT |
Meta.Style |
style |
Modifier and Type | Method and Description |
---|---|
static Meta.CursorFactory |
create(Meta.Style style,
Class clazz,
List<String> fieldNames) |
static Meta.CursorFactory |
deduce(List<ColumnMetaData> columns,
Class resultClazz)
Deduces the appropriate
CursorFactory for accessing the underlying
result set. |
boolean |
equals(Object o) |
static Meta.CursorFactory |
fromProto(org.apache.calcite.avatica.proto.Common.CursorFactory proto) |
int |
hashCode() |
static Meta.CursorFactory |
map(List<String> fieldNames) |
static Meta.CursorFactory |
record(Class resultClazz)
Deprecated.
|
static Meta.CursorFactory |
record(Class resultClass,
List<Field> fields,
List<String> fieldNames) |
org.apache.calcite.avatica.proto.Common.CursorFactory |
toProto() |
public final Meta.Style style
public final Class clazz
public static final Meta.CursorFactory OBJECT
public static final Meta.CursorFactory ARRAY
public static final Meta.CursorFactory LIST
public static Meta.CursorFactory create(Meta.Style style, Class clazz, List<String> fieldNames)
@Deprecated public static Meta.CursorFactory record(Class resultClazz)
record(Class, List, List)
public static Meta.CursorFactory record(Class resultClass, List<Field> fields, List<String> fieldNames)
public static Meta.CursorFactory map(List<String> fieldNames)
public static Meta.CursorFactory deduce(List<ColumnMetaData> columns, Class resultClazz)
CursorFactory
for accessing the underlying
result set. For result sets composed by records, resultClazz
must
be not null, and each field name in columns
must match one of its
public fields.columns
- The columns metadata for the result setresultClazz
- The class representing the records, if anyCursorFactory
for the underlying result setRuntimeException
- if the field name validation failspublic org.apache.calcite.avatica.proto.Common.CursorFactory toProto()
public static Meta.CursorFactory fromProto(org.apache.calcite.avatica.proto.Common.CursorFactory proto)
Copyright © 2012-2024 Apache Software Foundation. All Rights Reserved.