Class WALWriteUtils


  • public class WALWriteUtils
    extends java.lang.Object
    Like ReadWriteIOUtils
    • Method Detail

      • write

        public static int write​(java.lang.Boolean flag,
                                IWALByteBufferView buffer)
        write a byte to byteBuffer according to flag. If flag is true, write 1, else write 0.
      • write

        public static int write​(byte n,
                                IWALByteBufferView buffer)
        write a byte n to byteBuffer.
        Returns:
        The number of bytes used to represent a byte value in two's complement binary form.
      • write

        public static int write​(short n,
                                IWALByteBufferView buffer)
        write a short n to byteBuffer.
        Returns:
        The number of bytes used to represent n.
      • write

        public static int write​(org.apache.iotdb.tsfile.utils.Binary n,
                                IWALByteBufferView buffer)
        write a short n to byteBuffer.
        Returns:
        The number of bytes used to represent n.
      • write

        public static int write​(int n,
                                IWALByteBufferView buffer)
        write a int n to byteBuffer.
        Returns:
        The number of bytes used to represent n.
      • write

        public static int write​(long n,
                                IWALByteBufferView buffer)
        write a long n to byteBuffer.
      • write

        public static int write​(float n,
                                IWALByteBufferView buffer)
        write a float n to byteBuffer.
      • write

        public static int write​(double n,
                                IWALByteBufferView buffer)
        write a double n to byteBuffer.
      • write

        public static int write​(java.lang.String s,
                                IWALByteBufferView buffer)
        write string to byteBuffer.
        Returns:
        the length of string represented by byte[].
      • write

        public static int write​(org.apache.iotdb.tsfile.file.metadata.enums.TSDataType dataType,
                                IWALByteBufferView buffer)
        TSDataType.
      • write

        public static int write​(org.apache.iotdb.tsfile.file.metadata.enums.TSEncoding encoding,
                                IWALByteBufferView buffer)
        TSEncoding.
      • write

        public static int write​(org.apache.iotdb.tsfile.file.metadata.enums.CompressionType compressionType,
                                IWALByteBufferView buffer)
        CompressionType.
      • write

        public static int write​(org.apache.iotdb.tsfile.write.schema.MeasurementSchema measurementSchema,
                                IWALByteBufferView buffer)
        MeasurementSchema.
      • sizeToWrite

        public static int sizeToWrite​(org.apache.iotdb.tsfile.write.schema.MeasurementSchema measurementSchema)