Class ByteBufDataType

  • All Implemented Interfaces:
    Comparator<io.netty.buffer.ByteBuf>, org.h2.mvstore.type.DataType<io.netty.buffer.ByteBuf>

    public final class ByteBufDataType
    extends org.h2.mvstore.type.BasicDataType<io.netty.buffer.ByteBuf>
    • Constructor Detail

      • ByteBufDataType

        public ByteBufDataType()
    • Method Detail

      • compare

        public int compare​(io.netty.buffer.ByteBuf a,
                           io.netty.buffer.ByteBuf b)
        Specified by:
        compare in interface Comparator<io.netty.buffer.ByteBuf>
        Specified by:
        compare in interface org.h2.mvstore.type.DataType<io.netty.buffer.ByteBuf>
        Overrides:
        compare in class org.h2.mvstore.type.BasicDataType<io.netty.buffer.ByteBuf>
      • getMemory

        public int getMemory​(io.netty.buffer.ByteBuf obj)
        Specified by:
        getMemory in interface org.h2.mvstore.type.DataType<io.netty.buffer.ByteBuf>
        Specified by:
        getMemory in class org.h2.mvstore.type.BasicDataType<io.netty.buffer.ByteBuf>
      • read

        public io.netty.buffer.ByteBuf read​(ByteBuffer buff)
        Specified by:
        read in interface org.h2.mvstore.type.DataType<io.netty.buffer.ByteBuf>
        Specified by:
        read in class org.h2.mvstore.type.BasicDataType<io.netty.buffer.ByteBuf>
      • write

        public void write​(org.h2.mvstore.WriteBuffer buff,
                          io.netty.buffer.ByteBuf obj)
        Specified by:
        write in interface org.h2.mvstore.type.DataType<io.netty.buffer.ByteBuf>
        Specified by:
        write in class org.h2.mvstore.type.BasicDataType<io.netty.buffer.ByteBuf>
      • createStorage

        public io.netty.buffer.ByteBuf[] createStorage​(int i)