Search in sources :

Example 1 with LazyPlume

use of com.tdunning.plume.local.lazy.LazyPlume in project Plume by tdunning.

the class WordCountTest method lazyAvroWordCount.

@Test
public void lazyAvroWordCount() throws IOException {
    Plume p = new LazyPlume();
    String file = Resources.getResource("simple-text.avro").getPath();
    countWords(p.readAvroFile(file, strings()));
}
Also used : LazyPlume(com.tdunning.plume.local.lazy.LazyPlume) LazyPlume(com.tdunning.plume.local.lazy.LazyPlume) LocalPlume(com.tdunning.plume.local.eager.LocalPlume) Test(org.junit.Test)

Aggregations

LocalPlume (com.tdunning.plume.local.eager.LocalPlume)1 LazyPlume (com.tdunning.plume.local.lazy.LazyPlume)1 Test (org.junit.Test)1