public abstract class TupleOutputStream
extends java.io.DataOutputStream
Modifier and Type | Class and Description |
---|---|
static interface |
TupleOutputStream.ElementWriter |
protected static interface |
TupleOutputStream.TupleElementWriter |
Constructor and Description |
---|
TupleOutputStream(java.util.Map<java.lang.Class,TupleOutputStream.TupleElementWriter> tupleElementWriters,
java.io.OutputStream outputStream,
TupleOutputStream.ElementWriter elementWriter) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
writeElement(java.lang.Object element) |
void |
writeElementArray(java.lang.Object[] elements) |
abstract void |
writeIndexTuple(IndexTuple indexTuple) |
protected abstract void |
writeIntInternal(int value) |
void |
writeTuple(Tuple tuple) |
void |
writeTuplePair(TuplePair tuplePair) |
flush, size, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
public TupleOutputStream(java.util.Map<java.lang.Class,TupleOutputStream.TupleElementWriter> tupleElementWriters, java.io.OutputStream outputStream, TupleOutputStream.ElementWriter elementWriter)
public void writeTuple(Tuple tuple) throws java.io.IOException
java.io.IOException
public void writeTuplePair(TuplePair tuplePair) throws java.io.IOException
java.io.IOException
public abstract void writeIndexTuple(IndexTuple indexTuple) throws java.io.IOException
java.io.IOException
public void writeElementArray(java.lang.Object[] elements) throws java.io.IOException
java.io.IOException
public final void writeElement(java.lang.Object element) throws java.io.IOException
java.io.IOException
protected abstract void writeIntInternal(int value) throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.FilterOutputStream
java.io.IOException