Interface IntArray

    • Method Summary

      Modifier and Type Method and Description
      void fill(long fromIndex, long toIndex, int value)
      Fill slots between fromIndex inclusive to toIndex exclusive with value.
      int get(long index)
      Get an element given its index.
      int increment(long index, int inc)
      Increment value at the given index by inc and return the value.
      int set(long index, int value)
      Set a value at the given index and return the previous value.
      • Methods inherited from interface org.elasticsearch.common.util.BigArray

        size
      • Methods inherited from interface org.elasticsearch.common.lease.Releasable

        close
      • Methods inherited from interface org.apache.lucene.util.Accountable

        ramBytesUsed
    • Method Detail

      • get

        int get(long index)
        Get an element given its index.
      • set

        int set(long index,
                int value)
        Set a value at the given index and return the previous value.
      • increment

        int increment(long index,
                      int inc)
        Increment value at the given index by inc and return the value.
      • fill

        void fill(long fromIndex,
                  long toIndex,
                  int value)
        Fill slots between fromIndex inclusive to toIndex exclusive with value.