Show / Hide Table of Contents

    Class SegmentReadState

    Holder class for common parameters used during read.

    This is a Lucene.NET EXPERIMENTAL API, use at your own risk
    Inheritance
    System.Object
    SegmentReadState
    Namespace: Lucene.Net.Index
    Assembly: Lucene.Net.dll
    Syntax
    public class SegmentReadState : object

    Constructors

    | Improve this Doc View Source

    SegmentReadState(SegmentReadState, String)

    Create a SegmentReadState.

    Declaration
    public SegmentReadState(SegmentReadState other, string newSegmentSuffix)
    Parameters
    Type Name Description
    SegmentReadState other
    System.String newSegmentSuffix
    | Improve this Doc View Source

    SegmentReadState(Directory, SegmentInfo, FieldInfos, IOContext, Int32)

    Create a SegmentReadState.

    Declaration
    public SegmentReadState(Directory dir, SegmentInfo info, FieldInfos fieldInfos, IOContext context, int termsIndexDivisor)
    Parameters
    Type Name Description
    Directory dir
    SegmentInfo info
    FieldInfos fieldInfos
    IOContext context
    System.Int32 termsIndexDivisor
    | Improve this Doc View Source

    SegmentReadState(Directory, SegmentInfo, FieldInfos, IOContext, Int32, String)

    Create a SegmentReadState.

    Declaration
    public SegmentReadState(Directory dir, SegmentInfo info, FieldInfos fieldInfos, IOContext context, int termsIndexDivisor, string segmentSuffix)
    Parameters
    Type Name Description
    Directory dir
    SegmentInfo info
    FieldInfos fieldInfos
    IOContext context
    System.Int32 termsIndexDivisor
    System.String segmentSuffix

    Properties

    | Improve this Doc View Source

    Context

    IOContext to pass to OpenInput(String, IOContext).

    Declaration
    public IOContext Context { get; }
    Property Value
    Type Description
    IOContext
    | Improve this Doc View Source

    Directory

    Directory where this segment is read from.

    Declaration
    public Directory Directory { get; }
    Property Value
    Type Description
    Directory
    | Improve this Doc View Source

    FieldInfos

    FieldInfos describing all fields in this segment.

    Declaration
    public FieldInfos FieldInfos { get; }
    Property Value
    Type Description
    FieldInfos
    | Improve this Doc View Source

    SegmentInfo

    SegmentInfo describing this segment.

    Declaration
    public SegmentInfo SegmentInfo { get; }
    Property Value
    Type Description
    SegmentInfo
    | Improve this Doc View Source

    SegmentSuffix

    Unique suffix for any postings files read for this segment. PerFieldPostingsFormat sets this for each of the postings formats it wraps. If you create a new PostingsFormat then any files you write/read must be derived using this suffix (use SegmentFileName(String, String, String)).

    Declaration
    public string SegmentSuffix { get; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    TermsIndexDivisor

    The termInfosIndexDivisor to use, if appropriate (not all PostingsFormats support it; in particular the current default does not).

    NOTE: if this is < 0, that means "defer terms index load until needed". But if the codec must load the terms index on init (preflex is the only once currently that must do so), then it should negate this value to get the app's terms divisor

    Declaration
    public int TermsIndexDivisor { get; set; }
    Property Value
    Type Description
    System.Int32
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)