org.apache.lens.lib.query
Class LensFileOutputFormat.LensRowWriter
java.lang.Object
org.apache.lens.lib.query.LensFileOutputFormat.LensRowWriter
- All Implemented Interfaces:
- org.apache.hadoop.mapred.RecordWriter<org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.Text>
- Enclosing class:
- LensFileOutputFormat
public static class LensFileOutputFormat.LensRowWriter
- extends Object
- implements org.apache.hadoop.mapred.RecordWriter<org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.Text>
The Class LensRowWriter.
LensFileOutputFormat.LensRowWriter
public LensFileOutputFormat.LensRowWriter(DataOutputStream out,
String encoding,
org.apache.hadoop.fs.Path tmpPath,
String extn)
- Instantiates a new lens row writer.
- Parameters:
out
- the outencoding
- the encodingtmpPath
- the tmp pathextn
- the extn
LensFileOutputFormat.LensRowWriter
public LensFileOutputFormat.LensRowWriter(DataOutputStream out)
- Instantiates a new lens row writer.
- Parameters:
out
- the out
write
public void write(org.apache.hadoop.io.NullWritable key,
org.apache.hadoop.io.Text value)
throws IOException
- Specified by:
write
in interface org.apache.hadoop.mapred.RecordWriter<org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.Text>
- Throws:
IOException
close
public void close(org.apache.hadoop.mapred.Reporter reporter)
throws IOException
- Specified by:
close
in interface org.apache.hadoop.mapred.RecordWriter<org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.Text>
- Throws:
IOException
getTmpPath
public org.apache.hadoop.fs.Path getTmpPath()
getExtn
public String getExtn()
getEncoding
public String getEncoding()
Copyright © 2014–2015 Apache Software Foundation. All rights reserved.