Package org.hivedb

Examples of org.hivedb.Schema


  public Collection<String> listSchemas() {
    return schemata.keySet();
  }

  public Boolean install(String schemaName, String nodeName) {
    Schema s = schemata.get(schemaName);
    String uri = hive.getNode(nodeName).getUri();
    Schemas.install(s, uri);
    return true;
  }
View Full Code Here


    Hive.create(uri(), "split", Types.INTEGER, CachingDataSourceProvider.getInstance(), null);
  }

  @Test
  public void installANewNodeWithSchema() throws Exception {
    Schema schema = WeatherSchema.getInstance();
    String nodeName = "aNewNode";
    getService().install(schema.getName(), nodeName, H2TestCase.TEST_DB, "unecessary for H2", "H2", "na", "na");
    validateSchema(schema, Hive.load(uri(), CachingDataSourceProvider.getInstance()).getNode(nodeName));
  }
View Full Code Here

TOP

Related Classes of org.hivedb.Schema

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.