Interface FloatArray

All Superinterfaces:
org.apache.lucene.util.Accountable, AutoCloseable, BigArray, Closeable, Releasable

public interface FloatArray extends BigArray
Abstraction of an array of double values.
  • Field Summary

    Fields inherited from interface org.apache.lucene.util.Accountable

    NULL_ACCOUNTABLE
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    fill(long fromIndex, long toIndex, float value)
    Fill slots between fromIndex inclusive to toIndex exclusive with value.
    float
    get(long index)
    Get an element given its index.
    void
    set(long index, byte[] buf, int offset, int len)
    Bulk set.
    float
    set(long index, float 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.core.Releasable

    close
  • Method Details

    • get

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

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

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

      void set(long index, byte[] buf, int offset, int len)
      Bulk set.