congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
CloneSchema.create
Code IndexAdd Tabnine to your IDE (free)

How to use
create
method
in
net.hydromatic.optiq.impl.clone.CloneSchema

Best Java code snippets using net.hydromatic.optiq.impl.clone.CloneSchema.create (Showing top 3 results out of 315)

origin: net.hydromatic/optiq

 public Schema create(
   MutableSchema parentSchema,
   String name,
   Map<String, Object> operand) {
  JdbcSchema jdbcSchema =
    JdbcSchema.create(parentSchema, name + "$source", operand);
  return CloneSchema.create(parentSchema, name, jdbcSchema);
 }
}
origin: net.hydromatic/optiq

@Test public void testCloneSchema()
  throws ClassNotFoundException, SQLException {
 final OptiqConnection connection = JdbcTest.getConnection(null, false);
 Schema foodmart = connection.getRootSchema().getSubSchema("foodmart");
 CloneSchema.create(connection.getRootSchema(), "foodmart2", foodmart);
 Statement statement = connection.createStatement();
 ResultSet resultSet =
   statement.executeQuery(
     "select count(*) from \"foodmart2\".\"time_by_day\"");
 assertTrue(resultSet.next());
 assertEquals(730, resultSet.getInt(1));
 resultSet.close();
 connection.close();
}
origin: net.hydromatic/optiq

    "foodmart");
if (withClone) {
 CloneSchema.create(
   optiqConnection.getRootSchema(), "foodmart2", foodmart);
net.hydromatic.optiq.impl.cloneCloneSchemacreate

Javadoc

Creates a CloneSchema within another schema.

Popular methods of CloneSchema

  • <init>
    Creates a CloneSchema.
  • createCloneTable
  • addTable

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setContentView (Activity)
  • setRequestProperty (URLConnection)
  • compareTo (BigDecimal)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Notification (javax.management)
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now