org.apache.hadoop.record
Interface OutputArchive

All Known Implementing Classes:
BinaryOutputArchive, CsvOutputArchive

public interface OutputArchive

Interface that alll the serializers have to implement.

Author:
Milind Bhandarkar

Method Summary
 void endMap(TreeMap v, String tag)
           
 void endRecord(Record r, String tag)
           
 void endVector(ArrayList v, String tag)
           
 void startMap(TreeMap v, String tag)
           
 void startRecord(Record r, String tag)
           
 void startVector(ArrayList v, String tag)
           
 void writeBool(boolean b, String tag)
           
 void writeBuffer(ByteArrayOutputStream 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 writeRecord(Record r, String tag)
           
 void writeString(String s, String tag)
           
 

Method Detail

writeByte

public void writeByte(byte b,
                      String tag)
               throws IOException
Throws:
IOException

writeBool

public void writeBool(boolean b,
                      String tag)
               throws IOException
Throws:
IOException

writeInt

public void writeInt(int i,
                     String tag)
              throws IOException
Throws:
IOException

writeLong

public void writeLong(long l,
                      String tag)
               throws IOException
Throws:
IOException

writeFloat

public void writeFloat(float f,
                       String tag)
                throws IOException
Throws:
IOException

writeDouble

public void writeDouble(double d,
                        String tag)
                 throws IOException
Throws:
IOException

writeString

public void writeString(String s,
                        String tag)
                 throws IOException
Throws:
IOException

writeBuffer

public void writeBuffer(ByteArrayOutputStream buf,
                        String tag)
                 throws IOException
Throws:
IOException

writeRecord

public void writeRecord(Record r,
                        String tag)
                 throws IOException
Throws:
IOException

startRecord

public void startRecord(Record r,
                        String tag)
                 throws IOException
Throws:
IOException

endRecord

public void endRecord(Record r,
                      String tag)
               throws IOException
Throws:
IOException

startVector

public void startVector(ArrayList v,
                        String tag)
                 throws IOException
Throws:
IOException

endVector

public void endVector(ArrayList v,
                      String tag)
               throws IOException
Throws:
IOException

startMap

public void startMap(TreeMap v,
                     String tag)
              throws IOException
Throws:
IOException

endMap

public void endMap(TreeMap v,
                   String tag)
            throws IOException
Throws:
IOException


Copyright © 2006 The Apache Software Foundation