public class TypedBytesRecordOutput extends Object implements org.apache.hadoop.record.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(org.apache.hadoop.record.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(org.apache.hadoop.record.Record r,
String tag) |
void |
startVector(ArrayList v,
String tag) |
void |
writeBool(boolean b,
String tag) |
void |
writeBuffer(org.apache.hadoop.record.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 org.apache.hadoop.record.RecordOutputIOExceptionpublic void writeBuffer(org.apache.hadoop.record.Buffer buf,
String tag)
throws IOException
writeBuffer in interface org.apache.hadoop.record.RecordOutputIOExceptionpublic void writeByte(byte b,
String tag)
throws IOException
writeByte in interface org.apache.hadoop.record.RecordOutputIOExceptionpublic void writeDouble(double d,
String tag)
throws IOException
writeDouble in interface org.apache.hadoop.record.RecordOutputIOExceptionpublic void writeFloat(float f,
String tag)
throws IOException
writeFloat in interface org.apache.hadoop.record.RecordOutputIOExceptionpublic void writeInt(int i,
String tag)
throws IOException
writeInt in interface org.apache.hadoop.record.RecordOutputIOExceptionpublic void writeLong(long l,
String tag)
throws IOException
writeLong in interface org.apache.hadoop.record.RecordOutputIOExceptionpublic void writeString(String s, String tag) throws IOException
writeString in interface org.apache.hadoop.record.RecordOutputIOExceptionpublic void startRecord(org.apache.hadoop.record.Record r,
String tag)
throws IOException
startRecord in interface org.apache.hadoop.record.RecordOutputIOExceptionpublic void startVector(ArrayList v, String tag) throws IOException
startVector in interface org.apache.hadoop.record.RecordOutputIOExceptionpublic void startMap(TreeMap m, String tag) throws IOException
startMap in interface org.apache.hadoop.record.RecordOutputIOExceptionpublic void endRecord(org.apache.hadoop.record.Record r,
String tag)
throws IOException
endRecord in interface org.apache.hadoop.record.RecordOutputIOExceptionpublic void endVector(ArrayList v, String tag) throws IOException
endVector in interface org.apache.hadoop.record.RecordOutputIOExceptionpublic void endMap(TreeMap m, String tag) throws IOException
endMap in interface org.apache.hadoop.record.RecordOutputIOExceptionCopyright © 2015 Apache Software Foundation. All Rights Reserved.