V
- The value type of the document identifier.public interface IKeyBuilderExtension<V>
Note: This was developed to provide backwards compatibility for the full text
index with the change of term identifiers from simple long
values to variable length IV
s. However, the extension principle is of
general use and a similar mechanism exists to allow the override when
assembling key components for IKeyOrder
.
Modifier and Type | Method and Description |
---|---|
int |
byteLength(V obj)
Return as-encoded byte length of an object.
|
V |
decode(byte[] key,
int off)
Decode an object from an unsigned byte[] key.
|
void |
encode(IKeyBuilder keyBuilder,
V obj)
Encode the object.
|
V decode(byte[] key, int off)
key
- The key.off
- The offset of the start of the encoded object.int byteLength(V obj)
obj
- The object.void encode(IKeyBuilder keyBuilder, V obj)
keyBuilder
- The object being used to encode the key.obj
- The object to be encoded.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.