Package org.apache.calcite.avatica
Class Meta.CursorFactory
java.lang.Object
org.apache.calcite.avatica.Meta.CursorFactory
- Enclosing interface:
- Meta
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Meta.CursorFactoryfinal Classstatic final Meta.CursorFactorystatic final Meta.CursorFactoryfinal Meta.Style -
Method Summary
Modifier and TypeMethodDescriptionstatic Meta.CursorFactorycreate(Meta.Style style, Class clazz, List<String> fieldNames) static Meta.CursorFactorydeduce(List<ColumnMetaData> columns, Class resultClazz) Deduces the appropriateCursorFactoryfor accessing the underlying result set.booleanstatic Meta.CursorFactoryfromProto(org.apache.calcite.avatica.proto.Common.CursorFactory proto) inthashCode()static Meta.CursorFactorystatic Meta.CursorFactoryDeprecated.static Meta.CursorFactoryorg.apache.calcite.avatica.proto.Common.CursorFactorytoProto()
-
Field Details
-
style
-
clazz
-
fields
-
fieldNames
-
OBJECT
-
ARRAY
-
LIST
-
-
Method Details
-
create
-
record
Deprecated. -
record
-
map
-
deduce
Deduces the appropriateCursorFactoryfor accessing the underlying result set. For result sets composed by records,resultClazzmust be not null, and each field name incolumnsmust match one of its public fields.- Parameters:
columns- The columns metadata for the result setresultClazz- The class representing the records, if any- Returns:
- the appropriate
CursorFactoryfor the underlying result set - Throws:
RuntimeException- if the field name validation fails
-
toProto
public org.apache.calcite.avatica.proto.Common.CursorFactory toProto() -
fromProto
public static Meta.CursorFactory fromProto(org.apache.calcite.avatica.proto.Common.CursorFactory proto) -
hashCode
public int hashCode() -
equals
-
record(Class, List, List)