public class HadoopTupleInputStream extends TupleInputStream
TupleInputStream.ElementReader
elementReader, inputStream
Constructor and Description |
---|
HadoopTupleInputStream(java.io.InputStream inputStream,
TupleInputStream.ElementReader elementReader) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getNextElement() |
int |
getNumElements() |
IndexTuple |
readIndexTuple(IndexTuple indexTuple) |
java.lang.String |
readString() |
int |
readToken() |
protected java.lang.Object |
readType(int type) |
int |
readVInt() |
long |
readVLong() |
close, getComparatorFor, getInputStream, readIndexTuple, readTuple, readTuple, readTuplePair, readTuplePair
read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytes
public HadoopTupleInputStream(java.io.InputStream inputStream, TupleInputStream.ElementReader elementReader)
public int getNumElements() throws java.io.IOException
getNumElements
in class TupleInputStream
java.io.IOException
public int readToken() throws java.io.IOException
readToken
in class TupleInputStream
java.io.IOException
public java.lang.Object getNextElement() throws java.io.IOException
getNextElement
in class TupleInputStream
java.io.IOException
public IndexTuple readIndexTuple(IndexTuple indexTuple) throws java.io.IOException
readIndexTuple
in class TupleInputStream
java.io.IOException
public long readVLong() throws java.io.IOException
java.io.IOException
public int readVInt() throws java.io.IOException
java.io.IOException
public java.lang.String readString() throws java.io.IOException
java.io.IOException
protected final java.lang.Object readType(int type) throws java.io.IOException
readType
in class TupleInputStream
java.io.IOException