public class ModelHandler extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ModelHandler.ExtraOperand
Extra operands automatically injected into a
JsonCustomSchema.operand, as extra context for the adapter. |
| Constructor and Description |
|---|
ModelHandler(CalciteConnection connection,
String uri) |
| Modifier and Type | Method and Description |
|---|---|
static void |
addFunctions(SchemaPlus schema,
@Nullable String functionName,
List<String> path,
String className,
@Nullable String methodName,
boolean upCase)
Creates and validates a
ScalarFunctionImpl, and adds it to a
schema. |
static void |
create(SchemaPlus schema,
String functionName,
List<String> path,
String className,
String methodName)
|
protected Map<String,Object> |
operandMap(@Nullable JsonSchema jsonSchema,
@Nullable Map<String,Object> operand)
Adds extra entries to an operand to a custom schema.
|
void |
visit(JsonColumn jsonColumn) |
void |
visit(JsonCustomSchema jsonSchema) |
void |
visit(JsonCustomTable jsonTable) |
void |
visit(JsonFunction jsonFunction) |
void |
visit(JsonJdbcSchema jsonSchema) |
void |
visit(JsonLattice jsonLattice) |
void |
visit(JsonMapSchema jsonSchema) |
void |
visit(JsonMaterialization jsonMaterialization) |
void |
visit(JsonMeasure jsonMeasure) |
void |
visit(JsonRoot jsonRoot) |
void |
visit(JsonTile jsonTile) |
void |
visit(JsonType jsonType) |
void |
visit(JsonView jsonView) |
public ModelHandler(CalciteConnection connection, String uri) throws IOException
IOException@Deprecated public static void create(SchemaPlus schema, String functionName, List<String> path, String className, String methodName)
public static void addFunctions(SchemaPlus schema, @Nullable String functionName, List<String> path, String className, @Nullable String methodName, boolean upCase)
ScalarFunctionImpl, and adds it to a
schema. If methodName is "*", may add more than one function.schema - Schema to add tofunctionName - Name of function; null to derived from method namepath - Path to look for functionsclassName - Class to inspect for methods that may be user-defined
functionsmethodName - Method name;
null means use the class as a UDF;
"*" means add all methodsupCase - Whether to convert method names to upper case, so that they
can be called without using quotespublic void visit(JsonRoot jsonRoot)
public void visit(JsonMapSchema jsonSchema)
public void visit(JsonCustomSchema jsonSchema)
protected Map<String,Object> operandMap(@Nullable JsonSchema jsonSchema, @Nullable Map<String,Object> operand)
public void visit(JsonJdbcSchema jsonSchema)
public void visit(JsonMaterialization jsonMaterialization)
public void visit(JsonLattice jsonLattice)
public void visit(JsonCustomTable jsonTable)
public void visit(JsonColumn jsonColumn)
public void visit(JsonView jsonView)
public void visit(JsonType jsonType)
public void visit(JsonFunction jsonFunction)
public void visit(JsonMeasure jsonMeasure)
public void visit(JsonTile jsonTile)
Copyright © 2012-2022 Apache Software Foundation. All Rights Reserved.