Table of Contents

Internal classSealedInternal ParentBitSet

Namespace
Rowles.LeanLucene.Index.Segment
Assembly
Rowles.LeanLucene.dll

A bitset tracking which document IDs within a segment are parent documents. Used by the block-join indexing pattern where child documents are stored immediately before their parent document.

internal sealed class ParentBitSet
ParentBitSet

Public constructor ParentBitSet(int)

Public property Length

Public method IsParent(int)

Returns true if the given doc ID is a parent document.

Public method NextParent(int)

Returns the next parent doc ID at or after docId, or -1 if no parent exists at or beyond that position.

Public method PrevParent(int)

Returns the previous parent doc ID strictly before docId, or -1 if no parent exists before that position.

Public method ReadFrom(string)

Reads a bitset from a binary file (.pbs).

Public method Set(int)

Marks the given doc ID as a parent document.

Public method WriteTo(string)

Writes the bitset to a binary file (.pbs).