com.bigdata.btree.proc
Class AbstractKeyRangeIndexProcedure
java.lang.Object
com.bigdata.btree.proc.AbstractIndexProcedure
com.bigdata.btree.proc.AbstractKeyRangeIndexProcedure
- All Implemented Interfaces:
- IIndexProcedure, IKeyRangeIndexProcedure, Externalizable, Serializable
- Direct Known Subclasses:
- RangeCountProcedure
public abstract class AbstractKeyRangeIndexProcedure
- extends AbstractIndexProcedure
- implements IKeyRangeIndexProcedure, Externalizable
- Version:
- $Id: AbstractKeyRangeIndexProcedure.java 2265 2009-10-26 12:51:06Z thompsonbry $
- Author:
- Bryan Thompson
- See Also:
- Serialized Form
|
Field Summary |
protected byte[] |
fromKey
|
protected byte[] |
toKey
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fromKey
protected byte[] fromKey
toKey
protected byte[] toKey
AbstractKeyRangeIndexProcedure
public AbstractKeyRangeIndexProcedure()
- De-serialization ctor.
AbstractKeyRangeIndexProcedure
public AbstractKeyRangeIndexProcedure(byte[] fromKey,
byte[] toKey)
getFromKey
public byte[] getFromKey()
- Description copied from interface:
IKeyRangeIndexProcedure
- Return the lowest key that will be visited (inclusive). When
null there is no lower bound.
- Specified by:
getFromKey in interface IKeyRangeIndexProcedure
getToKey
public byte[] getToKey()
- Description copied from interface:
IKeyRangeIndexProcedure
- Return the first key that will not be visited (exclusive). When
null there is no upper bound.
- Specified by:
getToKey in interface IKeyRangeIndexProcedure
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
- Specified by:
readExternal in interface Externalizable
- Throws:
IOException
ClassNotFoundException
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
- Specified by:
writeExternal in interface Externalizable
- Throws:
IOException
readKeys
protected void readKeys(ObjectInput in)
throws IOException,
ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
writeKeys
protected void writeKeys(ObjectOutput out)
throws IOException
- Throws:
IOException
constrainFromKey
public static byte[] constrainFromKey(byte[] fromKey,
ISeparatorKeys pmd)
- Constrain the fromKey to lie within the index partition.
- Parameters:
fromKey - The fromKey.pmd - The index partition metadata (MAY be null).
- Returns:
- The fromKey -or- the leftSeparator key of the index
partition IFF pmd is non-
null AND the
fromKey is LT the leftSeparator key.
constrainToKey
public static byte[] constrainToKey(byte[] toKey,
ISeparatorKeys pmd)
- Constrain the toKey to lie within the index partition.
- Parameters:
toKey - The toKey.pmd - The index partition metadata (MAY be null).
- Returns:
- The toKey -or- the rightSeparator key of the index
partition IFF pmd is non-
null AND the
toKey is GT the rightSeparator key.
Copyright © 2006-2009 SYSTAP, LLC. All Rights Reserved.