This project has retired. For details please refer to its
Attic page.
SeqFileTarget (Apache Crunch 0.9.0 API)
org.apache.crunch.io.seq
Class SeqFileTarget
java.lang.Object
org.apache.crunch.io.impl.FileTargetImpl
org.apache.crunch.io.seq.SeqFileTarget
- All Implemented Interfaces:
- MapReduceTarget, PathTarget, Target
public class SeqFileTarget
- extends FileTargetImpl
|
Method Summary |
|
asSourceTarget(PType<T> ptype)
Attempt to create the SourceTarget type that corresponds to this Target
for the given PType, if possible. |
String |
toString()
|
| Methods inherited from class org.apache.crunch.io.impl.FileTargetImpl |
accept, configureForMapReduce, configureForMapReduce, configureForMapReduce, equals, extractPartitionNumber, getConverter, getDestFile, getFileNamingScheme, getPath, getSourcePattern, getSuccessIndicator, handleExisting, handleOutputs, hashCode, isCompatible, outputConf |
SeqFileTarget
public SeqFileTarget(String path)
SeqFileTarget
public SeqFileTarget(org.apache.hadoop.fs.Path path)
SeqFileTarget
public SeqFileTarget(org.apache.hadoop.fs.Path path,
FileNamingScheme fileNamingScheme)
toString
public String toString()
- Overrides:
toString in class FileTargetImpl
asSourceTarget
public <T> SourceTarget<T> asSourceTarget(PType<T> ptype)
- Description copied from interface:
Target
- Attempt to create the
SourceTarget type that corresponds to this Target
for the given PType, if possible. If it is not possible, return null.
- Specified by:
asSourceTarget in interface Target- Overrides:
asSourceTarget in class FileTargetImpl
- Parameters:
ptype - The PType to use in constructing the SourceTarget
- Returns:
- A new
SourceTarget or null if such a SourceTarget does not exist
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.