public abstract class AbstractKeyRangeIndexProcedure<T> extends AbstractIndexProcedure<T> implements IKeyRangeIndexProcedure<T>, Externalizable
Modifier and Type | Field and Description |
---|---|
protected byte[] |
fromKey |
protected byte[] |
toKey |
Constructor and Description |
---|
AbstractKeyRangeIndexProcedure()
De-serialization ctor.
|
AbstractKeyRangeIndexProcedure(byte[] fromKey,
byte[] toKey) |
Modifier and Type | Method and Description |
---|---|
static byte[] |
constrainFromKey(byte[] fromKey,
ISeparatorKeys pmd)
Constrain the fromKey to lie within the index partition.
|
static byte[] |
constrainToKey(byte[] toKey,
ISeparatorKeys pmd)
Constrain the toKey to lie within the index partition.
|
byte[] |
getFromKey()
Return the lowest key that will be visited (inclusive).
|
byte[] |
getToKey()
Return the first key that will not be visited (exclusive).
|
void |
readExternal(ObjectInput in) |
protected void |
readKeys(ObjectInput in) |
void |
writeExternal(ObjectOutput out) |
protected void |
writeKeys(ObjectOutput out) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply
isReadOnly
public AbstractKeyRangeIndexProcedure()
public AbstractKeyRangeIndexProcedure(byte[] fromKey, byte[] toKey)
public byte[] getFromKey()
IKeyRangeIndexProcedure
null
there is no lower bound.getFromKey
in interface IKeyRangeIndexProcedure<T>
public byte[] getToKey()
IKeyRangeIndexProcedure
null
there is no upper bound.getToKey
in interface IKeyRangeIndexProcedure<T>
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
protected void readKeys(ObjectInput in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
protected void writeKeys(ObjectOutput out) throws IOException
IOException
public static byte[] constrainFromKey(byte[] fromKey, ISeparatorKeys pmd)
fromKey
- The fromKey.pmd
- The index partition metadata (MAY be null).null
AND the
fromKey is LT the leftSeparator key.public static byte[] constrainToKey(byte[] toKey, ISeparatorKeys pmd)
toKey
- The toKey.pmd
- The index partition metadata (MAY be null).null
AND the
toKey is GT the rightSeparator key.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.