Show / Hide Table of Contents

    Class Int64sRef

    Represents long[], as a slice (offset + length) into an existing long[]. The Int64s member should never be null; use EMPTY_INT64S if necessary.

    NOTE: This was LongsRef in Lucene

    This is a Lucene.NET INTERNAL API, use at your own risk
    Inheritance
    System.Object
    Int64sRef
    Namespace: Lucene.Net.Util
    Assembly: Lucene.Net.dll
    Syntax
    public sealed class Int64sRef : IComparable<Int64sRef>

    Constructors

    | Improve this Doc View Source

    Int64sRef()

    Create a Int64sRef with EMPTY_INT64S

    Declaration
    public Int64sRef()
    | Improve this Doc View Source

    Int64sRef(Int32)

    Create a Int64sRef pointing to a new array of size capacity. Offset and length will both be zero.

    Declaration
    public Int64sRef(int capacity)
    Parameters
    Type Name Description
    System.Int32 capacity
    | Improve this Doc View Source

    Int64sRef(Int64[], Int32, Int32)

    This instance will directly reference longs w/o making a copy. longs should not be null.

    Declaration
    public Int64sRef(long[] longs, int offset, int length)
    Parameters
    Type Name Description
    System.Int64[] longs
    System.Int32 offset
    System.Int32 length

    Fields

    | Improve this Doc View Source

    EMPTY_INT64S

    An empty array for convenience

    NOTE: This was EMPTY_LONGS in Lucene

    Declaration
    public static readonly long[] EMPTY_INT64S
    Field Value
    Type Description
    System.Int64[]

    Properties

    | Improve this Doc View Source

    Int64s

    The contents of the Int64sRef. Should never be null.

    NOTE: This was longs (field) in Lucene

    Declaration
    public long[] Int64s { get; set; }
    Property Value
    Type Description
    System.Int64[]
    | Improve this Doc View Source

    Length

    Length of used longs.

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

    Offset

    Offset of first valid long.

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

    Methods

    | Improve this Doc View Source

    Clone()

    Returns a shallow clone of this instance (the underlying s are not copied and will be shared by both the returned object and this object.

    Declaration
    public object Clone()
    Returns
    Type Description
    System.Object
    See Also
    DeepCopyOf(Int64sRef)
    | Improve this Doc View Source

    CompareTo(Int64sRef)

    Signed order comparison

    Declaration
    public int CompareTo(Int64sRef other)
    Parameters
    Type Name Description
    Int64sRef other
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    CopyInt64s(Int64sRef)

    NOTE: This was copyLongs() in Lucene

    Declaration
    public void CopyInt64s(Int64sRef other)
    Parameters
    Type Name Description
    Int64sRef other
    | Improve this Doc View Source

    DeepCopyOf(Int64sRef)

    Creates a new Int64sRef that points to a copy of the s from other.

    The returned Int64sRef will have a length of other.Length and an offset of zero.

    Declaration
    public static Int64sRef DeepCopyOf(Int64sRef other)
    Parameters
    Type Name Description
    Int64sRef other
    Returns
    Type Description
    Int64sRef
    | Improve this Doc View Source

    Equals(Object)

    Declaration
    public override bool Equals(object other)
    Parameters
    Type Name Description
    System.Object other
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    Grow(Int32)

    Used to grow the reference array.

    In general this should not be used as it does not take the offset into account.

    This is a Lucene.NET INTERNAL API, use at your own risk
    Declaration
    public void Grow(int newLength)
    Parameters
    Type Name Description
    System.Int32 newLength
    | Improve this Doc View Source

    Int64sEquals(Int64sRef)

    NOTE: This was longsEquals() in Lucene

    Declaration
    public bool Int64sEquals(Int64sRef other)
    Parameters
    Type Name Description
    Int64sRef other
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    IsValid()

    Performs internal consistency checks. Always returns true (or throws )

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

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)