|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.crunch.io.impl.FileSourceImpl<T>
org.apache.crunch.io.text.TextFileSource<T>
public class TextFileSource<T>
Constructor Summary | |
---|---|
TextFileSource(org.apache.hadoop.fs.Path path,
PType<T> ptype)
|
Method Summary | |
---|---|
long |
getSize(org.apache.hadoop.conf.Configuration conf)
Returns the number of bytes in this Source . |
Iterable<T> |
read(org.apache.hadoop.conf.Configuration conf)
|
String |
toString()
|
Methods inherited from class org.apache.crunch.io.impl.FileSourceImpl |
---|
configureSource, equals, getType, hashCode |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.crunch.Source |
---|
configureSource, getType |
Constructor Detail |
---|
public TextFileSource(org.apache.hadoop.fs.Path path, PType<T> ptype)
Method Detail |
---|
public long getSize(org.apache.hadoop.conf.Configuration conf)
Source
Source
.
getSize
in interface Source<T>
getSize
in class FileSourceImpl<T>
public String toString()
toString
in class FileSourceImpl<T>
public Iterable<T> read(org.apache.hadoop.conf.Configuration conf) throws IOException
read
in interface ReadableSource<T>
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |