public class MLPDataFileRecordReader
extends org.apache.hadoop.mapreduce.RecordReader<java.lang.String[],org.apache.spark.sql.Row>
Modifier and Type | Field and Description |
---|---|
protected MqlArray<java.lang.Double> |
data |
java.lang.String[] |
header |
protected MLPDataFile |
mlpfile |
Pointer<java.lang.Integer> |
nin |
Pointer<java.lang.Integer> |
nout |
protected Pointer<java.lang.Integer> |
size |
Constructor and Description |
---|
MLPDataFileRecordReader() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
java.lang.String[] |
getCurrentKey() |
org.apache.spark.sql.Row |
getCurrentValue() |
float |
getProgress() |
void |
initialize(org.apache.hadoop.mapreduce.InputSplit split,
org.apache.hadoop.mapreduce.TaskAttemptContext context) |
boolean |
nextKeyValue() |
protected MLPDataFile mlpfile
public Pointer<java.lang.Integer> nin
public Pointer<java.lang.Integer> nout
public java.lang.String[] header
protected MqlArray<java.lang.Double> data
protected Pointer<java.lang.Integer> size
public void initialize(org.apache.hadoop.mapreduce.InputSplit split, org.apache.hadoop.mapreduce.TaskAttemptContext context) throws java.io.IOException, java.lang.InterruptedException
initialize
in class org.apache.hadoop.mapreduce.RecordReader<java.lang.String[],org.apache.spark.sql.Row>
java.io.IOException
java.lang.InterruptedException
public boolean nextKeyValue() throws java.io.IOException, java.lang.InterruptedException
nextKeyValue
in class org.apache.hadoop.mapreduce.RecordReader<java.lang.String[],org.apache.spark.sql.Row>
java.io.IOException
java.lang.InterruptedException
public java.lang.String[] getCurrentKey() throws java.io.IOException, java.lang.InterruptedException
getCurrentKey
in class org.apache.hadoop.mapreduce.RecordReader<java.lang.String[],org.apache.spark.sql.Row>
java.io.IOException
java.lang.InterruptedException
public org.apache.spark.sql.Row getCurrentValue() throws java.io.IOException, java.lang.InterruptedException
getCurrentValue
in class org.apache.hadoop.mapreduce.RecordReader<java.lang.String[],org.apache.spark.sql.Row>
java.io.IOException
java.lang.InterruptedException
public float getProgress() throws java.io.IOException, java.lang.InterruptedException
getProgress
in class org.apache.hadoop.mapreduce.RecordReader<java.lang.String[],org.apache.spark.sql.Row>
java.io.IOException
java.lang.InterruptedException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class org.apache.hadoop.mapreduce.RecordReader<java.lang.String[],org.apache.spark.sql.Row>
java.io.IOException