|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectml.shifu.guagua.yarn.GuaguaSequenceRecordReader<KEY,VALUE>
GuaguaSequenceRecordReader
@Deprecated public class GuaguaSequenceRecordReader<KEY extends org.apache.hadoop.io.Writable,VALUE extends org.apache.hadoop.io.Writable>
A reader read HDFS sequence file key by key. The sequence key and value types are both BytesWritable.
Copy some code from SequenceFileRecordReader but to support
GuaguaRecordReader interface.
If use default constructor, user should also call initialize(GuaguaFileSplit) like in below:
this.setRecordReader(new SequenceFileRecordReader(Text.class, Text,class)); this.getRecordReader().initialize(fileSplit);or directly use other constructors:
this.setRecordReader(new SequenceFileRecordReader(fileSplit, Text.class, Text,class));
| 构造方法摘要 | |
|---|---|
GuaguaSequenceRecordReader(Class<? extends org.apache.hadoop.io.Writable> keyClass,
Class<? extends org.apache.hadoop.io.Writable> valueClass)
已过时。 |
|
GuaguaSequenceRecordReader(org.apache.hadoop.conf.Configuration conf,
GuaguaFileSplit split,
Class<? extends org.apache.hadoop.io.Writable> keyClass,
Class<? extends org.apache.hadoop.io.Writable> valueClass)
已过时。 |
|
GuaguaSequenceRecordReader(GuaguaFileSplit split,
Class<? extends org.apache.hadoop.io.Writable> keyClass,
Class<? extends org.apache.hadoop.io.Writable> valueClass)
已过时。 |
|
| 方法摘要 | |
|---|---|
void |
close()
已过时。 |
GuaguaWritableAdapter<KEY> |
getCurrentKey()
已过时。 |
GuaguaWritableAdapter<VALUE> |
getCurrentValue()
已过时。 |
float |
getProgress()
已过时。 Return the progress within the input split |
void |
initialize(GuaguaFileSplit split)
已过时。 |
boolean |
nextKeyValue()
已过时。 |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public GuaguaSequenceRecordReader(Class<? extends org.apache.hadoop.io.Writable> keyClass,
Class<? extends org.apache.hadoop.io.Writable> valueClass)
throws IOException
IOException
public GuaguaSequenceRecordReader(GuaguaFileSplit split,
Class<? extends org.apache.hadoop.io.Writable> keyClass,
Class<? extends org.apache.hadoop.io.Writable> valueClass)
throws IOException
IOException
public GuaguaSequenceRecordReader(org.apache.hadoop.conf.Configuration conf,
GuaguaFileSplit split,
Class<? extends org.apache.hadoop.io.Writable> keyClass,
Class<? extends org.apache.hadoop.io.Writable> valueClass)
throws IOException
IOException| 方法详细信息 |
|---|
public float getProgress()
throws IOException
IOException
public void initialize(GuaguaFileSplit split)
throws IOException
GuaguaRecordReader<GuaguaWritableAdapter<KEY extends org.apache.hadoop.io.Writable>,GuaguaWritableAdapter<VALUE extends org.apache.hadoop.io.Writable>> 中的 initializeIOException
public boolean nextKeyValue()
throws IOException
GuaguaRecordReader<GuaguaWritableAdapter<KEY extends org.apache.hadoop.io.Writable>,GuaguaWritableAdapter<VALUE extends org.apache.hadoop.io.Writable>> 中的 nextKeyValueIOExceptionpublic GuaguaWritableAdapter<KEY> getCurrentKey()
GuaguaRecordReader<GuaguaWritableAdapter<KEY extends org.apache.hadoop.io.Writable>,GuaguaWritableAdapter<VALUE extends org.apache.hadoop.io.Writable>> 中的 getCurrentKeypublic GuaguaWritableAdapter<VALUE> getCurrentValue()
GuaguaRecordReader<GuaguaWritableAdapter<KEY extends org.apache.hadoop.io.Writable>,GuaguaWritableAdapter<VALUE extends org.apache.hadoop.io.Writable>> 中的 getCurrentValue
public void close()
throws IOException
GuaguaRecordReader<GuaguaWritableAdapter<KEY extends org.apache.hadoop.io.Writable>,GuaguaWritableAdapter<VALUE extends org.apache.hadoop.io.Writable>> 中的 closeIOException
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||