public abstract class PointReader
extends java.lang.Object
implements java.io.Closeable
PointWriter
, abstracting away whether points a read
from (offline) disk or simple arrays in heap.Constructor and Description |
---|
PointReader() |
Modifier and Type | Method and Description |
---|---|
abstract int |
docID()
DocID for this point
|
void |
markOrds(long count,
LongBitSet ordBitSet)
Iterates through the next
count ords, marking them in the provided ordBitSet . |
abstract boolean |
next()
Returns false once iteration is done, else true.
|
abstract long |
ord()
Point ordinal
|
abstract byte[] |
packedValue()
Returns the packed byte[] value
|
long |
split(long count,
LongBitSet rightTree,
PointWriter left,
PointWriter right,
boolean doClearBits)
Splits this reader into left and right partitions
|
public abstract boolean next() throws java.io.IOException
java.io.IOException
public abstract byte[] packedValue()
public abstract long ord()
public abstract int docID()
public void markOrds(long count, LongBitSet ordBitSet) throws java.io.IOException
count
ords, marking them in the provided ordBitSet
.java.io.IOException
public long split(long count, LongBitSet rightTree, PointWriter left, PointWriter right, boolean doClearBits) throws java.io.IOException
java.io.IOException
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.