Package org.apache.lucene.search
Class DocAndFloatFeatureBuffer
java.lang.Object
org.apache.lucene.search.DocAndFloatFeatureBuffer
Wrapper around parallel arrays storing doc IDs and their corresponding features, stored as Java
floats. These features may be anything, but are typically a term frequency or a score.
- NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Remove entries from this buffer if their bit is unset in the givenBits
.void
growNoCopy
(int minSize) Grow both arrays to ensure that they can store at least the given number of entries.
-
Field Details
-
docs
public int[] docsDoc IDs -
features
public float[] featuresFloat-valued features -
size
public int sizeNumber of valid entries in the doc ID and float-valued feature arrays.
-
-
Constructor Details
-
DocAndFloatFeatureBuffer
public DocAndFloatFeatureBuffer()Sole constructor.
-
-
Method Details
-
growNoCopy
public void growNoCopy(int minSize) Grow both arrays to ensure that they can store at least the given number of entries. -
apply
Remove entries from this buffer if their bit is unset in the givenBits
.
-