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

org.apache.crunch.io.seq
Class SeqFileSource<T>

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

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


Constructor Summary
SeqFileSource(org.apache.hadoop.fs.Path path, PType<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

SeqFileSource

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

read

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

toString

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


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