Package com.yahoo.jrt

Class Int64Array

java.lang.Object
com.yahoo.jrt.Value
com.yahoo.jrt.Int64Array

public class Int64Array extends Value
64-bit integer array
  • Constructor Details

    • Int64Array

      public Int64Array(long[] value)
      Create from a Java-type value
      Parameters:
      value - the value
  • Method Details

    • type

      public byte type()
      Description copied from class: Value
      Obtain the type identifier for this value
      Specified by:
      type in class Value
      Returns:
      INT64_ARRAY
    • count

      public int count()
      Description copied from class: Value
      Obtain the number of entries stored in this value. This is 1 for basic data types and the size of the array for array types.
      Specified by:
      count in class Value
      Returns:
      the number of entries stored in this value
    • asInt64Array

      public long[] asInt64Array()
      Description copied from class: Value
      Interpret this value as a Int64Array and return the contents as an appropriate Java type
      Overrides:
      asInt64Array in class Value
      Returns:
      the value contained in this object as a Java type
    • toString

      public String toString()
      Description copied from class: Value
      Force a proper toString
      Specified by:
      toString in class Value