com.cloudera.crunch.io.text
Class TextFileSource<T>
java.lang.Object
com.cloudera.crunch.io.impl.FileSourceImpl<T>
com.cloudera.crunch.io.text.TextFileSource<T>
- All Implemented Interfaces:
- ReadableSource<T>, Source<T>
public class TextFileSource<T>
- extends FileSourceImpl<T>
- implements ReadableSource<T>
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)
|
TextFileSource
public TextFileSource(org.apache.hadoop.fs.Path path,
PType<T> ptype)
getSize
public long getSize(org.apache.hadoop.conf.Configuration conf)
- Description copied from interface:
Source
- Returns the number of bytes in this
Source
.
- Specified by:
getSize
in interface Source<T>
- Overrides:
getSize
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. All Rights Reserved.