public abstract class TupleOutputStream extends java.io.DataOutputStream
Modifier and Type | Class and Description |
---|---|
static interface |
TupleOutputStream.ElementWriter |
static interface |
TupleOutputStream.TupleElementWriter |
Constructor and Description |
---|
TupleOutputStream(java.util.Map<java.lang.Class,TupleOutputStream.TupleElementWriter> tupleUnTypedElementWriters,
java.util.Map<java.lang.Class,TupleOutputStream.TupleElementWriter> tupleTypedElementWriters,
java.io.OutputStream outputStream,
TupleOutputStream.ElementWriter elementWriter) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
TupleOutputStream.TupleElementWriter |
getWriterFor(java.lang.Class type) |
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) |
void |
writeTyped(java.lang.Class[] classes,
Tuple tuple) |
void |
writeTypedElement(java.lang.Class type,
java.lang.Object element) |
void |
writeUnTyped(Tuple tuple) |
void |
writeWith(TupleOutputStream.TupleElementWriter[] writers,
Tuple tuple) |
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> tupleUnTypedElementWriters, java.util.Map<java.lang.Class,TupleOutputStream.TupleElementWriter> tupleTypedElementWriters, java.io.OutputStream outputStream, TupleOutputStream.ElementWriter elementWriter)
public final TupleOutputStream.TupleElementWriter getWriterFor(java.lang.Class type) throws java.io.IOException
java.io.IOException
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 writeWith(TupleOutputStream.TupleElementWriter[] writers, Tuple tuple) throws java.io.IOException
java.io.IOException
public void writeTyped(java.lang.Class[] classes, Tuple tuple) throws java.io.IOException
java.io.IOException
public void writeUnTyped(Tuple tuple) throws java.io.IOException
java.io.IOException
public void writeElementArray(java.lang.Object[] elements) throws java.io.IOException
java.io.IOException
public final void writeTypedElement(java.lang.Class type, java.lang.Object element) 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
Copyright © 2007-2015 Xplenty, Inc. All Rights Reserved.