public abstract class AbstractKeyOrder<E> extends Object implements IKeyOrder<E>
Constructor and Description |
---|
AbstractKeyOrder() |
Modifier and Type | Method and Description |
---|---|
protected void |
appendKeyComponent(IKeyBuilder keyBuilder,
int index,
Object keyComponent)
Encodes an value into the key.
|
byte[] |
getFromKey(IKeyBuilder keyBuilder,
IPredicate<E> predicate)
Return the inclusive lower bound which would be used for a query against
this
IKeyOrder for the given IPredicate . |
byte[] |
getKey(IKeyBuilder keyBuilder,
E element)
Return the key for an element of the relation.
|
byte[] |
getToKey(IKeyBuilder keyBuilder,
IPredicate<E> predicate)
Return the exclusive upper bound which would be used for a query against
this
IKeyOrder for the given IPredicate . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getComparator, getIndexName, getKeyArity, getKeyOrder
public byte[] getKey(IKeyBuilder keyBuilder, E element)
ITupleSerializer.serializeKey(Object)
. For example, this
does not play well with the DefaultTupleSerializer
.public byte[] getFromKey(IKeyBuilder keyBuilder, IPredicate<E> predicate)
IKeyOrder
IKeyOrder
for the given IPredicate
.getFromKey
in interface IKeyOrder<E>
keyBuilder
- The object which will be used to construct the key.predicate
- A predicate describing bound and unbound fields for the key.IPredicate
.public byte[] getToKey(IKeyBuilder keyBuilder, IPredicate<E> predicate)
IKeyOrder
IKeyOrder
for the given IPredicate
.getToKey
in interface IKeyOrder<E>
keyBuilder
- The object which will be used to construct the key.predicate
- A predicate describing bound and unbound fields for the key.IPredicate
.protected void appendKeyComponent(IKeyBuilder keyBuilder, int index, Object keyComponent)
IKeyBuilder
. If you need to specialize how a value
gets encoded into the key then you can override this method.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.