This project has retired. For details please refer to its Attic page.
AvroFileSource (Apache Crunch 0.3.0-incubating API)

org.apache.crunch.io.avro
Class AvroFileSource<T>

java.lang.Object
  extended by org.apache.crunch.io.impl.FileSourceImpl<T>
      extended by org.apache.crunch.io.avro.AvroFileSource<T>
All Implemented Interfaces:
ReadableSource<T>, Source<T>

public class AvroFileSource<T>
extends FileSourceImpl<T>
implements ReadableSource<T>


Constructor Summary
AvroFileSource(org.apache.hadoop.fs.Path path, AvroType<T> ptype)
           
 
Method Summary
 Iterable<T> read(org.apache.hadoop.conf.Configuration conf)
           
 String toString()
           
 
Methods inherited from class org.apache.crunch.io.impl.FileSourceImpl
configureSource, equals, getSize, getType, hashCode
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.crunch.Source
configureSource, getSize, getType
 

Constructor Detail

AvroFileSource

public AvroFileSource(org.apache.hadoop.fs.Path path,
                      AvroType<T> ptype)
Method Detail

toString

public String toString()
Overrides:
toString in class FileSourceImpl<T>

read

public Iterable<T> read(org.apache.hadoop.conf.Configuration conf)
                 throws IOException
Specified by:
read in interface ReadableSource<T>
Throws:
IOException


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.