public interface ISchemaVersion
byte[]
representations.Modifier and Type | Method and Description |
---|---|
IWordDeserializer |
getDeserializer(HLLType type,
int wordLength,
byte[] bytes)
Builds an HLL deserializer that matches this schema version.
|
org.apache.solr.util.hll.IWordSerializer |
getSerializer(HLLType type,
int wordLength,
int wordCount)
Builds an HLL serializer that matches this schema version.
|
int |
paddingBytes(HLLType type)
The number of metadata bytes required for a serialized HLL of the
specified type.
|
org.apache.solr.util.hll.IHLLMetadata |
readMetadata(byte[] bytes)
Reads the metadata bytes of the serialized HLL.
|
int |
schemaVersionNumber() |
void |
writeMetadata(byte[] bytes,
org.apache.solr.util.hll.IHLLMetadata metadata)
Writes metadata bytes to serialized HLL.
|
int paddingBytes(HLLType type)
type
- the type of the serialized HLLvoid writeMetadata(byte[] bytes, org.apache.solr.util.hll.IHLLMetadata metadata)
bytes
- the padded data bytes of the HLLmetadata
- the metadata to write to the padding bytesorg.apache.solr.util.hll.IHLLMetadata readMetadata(byte[] bytes)
bytes
- the serialized HLLorg.apache.solr.util.hll.IWordSerializer getSerializer(HLLType type, int wordLength, int wordCount)
type
- the HLL type that will be serialized. This cannot be
null
.wordLength
- the length of the 'words' that comprise the data of the
HLL. Words must be at least 5 bits and at most 64 bits long.wordCount
- the number of 'words' in the HLL's data.paddingBytes(HLLType)
,
IWordSerializer
IWordDeserializer getDeserializer(HLLType type, int wordLength, byte[] bytes)
type
- the HLL type that will be deserialized. This cannot be
null
.wordLength
- the length of the 'words' that comprise the data of the
serialized HLL. Words must be at least 5 bits and at most 64
bits long.bytes
- the serialized HLL to deserialize. This cannot be
null
.int schemaVersionNumber()
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.