public class FixedLengthPrefixSplits extends Object implements ISimpleSplitHandler, Serializable, Externalizable
Modifier and Type | Field and Description |
---|---|
protected static org.apache.log4j.Logger |
log |
Constructor and Description |
---|
FixedLengthPrefixSplits(int nbytes) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getSeparatorKey(IndexSegment seg,
int fromIndex,
int toIndex,
int splitAt)
Linear search for the first successor of the keyAt(splitAt) which
differs in the first N bytes.
|
void |
readExternal(ObjectInput in) |
void |
writeExternal(ObjectOutput out) |
public byte[] getSeparatorKey(IndexSegment seg, int fromIndex, int toIndex, int splitAt)
getSeparatorKey
in interface ISimpleSplitHandler
seg
- The IndexSegment
containing the data to be split.fromIndex
- The index of the first tuple which may be considered
(inclusive lower bound).toIndex
- The index of the last tuple which may be considered (exclusive
upper bound).splitAt
- The index of the recommended separator key.null
.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
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.