public final class ByteArrayDataType extends Object implements org.h2.mvstore.type.DataType<byte[]>
DataType
implementation encoding byte[]
arrays sorted lexicographically.Modifier and Type | Field and Description |
---|---|
static ByteArrayDataType |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
int |
binarySearch(byte[] key,
Object storage,
int size,
int initialGuess) |
int |
compare(byte[] a,
byte[] b) |
byte[][] |
createStorage(int size) |
int |
getMemory(byte[] value) |
boolean |
isMemoryEstimationAllowed() |
byte[] |
read(ByteBuffer buf) |
void |
read(ByteBuffer buf,
Object storage,
int len) |
void |
write(org.h2.mvstore.WriteBuffer buf,
byte[] value) |
void |
write(org.h2.mvstore.WriteBuffer buf,
Object storage,
int len) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public static final ByteArrayDataType INSTANCE
public int binarySearch(byte[] key, Object storage, int size, int initialGuess)
binarySearch
in interface org.h2.mvstore.type.DataType<byte[]>
public int compare(byte[] a, byte[] b)
compare
in interface Comparator<byte[]>
compare
in interface org.h2.mvstore.type.DataType<byte[]>
public byte[][] createStorage(int size)
createStorage
in interface org.h2.mvstore.type.DataType<byte[]>
public int getMemory(byte[] value)
getMemory
in interface org.h2.mvstore.type.DataType<byte[]>
public boolean isMemoryEstimationAllowed()
isMemoryEstimationAllowed
in interface org.h2.mvstore.type.DataType<byte[]>
public void write(org.h2.mvstore.WriteBuffer buf, byte[] value)
write
in interface org.h2.mvstore.type.DataType<byte[]>
public void write(org.h2.mvstore.WriteBuffer buf, Object storage, int len)
write
in interface org.h2.mvstore.type.DataType<byte[]>
public byte[] read(ByteBuffer buf)
read
in interface org.h2.mvstore.type.DataType<byte[]>
public void read(ByteBuffer buf, Object storage, int len)
read
in interface org.h2.mvstore.type.DataType<byte[]>
Copyright © 2022. All rights reserved.