Examples of TableBuilder


Examples of cascading.lingual.catalog.builder.TableBuilder

    String tableName = getOptions().getTableName();

    SchemaDef schemaDef = getSchemaDefChecked( catalog, schemaName, true );
    TableDef tableDef = schemaDef.getTableChecked( tableName );

    return new TableBuilder().format( tableDef );
    }
View Full Code Here

Examples of com.dbxml.xml.dtsm.TableBuilder

   }

   public final DocumentTable process() throws DTSMException {
      try {
         if ( symbols != null )
            builder = new TableBuilder(symbols);
         else
            builder = new TableBuilder();
         handler = new DTSMContentHandler(builder);
         SAXHelper.parse(source, handler);

         SAXException e = handler.getException();
         if ( e != null )
View Full Code Here

Examples of com.dbxml.xml.dtsm.TableBuilder

   public boolean next() throws QueryException {
      checkOpened();

      if ( nextKey() != null ) {
         try {
            TableBuilder tb = new TableBuilder(context.getSymbols());
            tb.addEntry(Constants.OBJ_TEXT, EmptyBytes);
            dt = tb.buildDocumentTable();
            return true;
         }
         catch ( DBException e ) {
            throw new ProcessingException(e);
         }
View Full Code Here

Examples of com.dbxml.xml.dtsm.TableBuilder

      super(col);
   }

   private ContentHandler putDocument(Transaction tx, Object key) throws DBException {
      SymbolTable symbols = col.getSymbols();
      TableBuilder builder = new TableBuilder(symbols);
      return new AdapterContentHandler(tx, key, builder);
   }
View Full Code Here

Examples of com.splout.db.hadoop.TableBuilder

  private static Schema SCHEMA_2 = new Schema("schema2", Fields.parse("id2:string, value2:string"));
  private static Schema SCHEMA_3 = new Schema("schema3", Fields.parse("id3:int, value3:string"));

  @Test
  public void testCorrectTablespace() throws TableBuilderException, TablespaceBuilderException {
    Table table1 = new TableBuilder(SCHEMA_1).addCSVTextFile("foo1.txt").partitionBy("id1").build();
    Table table2 = new TableBuilder(SCHEMA_2).addCSVTextFile("foo2.txt").partitionBy("id2").build();

    TablespaceBuilder builder = new TablespaceBuilder();
    builder.add(table1);
    builder.add(table2);
View Full Code Here

Examples of com.splout.db.hadoop.TableBuilder

    builder.build();
  }

  @Test
  public void testCorrectTablespaceMultiplePartitionBy() throws TableBuilderException, TablespaceBuilderException {
    Table table1 = new TableBuilder(SCHEMA_1).addCSVTextFile("foo1.txt").partitionBy("id1", "value1").build();
    Table table2 = new TableBuilder(SCHEMA_2).addCSVTextFile("foo2.txt").partitionBy("id2", "value2").build();

    TablespaceBuilder builder = new TablespaceBuilder();
    builder.add(table1);
    builder.add(table2);
View Full Code Here

Examples of com.splout.db.hadoop.TableBuilder

    builder.build();
  }
 
  @Test
  public void testCorrectTablespaceWithReplicated() throws TableBuilderException, TablespaceBuilderException {
    Table table1 = new TableBuilder(SCHEMA_1).addCSVTextFile("foo1.txt").partitionBy("id1").build();
    Table table2 = new TableBuilder(SCHEMA_2).addCSVTextFile("foo2.txt").partitionBy("id2").build();
    Table table3 = new TableBuilder(SCHEMA_3).addCSVTextFile("foo3.txt").replicateToAll().build();

    TablespaceBuilder builder = new TablespaceBuilder();
    builder.add(table1);
    builder.add(table2);
    builder.add(table3);
View Full Code Here

Examples of com.splout.db.hadoop.TableBuilder

  // ---- Number of partitions must be specified for Tablespace ---- //
 
  @Test(expected=TablespaceBuilderException.class)
  public void testMissingNPartitions() throws TableBuilderException, TablespaceBuilderException {
    Table table1 = new TableBuilder(SCHEMA_1).addCSVTextFile("foo1.txt").partitionBy("id1").build();
    Table table2 = new TableBuilder(SCHEMA_2).addCSVTextFile("foo2.txt").partitionBy("id2").build();

    TablespaceBuilder builder = new TablespaceBuilder();
    builder.add(table1);
    builder.add(table2);
View Full Code Here

Examples of com.splout.db.hadoop.TableBuilder

 
  // ---- At least one table must be partitioned ---- //
 
  @Test(expected=TablespaceBuilderException.class)
  public void testNoPartitionTable() throws TableBuilderException, TablespaceBuilderException {
    Table table1 = new TableBuilder(SCHEMA_1).addCSVTextFile("foo1.txt").replicateToAll().build();
    Table table2 = new TableBuilder(SCHEMA_2).addCSVTextFile("foo2.txt").replicateToAll().build();

    TablespaceBuilder builder = new TablespaceBuilder();
    builder.add(table1);
    builder.add(table2);
   
View Full Code Here

Examples of com.splout.db.hadoop.TableBuilder

 
  // ---- There must not be collision between table names (schema names) ---- //
 
  @Test(expected=TablespaceBuilderException.class)
  public void testTableNameCollision() throws TableBuilderException, TablespaceBuilderException {
    Table table1 = new TableBuilder(SCHEMA_1).addCSVTextFile("foo1.txt").partitionBy("id1").build();
    Table table2 = new TableBuilder(SCHEMA_1).addCSVTextFile("foo2.txt").partitionBy("id1").build();
   
    TablespaceBuilder builder = new TablespaceBuilder();
    builder.add(table1);
    builder.add(table2);
   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.