Class Clustering.Serializer

  • Enclosing interface:
    Clustering<V>

    public static class Clustering.Serializer
    extends java.lang.Object
    Serializer for Clustering object.

    Because every clustering in a given table must have the same size (ant that size cannot actually change once the table has been defined), we don't record that size.

    • Constructor Detail

      • Serializer

        public Serializer()
    • Method Detail

      • serialize

        public void serialize​(Clustering<?> clustering,
                              DataOutputPlus out,
                              int version,
                              java.util.List<AbstractType<?>> types)
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • serialize

        public java.nio.ByteBuffer serialize​(Clustering<?> clustering,
                                             int version,
                                             java.util.List<AbstractType<?>> types)
      • serializedSize

        public long serializedSize​(Clustering<?> clustering,
                                   int version,
                                   java.util.List<AbstractType<?>> types)
      • skip

        public void skip​(DataInputPlus in,
                         int version,
                         java.util.List<AbstractType<?>> types)
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • deserialize

        public Clustering<byte[]> deserialize​(DataInputPlus in,
                                              int version,
                                              java.util.List<AbstractType<?>> types)
                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • deserialize

        public Clustering<byte[]> deserialize​(java.nio.ByteBuffer in,
                                              int version,
                                              java.util.List<AbstractType<?>> types)