Class MongoSchemaFactory
- java.lang.Object
-
- org.apache.calcite.adapter.mongodb.MongoSchemaFactory
-
- All Implemented Interfaces:
SchemaFactory
public class MongoSchemaFactory extends java.lang.Object implements SchemaFactory
Factory that creates aMongoSchema
.Allows a custom schema to be included in a model.json file.
-
-
Constructor Summary
Constructors Constructor Description MongoSchemaFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Schema
create(SchemaPlus parentSchema, java.lang.String name, java.util.Map<java.lang.String,java.lang.Object> operand)
Creates a Schema.private com.mongodb.MongoCredential
createCredentials(java.util.Map<java.lang.String,java.lang.Object> map)
-
-
-
Method Detail
-
create
public Schema create(SchemaPlus parentSchema, java.lang.String name, java.util.Map<java.lang.String,java.lang.Object> operand)
Description copied from interface:SchemaFactory
Creates a Schema.- Specified by:
create
in interfaceSchemaFactory
- Parameters:
parentSchema
- Parent schemaname
- Name of this schemaoperand
- The "operand" JSON property- Returns:
- Created schema
-
createCredentials
private com.mongodb.MongoCredential createCredentials(java.util.Map<java.lang.String,java.lang.Object> map)
-
-