Section navigation

Public classSealed SegmentReader

Namespace
Rowles.LeanCorpus.Index.Segment
Assembly
Rowles.LeanCorpus.dll

Metadata-first facade for one immutable segment. Heavy codec state is loaded on first use and retained privately or through a searcher's bounded reader cache.

public sealed class SegmentReader : IDisposable
Inheritance
SegmentReader
Implements

Public constructor SegmentReader(MMapDirectory, SegmentInfo)

Creates a lazy reader that privately retains its heavy state.

Public property DocBase

Gets or sets the document base offset for this reader within the global document namespace.

Public property HasDeletions

Public property HasTermVectors

Public property HasVectors

Public property Info

Gets the segment metadata for this reader.

Public property MaxDoc

Gets the total number of documents in this segment, including deleted documents.

Public property VectorFieldNames

Public method Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Public method GetAllTermsForField(string)

Public method GetBinaryDocValues(string)

Public method GetDocFreq(string, string)

Public method GetDocFreqByQualified(string)

Public method GetDocIds(string, string)

Public method GetFieldBoost(int, string)

Public method GetFieldLength(int, string)

Public method GetFuzzyMatches(string, ReadOnlySpan<char>, int, int)

Public method GetInt64DocValues(string)

Public method GetInt64PointsInSet(string, IReadOnlySet<long>)

Public method GetInt64Range(string, long, long)

Public method GetNorm(int, string)

Public method GetNumericDocValues(string)

Public method GetNumericPointsInSet(string, IReadOnlySet<double>)

Public method GetNumericRange(string, double, double)

Public method GetPositions(string, string, int)

Public method GetPostingsEnum(string)

Public method GetPostingsEnumAtOffset(long)

Public method GetPostingsEnumWithPositions(string)

Public method GetSortedDocValueTerms(string)

Returns the sorted local term dictionary for a field, or null if unavailable.

Public method GetSortedDocValues(string)

Public method GetSortedInt64DocValues(string)

Public method GetSortedNumericDocValues(string)

Public method GetSortedSetDocValueTerms(string)

Returns the sorted-set local term dictionary for a field, or null if unavailable.

Public method GetSortedSetDocValues(string)

Public method GetStoredBinaryFields(int)

Public method GetStoredBinaryFields(int, ISet<string>?)

Public method GetStoredFields(int)

Public method GetStoredFields(int, ISet<string>?)

Public method GetTermFrequency(string, string, int)

Public method GetTermVectors(int)

Public method GetTermsInRange(string, string?, string?, bool, bool)

Public method GetTermsMatching(string, ReadOnlySpan<char>)

Public method GetTermsMatchingRegex(string, Regex)

Public method GetTermsWithPrefix(string)

Public method GetVector(int)

Public method GetVector(string, int)

Public method HasFieldValue(string, int)

Public method HasNumericField(string)

Public method IntersectAutomaton(string, IAutomaton)

Public method IsLive(int)

Public method IsSoftDeleted(int, out long)

Public method TryGetBinaryDocValues(string, int, out IReadOnlyList<byte[]>)

Public method TryGetFieldLengths(string, out int[]?)

Public method TryGetInt64Value(string, int, out long)

Public method TryGetNumericValue(string, int, out double)

Public method TryGetSortedDocValue(string, int, out string)

Public method TryGetSortedInt64DocValues(string, int, out IReadOnlyList<long>)

Public method TryGetSortedNumericDocValues(string, int, out IReadOnlyList<double>)

Public method TryGetSortedSetDocValues(string, int, out IReadOnlyList<string>)