public class TypedBytesRecordOutput
extends java.lang.Object
implements org.apache.hadoop.record.RecordOutput
Constructor and Description |
---|
TypedBytesRecordOutput(java.io.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(java.util.TreeMap m,
java.lang.String tag) |
void |
endRecord(org.apache.hadoop.record.Record r,
java.lang.String tag) |
void |
endVector(java.util.ArrayList v,
java.lang.String tag) |
static TypedBytesRecordOutput |
get(java.io.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(java.util.TreeMap m,
java.lang.String tag) |
void |
startRecord(org.apache.hadoop.record.Record r,
java.lang.String tag) |
void |
startVector(java.util.ArrayList v,
java.lang.String tag) |
void |
writeBool(boolean b,
java.lang.String tag) |
void |
writeBuffer(org.apache.hadoop.record.Buffer buf,
java.lang.String tag) |
void |
writeByte(byte b,
java.lang.String tag) |
void |
writeDouble(double d,
java.lang.String tag) |
void |
writeFloat(float f,
java.lang.String tag) |
void |
writeInt(int i,
java.lang.String tag) |
void |
writeLong(long l,
java.lang.String tag) |
void |
writeString(java.lang.String s,
java.lang.String tag) |
public TypedBytesRecordOutput(TypedBytesOutput out)
public TypedBytesRecordOutput(java.io.DataOutput out)
public static TypedBytesRecordOutput get(TypedBytesOutput out)
TypedBytesOutput
.out
- typed bytes output objectTypedBytesOutput
.public static TypedBytesRecordOutput get(java.io.DataOutput out)
DataOutput
.out
- data output objectDataOutput
.public void writeBool(boolean b, java.lang.String tag) throws java.io.IOException
writeBool
in interface org.apache.hadoop.record.RecordOutput
java.io.IOException
public void writeBuffer(org.apache.hadoop.record.Buffer buf, java.lang.String tag) throws java.io.IOException
writeBuffer
in interface org.apache.hadoop.record.RecordOutput
java.io.IOException
public void writeByte(byte b, java.lang.String tag) throws java.io.IOException
writeByte
in interface org.apache.hadoop.record.RecordOutput
java.io.IOException
public void writeDouble(double d, java.lang.String tag) throws java.io.IOException
writeDouble
in interface org.apache.hadoop.record.RecordOutput
java.io.IOException
public void writeFloat(float f, java.lang.String tag) throws java.io.IOException
writeFloat
in interface org.apache.hadoop.record.RecordOutput
java.io.IOException
public void writeInt(int i, java.lang.String tag) throws java.io.IOException
writeInt
in interface org.apache.hadoop.record.RecordOutput
java.io.IOException
public void writeLong(long l, java.lang.String tag) throws java.io.IOException
writeLong
in interface org.apache.hadoop.record.RecordOutput
java.io.IOException
public void writeString(java.lang.String s, java.lang.String tag) throws java.io.IOException
writeString
in interface org.apache.hadoop.record.RecordOutput
java.io.IOException
public void startRecord(org.apache.hadoop.record.Record r, java.lang.String tag) throws java.io.IOException
startRecord
in interface org.apache.hadoop.record.RecordOutput
java.io.IOException
public void startVector(java.util.ArrayList v, java.lang.String tag) throws java.io.IOException
startVector
in interface org.apache.hadoop.record.RecordOutput
java.io.IOException
public void startMap(java.util.TreeMap m, java.lang.String tag) throws java.io.IOException
startMap
in interface org.apache.hadoop.record.RecordOutput
java.io.IOException
public void endRecord(org.apache.hadoop.record.Record r, java.lang.String tag) throws java.io.IOException
endRecord
in interface org.apache.hadoop.record.RecordOutput
java.io.IOException
public void endVector(java.util.ArrayList v, java.lang.String tag) throws java.io.IOException
endVector
in interface org.apache.hadoop.record.RecordOutput
java.io.IOException
public void endMap(java.util.TreeMap m, java.lang.String tag) throws java.io.IOException
endMap
in interface org.apache.hadoop.record.RecordOutput
java.io.IOException
Copyright © 2009 The Apache Software Foundation