Show / Hide Table of Contents

    Class ByteSliceReader

    IndexInput that knows how to read the byte slices written by Posting and PostingVector. We read the bytes in each slice until we hit the end of that slice at which point we read the forwarding address of the next slice and then jump to it.

    Inheritance
    System.Object
    DataInput
    ByteSliceReader
    Inherited Members
    DataInput.ReadBytes(Byte[], Int32, Int32, Boolean)
    DataInput.ReadInt16()
    DataInput.ReadInt32()
    DataInput.ReadVInt32()
    DataInput.ReadInt64()
    DataInput.ReadVInt64()
    DataInput.ReadString()
    DataInput.Clone()
    DataInput.ReadStringStringMap()
    DataInput.ReadStringSet()
    DataInput.SkipBytes(Int64)
    Namespace: Lucene.Net.Index
    Assembly: Lucene.Net.dll
    Syntax
    public sealed class ByteSliceReader : DataInput

    Properties

    | Improve this Doc View Source

    BufferOffset

    Declaration
    public int BufferOffset { get; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    EndIndex

    Declaration
    public int EndIndex { get; }
    Property Value
    Type Description
    System.Int32

    Methods

    | Improve this Doc View Source

    Eof()

    Declaration
    public bool Eof()
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Init(ByteBlockPool, Int32, Int32)

    Declaration
    public void Init(ByteBlockPool pool, int startIndex, int endIndex)
    Parameters
    Type Name Description
    ByteBlockPool pool
    System.Int32 startIndex
    System.Int32 endIndex
    | Improve this Doc View Source

    NextSlice()

    Declaration
    public void NextSlice()
    | Improve this Doc View Source

    ReadByte()

    Declaration
    public override byte ReadByte()
    Returns
    Type Description
    System.Byte
    Overrides
    DataInput.ReadByte()
    | Improve this Doc View Source

    ReadBytes(Byte[], Int32, Int32)

    Declaration
    public override void ReadBytes(byte[] b, int offset, int len)
    Parameters
    Type Name Description
    System.Byte[] b
    System.Int32 offset
    System.Int32 len
    Overrides
    DataInput.ReadBytes(Byte[], Int32, Int32)
    | Improve this Doc View Source

    WriteTo(DataOutput)

    Declaration
    public long WriteTo(DataOutput out)
    Parameters
    Type Name Description
    DataOutput out
    Returns
    Type Description
    System.Int64
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)