@Test public void testConfigureJob_SpecificData() throws IOException { AvroType<Person> avroSpecificType = Avros.records(Person.class); AvroFileSource<Person> personFileSource = new AvroFileSource<Person>( new Path(tempFile.getAbsolutePath()), avroSpecificType); personFileSource.configureSource(job, -1); assertFalse(job.getConfiguration().getBoolean(AvroJob.INPUT_IS_REFLECT, true)); assertEquals(Person.SCHEMA$.toString(), job.getConfiguration().get(AvroJob.INPUT_SCHEMA)); }
@Override public String toString() { return "Avro(" + path.toString() + ")"; }
AvroFileSource extends FileSourceImpl<T> implements ReadableSource<T> { @Override public String toString() { return "Avro(" + path.toString() + ")"; } }
AvroFileSource extends FileSourceImpl<T> implements ReadableSource<T> { @Override public String toString() { return "Avro(" + path.toString() + ")"; } AvroFileSource(Path path, AvroType<T> ptype); }
AvroFileSource extends FileSourceImpl<T> implements ReadableSource<T> { @Override public String toString() { return "Avro(" + path.toString() + ")"; } AvroFileSource(Path path, AvroType<T> ptype); @Override String toString(); @Override Iterable<T> read(Configuration conf); }
AvroFileSource extends FileSourceImpl<T> implements ReadableSource<T> { @Override public String toString() { return "Avro(" + path.toString() + ")"; } AvroFileSource(Path path, AvroType<T> ptype); @Override String toString(); @Override Iterable<T> read(Configuration conf);  }