Package com.clickhouse.data.value
Class ClickHouseBitmap
java.lang.Object
com.clickhouse.data.value.ClickHouseBitmap
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final intprotected final ClickHouseDataTypeprotected final Object -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedClickHouseBitmap(Object bitmap, ClickHouseDataType innerType) -
Method Summary
Modifier and TypeMethodDescriptionstatic ClickHouseBitmapdeserialize(byte[] bytes, ClickHouseDataType innerType) static ClickHouseBitmapdeserialize(DataInputStream in, ClickHouseDataType innerType) static ClickHouseBitmapdeserialize(InputStream in, ClickHouseDataType innerType) static ClickHouseBitmapempty()static ClickHouseBitmapempty(ClickHouseDataType type) booleanabstract intlonginthashCode()abstract booleanisEmpty()abstract voidserialize(ByteBuffer buffer) abstract intlongSerialize the bitmap into a flipped ByteBuffer.byte[]toBytes()abstract int[]long[]unwrap()static ClickHouseBitmapwrap(byte... values) static ClickHouseBitmapwrap(int... values) static ClickHouseBitmapwrap(long... values) static ClickHouseBitmapwrap(short... values) static ClickHouseBitmapwrap(Object bitmap, ClickHouseDataType innerType)
-
Field Details
-
innerType
-
byteLen
protected final int byteLen -
reference
-
-
Constructor Details
-
ClickHouseBitmap
-
-
Method Details
-
empty
-
empty
-
wrap
-
wrap
-
wrap
-
wrap
-
wrap
-
deserialize
public static ClickHouseBitmap deserialize(InputStream in, ClickHouseDataType innerType) throws IOException - Throws:
IOException
-
deserialize
public static ClickHouseBitmap deserialize(DataInputStream in, ClickHouseDataType innerType) throws IOException - Throws:
IOException
-
deserialize
public static ClickHouseBitmap deserialize(byte[] bytes, ClickHouseDataType innerType) throws IOException - Throws:
IOException
-
isEmpty
public abstract boolean isEmpty() -
getCardinality
public abstract int getCardinality() -
getLongCardinality
public long getLongCardinality() -
serialize
-
serializedSizeInBytes
public abstract int serializedSizeInBytes() -
serializedSizeInBytesAsLong
public long serializedSizeInBytesAsLong() -
toIntArray
public abstract int[] toIntArray() -
equals
-
hashCode
public int hashCode() -
toLongArray
public long[] toLongArray() -
toByteBuffer
Serialize the bitmap into a flipped ByteBuffer.- Returns:
- flipped byte buffer
-
toBytes
public byte[] toBytes() -
toBitmapBuildExpression
-
unwrap
-