Class FixLengthTimeValuePairSerializer

  • All Implemented Interfaces:
    IExternalSortFileSerializer

    public class FixLengthTimeValuePairSerializer
    extends java.lang.Object
    implements IExternalSortFileSerializer
    IMPORTANT: One instance of this class should used with same type of TimeValuePair.

    FileFormat: [Header][Body]

    [Header] = [DataTypeLength] + [DataTypeInStringBytes]

    [DataTypeLength] = 4 bytes

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void write​(org.apache.iotdb.tsfile.read.TimeValuePair timeValuePair)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FixLengthTimeValuePairSerializer

        public FixLengthTimeValuePairSerializer​(java.lang.String tmpFilePath)
                                         throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • write

        public void write​(org.apache.iotdb.tsfile.read.TimeValuePair timeValuePair)
                   throws java.io.IOException
        Specified by:
        write in interface IExternalSortFileSerializer
        Throws:
        java.io.IOException