Class HashMapLongInt

java.lang.Object
org.apache.sysds.runtime.compress.utils.HashMapLongInt
All Implemented Interfaces:
Iterable<HashMapLongInt.KV>

public class HashMapLongInt extends Object implements Iterable<HashMapLongInt.KV>
  • Constructor Details

    • HashMapLongInt

      public HashMapLongInt(int arrSize)
  • Method Details

    • size

      public int size()
    • putIfAbsent

      public int putIfAbsent(long key, int value)
      return -1 if there was no such key.
      Parameters:
      key - the key to add
      value - The value for that key.
      Returns:
      -1 if there was no such key, otherwise the value
    • get

      public int get(long key)
    • iterator

      public Iterator<HashMapLongInt.KV> iterator()
      Specified by:
      iterator in interface Iterable<HashMapLongInt.KV>
    • toString

      public String toString()
      Overrides:
      toString in class Object