Package org.springframework.data.hadoop.store.output

Examples of org.springframework.data.hadoop.store.output.DelimitedTextFileWriter


  public void testWriteReadTextOneDelimitedLine() throws IOException {

    List<List<String>> data = new ArrayList<List<String>>();
    data.add(Arrays.asList(DATA09ARRAY));

    DelimitedTextFileWriter writer = new DelimitedTextFileWriter(getConfiguration(), testDefaultPath, null);
    TestUtils.writeData(writer, data);

    DelimitedTextFileReader reader = new DelimitedTextFileReader(getConfiguration(), testDefaultPath, null);
    List<List<String>> list = TestUtils.readDataList(reader);
    assertThat(list, notNullValue());
View Full Code Here


    List<List<String>> data = new ArrayList<List<String>>();
    data.add(Arrays.asList(DATA09ARRAY));
    data.add(Arrays.asList(DATA09ARRAY));
    data.add(Arrays.asList(DATA09ARRAY));

    DelimitedTextFileWriter writer = new DelimitedTextFileWriter(getConfiguration(), testDefaultPath, null);
    TestUtils.writeData(writer, data);

    DelimitedTextFileReader reader = new DelimitedTextFileReader(getConfiguration(), testDefaultPath, null);
    List<List<String>> list = TestUtils.readDataList(reader);
    assertThat(list, notNullValue());
View Full Code Here

TOP

Related Classes of org.springframework.data.hadoop.store.output.DelimitedTextFileWriter

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.