All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.fzakaria.calcite.adapter.git.GitSchemaFactory Maven / Gradle / Ivy

The newest version!
package com.github.fzakaria.calcite.adapter.git;


import org.apache.calcite.schema.Schema;
import org.apache.calcite.schema.SchemaFactory;
import org.apache.calcite.schema.SchemaPlus;

import java.io.File;
import java.util.Map;

/**
 * Factory that creates a {@link GitSchemaFactory}.
 *
 * 

Allows a custom schema to be included in a model.json * file. */ public class GitSchemaFactory implements SchemaFactory { private GitSchemaFactory() { } @Override public Schema create(SchemaPlus parentSchema, String name, Map operand) { final String directory = (String) operand.get("directory"); final File directoryFile = new File(directory); return new GitSchema( directoryFile ); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy