Class CompressionTable<T>

  • All Implemented Interfaces:, scala.Equals, scala.Product, scala.Serializable

    public final class CompressionTable<T>
    extends java.lang.Object
    implements scala.Product, scala.Serializable
    INTERNAL API: Versioned compression table to be advertised between systems

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

    See Also:
    Serialized Form
    • Constructor Detail

      • CompressionTable

        public CompressionTable​(long originUid,
                                byte version,
                                scala.collection.immutable.Map<T,​java.lang.Object> 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)
      • unapply

        public static <T> scala.Option<scala.Tuple3<java.lang.Object,​java.lang.Object,​scala.collection.immutable.Map<T,​java.lang.Object>>> unapply​(CompressionTable<T> x$0)
      • 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)
      • copy

        public <T> CompressionTable<T> copy​(long originUid,
                                            byte version,
                                            scala.collection.immutable.Map<T,​java.lang.Object> dictionary)
      • copy$default$1

        public <T> long copy$default$1()
      • copy$default$2

        public <T> byte copy$default$2()
      • copy$default$3

        public <T> scala.collection.immutable.Map<T,​java.lang.Object> copy$default$3()
      • productPrefix

        public java.lang.String productPrefix()
        Specified by:
        productPrefix in interface scala.Product
      • productArity

        public int productArity()
        Specified by:
        productArity in interface scala.Product
      • productElement

        public java.lang.Object productElement​(int x$1)
        Specified by:
        productElement in interface scala.Product
      • productIterator

        public scala.collection.Iterator<java.lang.Object> productIterator()
        Specified by:
        productIterator in interface scala.Product
      • canEqual

        public boolean canEqual​(java.lang.Object x$1)
        Specified by:
        canEqual in interface scala.Equals
      • hashCode

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

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

        public boolean equals​(java.lang.Object x$1)
        Specified by:
        equals in interface scala.Equals
        equals in class java.lang.Object