Class MongoSchemaFactory

java.lang.Object
org.apache.calcite.adapter.mongodb.MongoSchemaFactory
All Implemented Interfaces:
SchemaFactory

public class MongoSchemaFactory extends Object implements SchemaFactory
Factory that creates a MongoSchema.

Allows a custom schema to be included in a model.json file.

  • Constructor Details

    • MongoSchemaFactory

      public MongoSchemaFactory()
  • Method Details

    • create

      public Schema create(SchemaPlus parentSchema, String name, Map<String,Object> operand)
      Description copied from interface: SchemaFactory
      Creates a Schema.
      Specified by:
      create in interface SchemaFactory
      Parameters:
      parentSchema - Parent schema
      name - Name of this schema
      operand - The "operand" JSON property
      Returns:
      Created schema