Package io.moquette.persistence
Class ByteBufDataType
- java.lang.Object
-
- org.h2.mvstore.type.BasicDataType<io.netty.buffer.ByteBuf>
-
- io.moquette.persistence.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 Summary
Constructors Constructor Description ByteBufDataType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(io.netty.buffer.ByteBuf a, io.netty.buffer.ByteBuf b)io.netty.buffer.ByteBuf[]createStorage(int i)intgetMemory(io.netty.buffer.ByteBuf obj)io.netty.buffer.ByteBufread(ByteBuffer buff)voidwrite(org.h2.mvstore.WriteBuffer buff, io.netty.buffer.ByteBuf obj)-
Methods inherited from class org.h2.mvstore.type.BasicDataType
binarySearch, cast, equals, hashCode, isMemoryEstimationAllowed, read, write
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
compare
public int compare(io.netty.buffer.ByteBuf a, io.netty.buffer.ByteBuf b)- Specified by:
comparein interfaceComparator<io.netty.buffer.ByteBuf>- Specified by:
comparein interfaceorg.h2.mvstore.type.DataType<io.netty.buffer.ByteBuf>- Overrides:
comparein classorg.h2.mvstore.type.BasicDataType<io.netty.buffer.ByteBuf>
-
getMemory
public int getMemory(io.netty.buffer.ByteBuf obj)
- Specified by:
getMemoryin interfaceorg.h2.mvstore.type.DataType<io.netty.buffer.ByteBuf>- Specified by:
getMemoryin classorg.h2.mvstore.type.BasicDataType<io.netty.buffer.ByteBuf>
-
read
public io.netty.buffer.ByteBuf read(ByteBuffer buff)
- Specified by:
readin interfaceorg.h2.mvstore.type.DataType<io.netty.buffer.ByteBuf>- Specified by:
readin classorg.h2.mvstore.type.BasicDataType<io.netty.buffer.ByteBuf>
-
write
public void write(org.h2.mvstore.WriteBuffer buff, io.netty.buffer.ByteBuf obj)- Specified by:
writein interfaceorg.h2.mvstore.type.DataType<io.netty.buffer.ByteBuf>- Specified by:
writein classorg.h2.mvstore.type.BasicDataType<io.netty.buffer.ByteBuf>
-
createStorage
public io.netty.buffer.ByteBuf[] createStorage(int i)
-
-