protected final void testGrouping(int num) throws IOException { MapDriver<LongWritable, T, NodeWritable, T> driver = this.getMapDriver(); this.generateData(driver, num); driver.runTest(); }
/** * Runs a node count test * * @param num * Number of tuples to generate * @throws IOException */ protected void testNodeCount(int num) throws IOException { MapDriver<LongWritable, T, NodeWritable, LongWritable> driver = this.getMapDriver(); this.generateData(driver, num); driver.runTest(); }
protected final void testFilterValid(int num) throws IOException { MapDriver<LongWritable, T, LongWritable, T> driver = this.getMapDriver(); this.generateData(driver, num); driver.runTest(); }
protected final void testSplitToNodes(int num) throws IOException { MapDriver<LongWritable, T, T, NodeWritable> driver = this.getMapDriver(); this.generateData(driver, num); driver.runTest(); }
protected final void testSplitToNodes(int num) throws IOException { MapDriver<LongWritable, T, LongWritable, NodeWritable> driver = this.getMapDriver(); this.generateData(driver, num); driver.runTest(); }
/** * Tests quads to triples conversion * * @throws IOException */ @Test public void triples_to_quads_mapper_03() throws IOException { MapDriver<LongWritable, TripleWritable, LongWritable, QuadWritable> driver = this.getMapDriver(); this.generateData(driver, 1000); driver.runTest(); }
/** * Tests quads to triples conversion * * @throws IOException */ @Test public void triples_to_quads_mapper_02() throws IOException { MapDriver<LongWritable, TripleWritable, LongWritable, QuadWritable> driver = this.getMapDriver(); this.generateData(driver, 100); driver.runTest(); }
/** * Tests quads to triples conversion * * @throws IOException */ @Test public void triples_to_quads_mapper_03() throws IOException { MapDriver<LongWritable, TripleWritable, LongWritable, QuadWritable> driver = this.getMapDriver(); this.generateData(driver, 1000); driver.runTest(); }
/** * Tests quads to triples conversion * * @throws IOException */ @Test public void quads_to_triples_mapper_04() throws IOException { MapDriver<LongWritable, QuadWritable, LongWritable, TripleWritable> driver = this.getMapDriver(); this.generateData(driver, 10000); driver.runTest(); } }
/** * Tests quads to triples conversion * * @throws IOException */ @Test public void triples_to_quads_mapper_04() throws IOException { MapDriver<LongWritable, TripleWritable, LongWritable, QuadWritable> driver = this.getMapDriver(); this.generateData(driver, 10000); driver.runTest(); } }
/** * Tests quads to triples conversion * * @throws IOException */ @Test public void triples_to_quads_mapper_04() throws IOException { MapDriver<LongWritable, TripleWritable, LongWritable, QuadWritable> driver = this.getMapDriver(); this.generateData(driver, 10000); driver.runTest(); } }
/** * Tests quads to triples conversion * * @throws IOException */ @Test public void triples_to_quads_mapper_02() throws IOException { MapDriver<LongWritable, TripleWritable, LongWritable, QuadWritable> driver = this.getMapDriver(); this.generateData(driver, 100); driver.runTest(); }
/** * Tests quads to triples conversion * * @throws IOException */ @Test public void quads_to_triples_mapper_02() throws IOException { MapDriver<LongWritable, QuadWritable, LongWritable, TripleWritable> driver = this.getMapDriver(); this.generateData(driver, 100); driver.runTest(); }
/** * Tests quads to triples conversion * * @throws IOException */ @Test public void quads_to_triples_mapper_03() throws IOException { MapDriver<LongWritable, QuadWritable, LongWritable, TripleWritable> driver = this.getMapDriver(); this.generateData(driver, 1000); driver.runTest(); }
/** * Tests quads to triples conversion * * @throws IOException */ @Test public void triples_to_quads_mapper_01() throws IOException { MapDriver<LongWritable, TripleWritable, LongWritable, QuadWritable> driver = this.getMapDriver(); Triple t = new Triple(NodeFactory.createURI("http://s"), NodeFactory.createURI("http://p"), NodeFactory.createLiteral("test")); Quad q = new Quad(Quad.defaultGraphNodeGenerated, t); driver.withInput(new Pair<LongWritable, TripleWritable>(new LongWritable(1), new TripleWritable(t))).withOutput( new Pair<LongWritable, QuadWritable>(new LongWritable(1), new QuadWritable(q))); driver.runTest(); }
/** * Tests quads to triples conversion * * @throws IOException */ @Test public void quads_to_triples_mapper_01() throws IOException { MapDriver<LongWritable, QuadWritable, LongWritable, TripleWritable> driver = this.getMapDriver(); Triple t = new Triple(NodeFactory.createURI("http://s"), NodeFactory.createURI("http://p"), NodeFactory.createLiteral("test")); Quad q = new Quad(Quad.defaultGraphNodeGenerated, t); driver.withInput(new Pair<LongWritable, QuadWritable>(new LongWritable(1), new QuadWritable(q))).withOutput( new Pair<LongWritable, TripleWritable>(new LongWritable(1), new TripleWritable(t))); driver.runTest(); }
/** * Tests quads to triples conversion * * @throws IOException */ @Test public void triples_to_quads_mapper_01() throws IOException { MapDriver<LongWritable, TripleWritable, LongWritable, QuadWritable> driver = this.getMapDriver(); Triple t = new Triple(NodeFactory.createURI("http://s"), NodeFactory.createURI("http://p"), NodeFactory.createLiteral("test")); Quad q = new Quad(t.getSubject(), t); driver.withInput(new Pair<LongWritable, TripleWritable>(new LongWritable(1), new TripleWritable(t))).withOutput( new Pair<LongWritable, QuadWritable>(new LongWritable(1), new QuadWritable(q))); driver.runTest(); }