|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.record.CsvRecordOutput
public class CsvRecordOutput
Constructor Summary | |
---|---|
CsvRecordOutput(java.io.OutputStream out)
Creates a new instance of CsvRecordOutput |
Method Summary | |
---|---|
void |
endMap(java.util.TreeMap v,
java.lang.String tag)
Mark the end of a serialized map. |
void |
endRecord(Record r,
java.lang.String tag)
Mark the end of a serialized record. |
void |
endVector(java.util.ArrayList v,
java.lang.String tag)
Mark the end of a serialized vector. |
void |
startMap(java.util.TreeMap v,
java.lang.String tag)
Mark the start of a map to be serialized. |
void |
startRecord(Record r,
java.lang.String tag)
Mark the start of a record to be serialized. |
void |
startVector(java.util.ArrayList v,
java.lang.String tag)
Mark the start of a vector to be serialized. |
void |
writeBool(boolean b,
java.lang.String tag)
Write a boolean to serialized record. |
void |
writeBuffer(Buffer buf,
java.lang.String tag)
Write a buffer to serialized record. |
void |
writeByte(byte b,
java.lang.String tag)
Write a byte to serialized record. |
void |
writeDouble(double d,
java.lang.String tag)
Write a double precision floating point number to serialized record. |
void |
writeFloat(float f,
java.lang.String tag)
Write a single-precision float to serialized record. |
void |
writeInt(int i,
java.lang.String tag)
Write an integer to serialized record. |
void |
writeLong(long l,
java.lang.String tag)
Write a long integer to serialized record. |
void |
writeString(java.lang.String s,
java.lang.String tag)
Write a unicode string to serialized record. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CsvRecordOutput(java.io.OutputStream out)
Method Detail |
---|
public void writeByte(byte b, java.lang.String tag) throws java.io.IOException
RecordOutput
writeByte
in interface RecordOutput
b
- Byte to be serializedtag
- Used by tagged serialization formats (such as XML)
java.io.IOException
- Indicates error in serializationpublic void writeBool(boolean b, java.lang.String tag) throws java.io.IOException
RecordOutput
writeBool
in interface RecordOutput
b
- Boolean to be serializedtag
- Used by tagged serialization formats (such as XML)
java.io.IOException
- Indicates error in serializationpublic void writeInt(int i, java.lang.String tag) throws java.io.IOException
RecordOutput
writeInt
in interface RecordOutput
i
- Integer to be serializedtag
- Used by tagged serialization formats (such as XML)
java.io.IOException
- Indicates error in serializationpublic void writeLong(long l, java.lang.String tag) throws java.io.IOException
RecordOutput
writeLong
in interface RecordOutput
l
- Long to be serializedtag
- Used by tagged serialization formats (such as XML)
java.io.IOException
- Indicates error in serializationpublic void writeFloat(float f, java.lang.String tag) throws java.io.IOException
RecordOutput
writeFloat
in interface RecordOutput
f
- Float to be serializedtag
- Used by tagged serialization formats (such as XML)
java.io.IOException
- Indicates error in serializationpublic void writeDouble(double d, java.lang.String tag) throws java.io.IOException
RecordOutput
writeDouble
in interface RecordOutput
d
- Double to be serializedtag
- Used by tagged serialization formats (such as XML)
java.io.IOException
- Indicates error in serializationpublic void writeString(java.lang.String s, java.lang.String tag) throws java.io.IOException
RecordOutput
writeString
in interface RecordOutput
s
- String to be serializedtag
- Used by tagged serialization formats (such as XML)
java.io.IOException
- Indicates error in serializationpublic void writeBuffer(Buffer buf, java.lang.String tag) throws java.io.IOException
RecordOutput
writeBuffer
in interface RecordOutput
buf
- Buffer to be serializedtag
- Used by tagged serialization formats (such as XML)
java.io.IOException
- Indicates error in serializationpublic void startRecord(Record r, java.lang.String tag) throws java.io.IOException
RecordOutput
startRecord
in interface RecordOutput
r
- Record to be serializedtag
- Used by tagged serialization formats (such as XML)
java.io.IOException
- Indicates error in serializationpublic void endRecord(Record r, java.lang.String tag) throws java.io.IOException
RecordOutput
endRecord
in interface RecordOutput
r
- Record to be serializedtag
- Used by tagged serialization formats (such as XML)
java.io.IOException
- Indicates error in serializationpublic void startVector(java.util.ArrayList v, java.lang.String tag) throws java.io.IOException
RecordOutput
startVector
in interface RecordOutput
v
- Vector to be serializedtag
- Used by tagged serialization formats (such as XML)
java.io.IOException
- Indicates error in serializationpublic void endVector(java.util.ArrayList v, java.lang.String tag) throws java.io.IOException
RecordOutput
endVector
in interface RecordOutput
v
- Vector to be serializedtag
- Used by tagged serialization formats (such as XML)
java.io.IOException
- Indicates error in serializationpublic void startMap(java.util.TreeMap v, java.lang.String tag) throws java.io.IOException
RecordOutput
startMap
in interface RecordOutput
v
- Map to be serializedtag
- Used by tagged serialization formats (such as XML)
java.io.IOException
- Indicates error in serializationpublic void endMap(java.util.TreeMap v, java.lang.String tag) throws java.io.IOException
RecordOutput
endMap
in interface RecordOutput
v
- Map to be serializedtag
- Used by tagged serialization formats (such as XML)
java.io.IOException
- Indicates error in serialization
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |