public class TypedBytesRecordOutput extends Object implements RecordOutput
| Constructor and Description |
|---|
TypedBytesRecordOutput(DataOutput out)
Creates a new instance of TypedBytesRecordOutput.
|
TypedBytesRecordOutput(TypedBytesOutput out)
Creates a new instance of TypedBytesRecordOutput.
|
| Modifier and Type | Method and Description |
|---|---|
void |
endMap(TreeMap m,
String tag) |
void |
endRecord(Record r,
String tag) |
void |
endVector(ArrayList v,
String tag) |
static TypedBytesRecordOutput |
get(DataOutput out)
Get a thread-local typed bytes record output for the supplied
DataOutput. |
static TypedBytesRecordOutput |
get(TypedBytesOutput out)
Get a thread-local typed bytes record input for the supplied
TypedBytesOutput. |
void |
startMap(TreeMap m,
String tag) |
void |
startRecord(Record r,
String tag) |
void |
startVector(ArrayList v,
String tag) |
void |
writeBool(boolean b,
String tag) |
void |
writeBuffer(Buffer buf,
String tag) |
void |
writeByte(byte b,
String tag) |
void |
writeDouble(double d,
String tag) |
void |
writeFloat(float f,
String tag) |
void |
writeInt(int i,
String tag) |
void |
writeLong(long l,
String tag) |
void |
writeString(String s,
String tag) |
public TypedBytesRecordOutput(TypedBytesOutput out)
public TypedBytesRecordOutput(DataOutput out)
public static TypedBytesRecordOutput get(TypedBytesOutput out)
TypedBytesOutput.out - typed bytes output objectTypedBytesOutput.public static TypedBytesRecordOutput get(DataOutput out)
DataOutput.out - data output objectDataOutput.public void writeBool(boolean b,
String tag)
throws IOException
writeBool in interface RecordOutputIOExceptionpublic void writeBuffer(Buffer buf, String tag) throws IOException
writeBuffer in interface RecordOutputIOExceptionpublic void writeByte(byte b,
String tag)
throws IOException
writeByte in interface RecordOutputIOExceptionpublic void writeDouble(double d,
String tag)
throws IOException
writeDouble in interface RecordOutputIOExceptionpublic void writeFloat(float f,
String tag)
throws IOException
writeFloat in interface RecordOutputIOExceptionpublic void writeInt(int i,
String tag)
throws IOException
writeInt in interface RecordOutputIOExceptionpublic void writeLong(long l,
String tag)
throws IOException
writeLong in interface RecordOutputIOExceptionpublic void writeString(String s, String tag) throws IOException
writeString in interface RecordOutputIOExceptionpublic void startRecord(Record r, String tag) throws IOException
startRecord in interface RecordOutputIOExceptionpublic void startVector(ArrayList v, String tag) throws IOException
startVector in interface RecordOutputIOExceptionpublic void startMap(TreeMap m, String tag) throws IOException
startMap in interface RecordOutputIOExceptionpublic void endRecord(Record r, String tag) throws IOException
endRecord in interface RecordOutputIOExceptionpublic void endVector(ArrayList v, String tag) throws IOException
endVector in interface RecordOutputIOExceptionpublic void endMap(TreeMap m, String tag) throws IOException
endMap in interface RecordOutputIOExceptionCopyright © 2018 CERN. All Rights Reserved.