|
||||||||||
| 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(OutputStream out)
Creates a new instance of CsvRecordOutput |
|
| Method Summary | |
|---|---|
void |
endMap(TreeMap v,
String tag)
Mark the end of a serialized map. |
void |
endRecord(Record r,
String tag)
Mark the end of a serialized record. |
void |
endVector(ArrayList v,
String tag)
Mark the end of a serialized vector. |
void |
startMap(TreeMap v,
String tag)
Mark the start of a map to be serialized. |
void |
startRecord(Record r,
String tag)
Mark the start of a record to be serialized. |
void |
startVector(ArrayList v,
String tag)
Mark the start of a vector to be serialized. |
void |
writeBool(boolean b,
String tag)
Write a boolean to serialized record. |
void |
writeBuffer(Buffer buf,
String tag)
Write a buffer to serialized record. |
void |
writeByte(byte b,
String tag)
Write a byte to serialized record. |
void |
writeDouble(double d,
String tag)
Write a double precision floating point number to serialized record. |
void |
writeFloat(float f,
String tag)
Write a single-precision float to serialized record. |
void |
writeInt(int i,
String tag)
Write an integer to serialized record. |
void |
writeLong(long l,
String tag)
Write a long integer to serialized record. |
void |
writeString(String s,
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(OutputStream out)
| Method Detail |
|---|
public void writeByte(byte b,
String tag)
throws IOException
RecordOutput
writeByte in interface RecordOutputb - Byte to be serializedtag - Used by tagged serialization formats (such as XML)
IOException - Indicates error in serialization
public void writeBool(boolean b,
String tag)
throws IOException
RecordOutput
writeBool in interface RecordOutputb - Boolean to be serializedtag - Used by tagged serialization formats (such as XML)
IOException - Indicates error in serialization
public void writeInt(int i,
String tag)
throws IOException
RecordOutput
writeInt in interface RecordOutputi - Integer to be serializedtag - Used by tagged serialization formats (such as XML)
IOException - Indicates error in serialization
public void writeLong(long l,
String tag)
throws IOException
RecordOutput
writeLong in interface RecordOutputl - Long to be serializedtag - Used by tagged serialization formats (such as XML)
IOException - Indicates error in serialization
public void writeFloat(float f,
String tag)
throws IOException
RecordOutput
writeFloat in interface RecordOutputf - Float to be serializedtag - Used by tagged serialization formats (such as XML)
IOException - Indicates error in serialization
public void writeDouble(double d,
String tag)
throws IOException
RecordOutput
writeDouble in interface RecordOutputd - Double to be serializedtag - Used by tagged serialization formats (such as XML)
IOException - Indicates error in serialization
public void writeString(String s,
String tag)
throws IOException
RecordOutput
writeString in interface RecordOutputs - String to be serializedtag - Used by tagged serialization formats (such as XML)
IOException - Indicates error in serialization
public void writeBuffer(Buffer buf,
String tag)
throws IOException
RecordOutput
writeBuffer in interface RecordOutputbuf - Buffer to be serializedtag - Used by tagged serialization formats (such as XML)
IOException - Indicates error in serialization
public void startRecord(Record r,
String tag)
throws IOException
RecordOutput
startRecord in interface RecordOutputr - Record to be serializedtag - Used by tagged serialization formats (such as XML)
IOException - Indicates error in serialization
public void endRecord(Record r,
String tag)
throws IOException
RecordOutput
endRecord in interface RecordOutputr - Record to be serializedtag - Used by tagged serialization formats (such as XML)
IOException - Indicates error in serialization
public void startVector(ArrayList v,
String tag)
throws IOException
RecordOutput
startVector in interface RecordOutputv - Vector to be serializedtag - Used by tagged serialization formats (such as XML)
IOException - Indicates error in serialization
public void endVector(ArrayList v,
String tag)
throws IOException
RecordOutput
endVector in interface RecordOutputv - Vector to be serializedtag - Used by tagged serialization formats (such as XML)
IOException - Indicates error in serialization
public void startMap(TreeMap v,
String tag)
throws IOException
RecordOutput
startMap in interface RecordOutputv - Map to be serializedtag - Used by tagged serialization formats (such as XML)
IOException - Indicates error in serialization
public void endMap(TreeMap v,
String tag)
throws IOException
RecordOutput
endMap in interface RecordOutputv - Map to be serializedtag - Used by tagged serialization formats (such as XML)
IOException - Indicates error in serialization
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||