Methods Summary |
---|
long | getFreqPointer()Returns the freq pointer of the doc to which the last call of
{@link MultiLevelSkipListReader#skipTo(int)} has skipped.
return lastFreqPointer;
|
int | getPayloadLength()Returns the payload length of the payload stored just before
the doc to which the last call of {@link MultiLevelSkipListReader#skipTo(int)}
has skipped.
return lastPayloadLength;
|
long | getProxPointer()Returns the prox pointer of the doc to which the last call of
{@link MultiLevelSkipListReader#skipTo(int)} has skipped.
return lastProxPointer;
|
void | init(long skipPointer, long freqBasePointer, long proxBasePointer, int df, boolean storesPayloads)
super.init(skipPointer, df);
this.currentFieldStoresPayloads = storesPayloads;
lastFreqPointer = freqBasePointer;
lastProxPointer = proxBasePointer;
Arrays.fill(freqPointer, freqBasePointer);
Arrays.fill(proxPointer, proxBasePointer);
Arrays.fill(payloadLength, 0);
|
protected int | readSkipData(int level, org.apache.lucene.store.IndexInput skipStream)
int delta;
if (currentFieldStoresPayloads) {
// the current field stores payloads.
// if the doc delta is odd then we have
// to read the current payload length
// because it differs from the length of the
// previous payload
delta = skipStream.readVInt();
if ((delta & 1) != 0) {
payloadLength[level] = skipStream.readVInt();
}
delta >>>= 1;
} else {
delta = skipStream.readVInt();
}
freqPointer[level] += skipStream.readVInt();
proxPointer[level] += skipStream.readVInt();
return delta;
|
protected void | seekChild(int level)
super.seekChild(level);
freqPointer[level] = lastFreqPointer;
proxPointer[level] = lastProxPointer;
payloadLength[level] = lastPayloadLength;
|
protected void | setLastSkipData(int level)
super.setLastSkipData(level);
lastFreqPointer = freqPointer[level];
lastProxPointer = proxPointer[level];
lastPayloadLength = payloadLength[level];
|