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
  extended by org.apache.crunch.io.impl.FileTargetImpl
      extended by org.apache.crunch.io.seq.SeqFileTarget
All Implemented Interfaces:
MapReduceTarget, PathTarget, Target

public class SeqFileTarget
extends FileTargetImpl


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.crunch.Target
Target.WriteMode
 
Field Summary
 
Fields inherited from class org.apache.crunch.io.impl.FileTargetImpl
path
 
Constructor Summary
SeqFileTarget(org.apache.hadoop.fs.Path path)
           
SeqFileTarget(org.apache.hadoop.fs.Path path, FileNamingScheme fileNamingScheme)
           
SeqFileTarget(String path)
           
 
Method Summary
<T> SourceTarget<T>
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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.