Class LongSet


  • final class LongSet
    extends java.lang.Object
    Sets of long values, used to support ll_set/getIntValue that manipulate v2 style long data
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int lastLongCode  
      private java.util.HashMap<java.lang.Long,​java.lang.Integer> long2int  
      private java.util.ArrayList<java.lang.Long> longs  
    • Constructor Summary

      Constructors 
      Constructor Description
      LongSet()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) int getCodeForLong​(java.lang.Long s)
      get the code for a long, adding it to the long table if not already there.
      (package private) java.lang.Long getLongForCode​(int longCode)  
      (package private) int getSize()  
      (package private) void reset()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • lastLongCode

        private int lastLongCode
      • longs

        private final java.util.ArrayList<java.lang.Long> longs
      • long2int

        private final java.util.HashMap<java.lang.Long,​java.lang.Integer> long2int
    • Constructor Detail

      • LongSet

        LongSet()
    • Method Detail

      • reset

        void reset()
      • getLongForCode

        java.lang.Long getLongForCode​(int longCode)
      • getCodeForLong

        int getCodeForLong​(java.lang.Long s)
        get the code for a long, adding it to the long table if not already there.
        Parameters:
        s - The long.
        Returns:
        The code corresponding to the long, which can be used in the getLongForCode call above
      • getSize

        int getSize()