Class Utils.HistogramKeyMarshaller

  • All Implemented Interfaces:
    net.openhft.chronicle.core.io.Resettable, net.openhft.chronicle.core.util.ReadResolvable<Utils.HistogramKeyMarshaller>, net.openhft.chronicle.hash.serialization.BytesReader<Utils.HistogramKey>, net.openhft.chronicle.hash.serialization.BytesWriter<Utils.HistogramKey>, net.openhft.chronicle.wire.Marshallable, net.openhft.chronicle.wire.ReadMarshallable, net.openhft.chronicle.wire.WriteMarshallable, net.openhft.chronicle.wire.WriteValue
    Enclosing class:
    Utils

    public static class Utils.HistogramKeyMarshaller
    extends Object
    implements net.openhft.chronicle.hash.serialization.BytesReader<Utils.HistogramKey>, net.openhft.chronicle.hash.serialization.BytesWriter<Utils.HistogramKey>, net.openhft.chronicle.core.util.ReadResolvable<Utils.HistogramKeyMarshaller>
    (For now, a rather trivial) encoding of Utils.HistogramKey the form short length and bytes Consider using chronicle-values or making this stateful with a local byte[] / Stringbuffers to be a little more efficient about encodings.
    • Method Detail

      • readMarshallable

        public void readMarshallable​(@NotNull
                                     net.openhft.chronicle.wire.WireIn wire)
                              throws net.openhft.chronicle.core.io.IORuntimeException
        Specified by:
        readMarshallable in interface net.openhft.chronicle.wire.Marshallable
        Specified by:
        readMarshallable in interface net.openhft.chronicle.wire.ReadMarshallable
        Throws:
        net.openhft.chronicle.core.io.IORuntimeException
      • writeMarshallable

        public void writeMarshallable​(@NotNull
                                      net.openhft.chronicle.wire.WireOut wire)
        Specified by:
        writeMarshallable in interface net.openhft.chronicle.wire.Marshallable
        Specified by:
        writeMarshallable in interface net.openhft.chronicle.wire.WriteMarshallable
      • write

        public void write​(net.openhft.chronicle.bytes.Bytes out,
                          @NotNull
                          Utils.HistogramKey toWrite)
        Specified by:
        write in interface net.openhft.chronicle.hash.serialization.BytesWriter<Utils.HistogramKey>