Package org.apache.pig.impl.io

Examples of org.apache.pig.impl.io.BufferedPositionedInputStream


    public void testLoadFromBindTo() throws Exception {
        String filename = TestHelper.createTempFile(data, " ");
        DummyRegExLoader dummyRegExLoader = new DummyRegExLoader();
        PigContext pigContext = new PigContext(ExecType.LOCAL, new Properties());
        InputStream inputStream = FileLocalizer.open(filename, pigContext);
        dummyRegExLoader.bindTo(filename, new BufferedPositionedInputStream(inputStream), 0, Long.MAX_VALUE);

        ArrayList<String[]> expected = TestHelper.getExpected(data, pattern);
        int tupleCount = 0;

        while (true) {
View Full Code Here

TOP

Related Classes of org.apache.pig.impl.io.BufferedPositionedInputStream

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.