org.apache.lucene.util

## Class LongValues

- java.lang.Object
- - org.apache.lucene.util.LongValues

- Direct Known Subclasses:
    AbstractPagedMutable, BlockPackedReader, DirectMonotonicReader, MonotonicBlockPackedReader, PackedLongValues

      public abstract class LongValues
      extends Object

  Abstraction over an array of longs.
  NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static LongValues` | `IDENTITY` An instance that returns the provided value.
    `static LongValues` | `ZEROES`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `LongValues()`

  - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `abstract long` | `get(long index)` Get value at `index`.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### IDENTITY

          public static final LongValues IDENTITY

      An instance that returns the provided value.

    - #### ZEROES

          public static final LongValues ZEROES

  - ### Constructor Detail

    - #### LongValues

          public LongValues()

  - ### Method Detail

    - #### get

          public abstract long get(long index)

      Get value at `index`.

Copyright © 2000-2024 Apache Software Foundation. All Rights Reserved.