ml.shifu.guagua.mapreduce
类 GuaguaLineRecordReader

java.lang.Object
  继承者 ml.shifu.guagua.mapreduce.GuaguaLineRecordReader
所有已实现的接口:
ml.shifu.guagua.io.GuaguaRecordReader<GuaguaWritableAdapter<org.apache.hadoop.io.LongWritable>,GuaguaWritableAdapter<org.apache.hadoop.io.Text>>

public class GuaguaLineRecordReader
extends Object
implements ml.shifu.guagua.io.GuaguaRecordReader<GuaguaWritableAdapter<org.apache.hadoop.io.LongWritable>,GuaguaWritableAdapter<org.apache.hadoop.io.Text>>

Copy from LineRecordReader but to support GuaguaRecordReader interface.


构造方法摘要
GuaguaLineRecordReader()
           
 
方法摘要
 void close()
           
 GuaguaWritableAdapter<org.apache.hadoop.io.LongWritable> getCurrentKey()
           
 GuaguaWritableAdapter<org.apache.hadoop.io.Text> getCurrentValue()
           
 float getProgress()
          Get the progress within the split
 void initialize(ml.shifu.guagua.io.GuaguaFileSplit genericSplit)
           
 boolean nextKeyValue()
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

GuaguaLineRecordReader

public GuaguaLineRecordReader()
方法详细信息

initialize

public void initialize(ml.shifu.guagua.io.GuaguaFileSplit genericSplit)
                throws IOException
指定者:
接口 ml.shifu.guagua.io.GuaguaRecordReader<GuaguaWritableAdapter<org.apache.hadoop.io.LongWritable>,GuaguaWritableAdapter<org.apache.hadoop.io.Text>> 中的 initialize
抛出:
IOException

nextKeyValue

public boolean nextKeyValue()
                     throws IOException
指定者:
接口 ml.shifu.guagua.io.GuaguaRecordReader<GuaguaWritableAdapter<org.apache.hadoop.io.LongWritable>,GuaguaWritableAdapter<org.apache.hadoop.io.Text>> 中的 nextKeyValue
抛出:
IOException

getCurrentKey

public GuaguaWritableAdapter<org.apache.hadoop.io.LongWritable> getCurrentKey()
指定者:
接口 ml.shifu.guagua.io.GuaguaRecordReader<GuaguaWritableAdapter<org.apache.hadoop.io.LongWritable>,GuaguaWritableAdapter<org.apache.hadoop.io.Text>> 中的 getCurrentKey

getCurrentValue

public GuaguaWritableAdapter<org.apache.hadoop.io.Text> getCurrentValue()
指定者:
接口 ml.shifu.guagua.io.GuaguaRecordReader<GuaguaWritableAdapter<org.apache.hadoop.io.LongWritable>,GuaguaWritableAdapter<org.apache.hadoop.io.Text>> 中的 getCurrentValue

getProgress

public float getProgress()
Get the progress within the split


close

public void close()
           throws IOException
指定者:
接口 ml.shifu.guagua.io.GuaguaRecordReader<GuaguaWritableAdapter<org.apache.hadoop.io.LongWritable>,GuaguaWritableAdapter<org.apache.hadoop.io.Text>> 中的 close
抛出:
IOException


Copyright © 2014. All Rights Reserved.