Package com.splout.db.hadoop

Examples of com.splout.db.hadoop.TablespaceBuilder.build()


    builder.add(table1);
    builder.add(table2);

    builder.setNPartitions(2);

    builder.build();
  }

  @Test
  public void testCorrectTablespaceMultiplePartitionBy() throws TableBuilderException, TablespaceBuilderException {
    Table table1 = new TableBuilder(SCHEMA_1).addCSVTextFile("foo1.txt").partitionBy("id1", "value1").build();
View Full Code Here


    builder.add(table1);
    builder.add(table2);

    builder.setNPartitions(2);

    builder.build();
  }
 
  @Test
  public void testCorrectTablespaceWithReplicated() throws TableBuilderException, TablespaceBuilderException {
    Table table1 = new TableBuilder(SCHEMA_1).addCSVTextFile("foo1.txt").partitionBy("id1").build();
View Full Code Here

    builder.add(table2);
    builder.add(table3);

    builder.setNPartitions(2);

    builder.build();
  }

  // ---- Number of partitions must be specified for Tablespace ---- //
 
  @Test(expected=TablespaceBuilderException.class)
View Full Code Here

    TablespaceBuilder builder = new TablespaceBuilder();
    builder.add(table1);
    builder.add(table2);

    builder.build();
  }
 
  // ---- At least one table must be partitioned ---- //
 
  @Test(expected=TablespaceBuilderException.class)
View Full Code Here

    builder.add(table1);
    builder.add(table2);
   
    builder.setNPartitions(2);

    builder.build();
  }
 
  // ---- There must not be collision between table names (schema names) ---- //
 
  @Test(expected=TablespaceBuilderException.class)
View Full Code Here

    builder.add(table1);
    builder.add(table2);
   
    builder.setNPartitions(2);
   
    builder.build();
  }
   
  // ---- Partition field must be of same kind across tables ---- //
 
  @Test(expected=TablespaceBuilderException.class)
View Full Code Here

    builder.add(table1);
    builder.add(table2);

    builder.setNPartitions(2);

    builder.build();
  }
 
  @Test(expected=TablespaceBuilderException.class)
  public void testInvalidCoPartitionMultipleFields() throws TableBuilderException, TablespaceBuilderException {
    Table table1 = new TableBuilder(SCHEMA_1).addCSVTextFile("foo1.txt").partitionBy("value1", "id1").build();
View Full Code Here

    builder.add(table1);
    builder.add(table2);

    builder.setNPartitions(2);

    builder.build();
  }
}
View Full Code Here

      if(generateTupleFiles) {
        // we subclass TablespaceGenerator to be able to run the generation without outputting the SQLite stores, for
        // benchmark comparisons.
        // In the future this feature may be useful in general for debugging store creation.
        tablespaceViewBuilder = new TablespaceGenerator(tablespaceBuilder.build(), outPath, this.getClass()) {

          @Override
          public void generateView(Configuration conf, SamplingType samplingType,
              SamplingOptions samplingOptions) throws Exception {
View Full Code Here

            executeViewGeneration(builder);
          }
        };
      } else {
        // ... otherwise a standard TablespaceGenerator is used.
        tablespaceViewBuilder = new TablespaceGenerator(tablespaceBuilder.build(), outPath, this.getClass());
      }

      tablespaceViewBuilder.generateView(getConf(), SamplingType.FULL_SCAN,
          new TupleSampler.FullScanSamplingOptions());
    }
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.