This project has retired. For details please refer to its
Attic page.
FileTargetImpl (Apache Crunch 0.3.0-incubating API)
org.apache.crunch.io.impl
Class FileTargetImpl
java.lang.Object
org.apache.crunch.io.impl.FileTargetImpl
- All Implemented Interfaces:
- MapReduceTarget, PathTarget, Target
- Direct Known Subclasses:
- AvroFileTarget, SeqFileTarget, TextFileTarget
public class FileTargetImpl
- extends Object
- implements PathTarget
Constructor Summary |
FileTargetImpl(org.apache.hadoop.fs.Path path,
Class<? extends org.apache.hadoop.mapreduce.lib.output.FileOutputFormat> outputFormatClass)
|
FileTargetImpl
public FileTargetImpl(org.apache.hadoop.fs.Path path,
Class<? extends org.apache.hadoop.mapreduce.lib.output.FileOutputFormat> outputFormatClass)
configureForMapReduce
public void configureForMapReduce(org.apache.hadoop.mapreduce.Job job,
PType<?> ptype,
org.apache.hadoop.fs.Path outputPath,
String name)
- Specified by:
configureForMapReduce
in interface MapReduceTarget
accept
public boolean accept(OutputHandler handler,
PType<?> ptype)
- Specified by:
accept
in interface Target
getPath
public org.apache.hadoop.fs.Path getPath()
- Specified by:
getPath
in interface PathTarget
equals
public boolean equals(Object other)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
asSourceTarget
public <T> SourceTarget<T> asSourceTarget(PType<T> ptype)
- Specified by:
asSourceTarget
in interface Target
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.