edu.arsc.multisearch
Class ServiceRecordReader.ServiceReader

java.lang.Object
  extended by edu.arsc.multisearch.ServiceRecordReader.ServiceReader
Enclosing class:
ServiceRecordReader

public static class ServiceRecordReader.ServiceReader
extends java.lang.Object

A class that provides the reader from an input stream.


Constructor Summary
ServiceRecordReader.ServiceReader(java.io.InputStream is)
           
 
Method Summary
 void close()
          Closes all objects
 int readLine(org.apache.hadoop.io.Text str)
          Reads in a line from the input
 int readService(ServiceWritable sw)
          Reads in the values for this record into a Service object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceRecordReader.ServiceReader

public ServiceRecordReader.ServiceReader(java.io.InputStream is)
Parameters:
InputStream -
Method Detail

close

public void close()
           throws java.io.IOException
Closes all objects

Throws:
java.io.IOException

readLine

public int readLine(org.apache.hadoop.io.Text str)
             throws java.io.IOException
Reads in a line from the input

Parameters:
String -
Returns:
int size
Throws:
java.io.IOException

readService

public int readService(ServiceWritable sw)
Reads in the values for this record into a Service object.

Parameters:
ServiceWritable -
Returns:
int size