Class BinaryRowWriter

    • Constructor Detail

      • BinaryRowWriter

        public BinaryRowWriter​(BinaryRowData row,
                               int initialSize)
    • Method Detail

      • reset

        public void reset()
        First, reset.
      • setNullAt

        public void setNullAt​(int pos)
        Default not null.
      • setNullBit

        public void setNullBit​(int pos)
      • writeRowKind

        public void writeRowKind​(RowKind kind)
      • writeBoolean

        public void writeBoolean​(int pos,
                                 boolean value)
      • writeByte

        public void writeByte​(int pos,
                              byte value)
      • writeShort

        public void writeShort​(int pos,
                               short value)
      • writeInt

        public void writeInt​(int pos,
                             int value)
      • writeLong

        public void writeLong​(int pos,
                              long value)
      • writeFloat

        public void writeFloat​(int pos,
                               float value)
      • writeDouble

        public void writeDouble​(int pos,
                                double value)
      • complete

        public void complete()
        Description copied from interface: BinaryWriter
        Finally, complete write to set real size to binary.
      • getFieldOffset

        public int getFieldOffset​(int pos)
        Get field offset.
      • setOffsetAndSize

        public void setOffsetAndSize​(int pos,
                                     int offset,
                                     long size)
        Set offset and size to fix len part.
      • afterGrow

        public void afterGrow()
        After grow, need point to new memory.
      • writeBinary

        public void writeBinary​(int pos,
                                byte[] bytes)
        Specified by:
        writeBinary in interface BinaryWriter
      • zeroOutPaddingBytes

        protected void zeroOutPaddingBytes​(int numBytes)
      • ensureCapacity

        protected void ensureCapacity​(int neededSize)
      • roundNumberOfBytesToNearestWord

        protected static int roundNumberOfBytesToNearestWord​(int numBytes)