Interface DoubleArray

  • All Superinterfaces:
    org.apache.lucene.util.Accountable, java.lang.AutoCloseable, BigArray, java.io.Closeable, Releasable

    public interface DoubleArray
    extends BigArray
    Abstraction of an array of double values.
    • Method Summary

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

        getChildResources, ramBytesUsed
      • Methods inherited from interface org.elasticsearch.common.util.BigArray

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

        close
    • Method Detail

      • get

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

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

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

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