Package com.scaleunlimited.cascading.local

Examples of com.scaleunlimited.cascading.local.DirectoryTap


        return new FileTap(new KryoScheme(fields), path, SinkMode.REPLACE);
    }
   
    @Override
    protected Tap<?, ?, ?> makeSolrSink(Fields fields, String path) throws Exception {
        return new DirectoryTap(new SolrScheme(fields, SOLR_CORE_DIR), path);
    }
View Full Code Here


   
    protected void testIndexSink() throws Exception {
        final Fields testFields = new Fields("id", "name", "price", "inStock");
        String out = getTestDir() + "testIndexSink/out";

        DirectoryTap solrSink = new DirectoryTap(new SolrScheme(testFields, SOLR_CORE_DIR), out, SinkMode.REPLACE);
       
        TupleEntryCollector writer = solrSink.openForWrite(new LocalFlowProcess());

        for (int i = 0; i < 100; i++) {
            writer.add(new Tuple(i, "product #" + i, i * 1.0f, true));
        }

View Full Code Here

TOP

Related Classes of com.scaleunlimited.cascading.local.DirectoryTap

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.