|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.arsc.multisearch.ServiceRecordReader
public class ServiceRecordReader
Nested Class Summary | |
---|---|
static class |
ServiceRecordReader.ServiceReader
A class that provides the reader from an input stream. |
Constructor Summary | |
---|---|
ServiceRecordReader(org.apache.hadoop.conf.Configuration job,
org.apache.hadoop.mapred.FileSplit split)
|
Method Summary | |
---|---|
void |
close()
Close this split to future operations. |
org.apache.hadoop.io.Text |
createKey()
Generate an object for this to be used as a key. |
ServiceWritable |
createValue()
Create a ServiceWritable object to be use as the value for this key, value pair |
long |
getPos()
|
float |
getProgress()
Returns number of bytes used by object. |
int |
getSize()
Return the new size. |
boolean |
next(org.apache.hadoop.io.Text key,
ServiceWritable service)
Reads the next service into the object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServiceRecordReader(org.apache.hadoop.conf.Configuration job, org.apache.hadoop.mapred.FileSplit split) throws java.io.IOException
Configuration
- FileSplit
- String
-
java.io.IOException
Method Detail |
---|
public long getPos()
getPos
in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.Text,ServiceWritable>
public float getProgress() throws java.io.IOException
getProgress
in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.Text,ServiceWritable>
java.io.IOException
public void close()
close
in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.Text,ServiceWritable>
public ServiceWritable createValue()
createValue
in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.Text,ServiceWritable>
public int getSize()
public org.apache.hadoop.io.Text createKey()
createKey
in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.Text,ServiceWritable>
public boolean next(org.apache.hadoop.io.Text key, ServiceWritable service) throws java.io.IOException
next
in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.Text,ServiceWritable>
Text
- keyServiceWritable
- service
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |