Class CompressionTable<T>

  • public final class CompressionTable<T>
    extends java.lang.Object
    INTERNAL API: Versioned compression table to be advertised between systems

    param: version Either -1 for disabled or a version between 0 and 127

    • Constructor Detail

      • CompressionTable

        public CompressionTable​(long originUid,
                                byte version,
                                org.agrona.collections.Object2IntHashMap<T> _dictionary)
    • Method Detail

      • NotCompressedId

        public static final int NotCompressedId()
      • CompareBy2ndValue

        public static final java.util.Comparator<scala.Tuple2<java.lang.Object,​java.lang.Object>> CompareBy2ndValue()
      • compareBy2ndValue

        public static <T> java.util.Comparator<scala.Tuple2<T,​java.lang.Object>> compareBy2ndValue()
      • apply

        public static <T> CompressionTable<T> apply​(long originUid,
                                                    byte version,
                                                    scala.collection.immutable.Map<T,​java.lang.Object> dictionary)
      • originUid

        public long originUid()
      • version

        public byte version()
      • dictionary

        public scala.collection.immutable.Map<T,​java.lang.Object> dictionary()
      • compress

        public int compress​(T value)
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        equals in class java.lang.Object