Class HistogramUtils.HistogramKeyMarshaller

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

    public static class HistogramUtils.HistogramKeyMarshaller
    extends Object
    implements net.openhft.chronicle.hash.serialization.BytesReader<HistogramKey>, net.openhft.chronicle.hash.serialization.BytesWriter<HistogramKey>, net.openhft.chronicle.core.util.ReadResolvable<HistogramUtils.HistogramKeyMarshaller>
    (For now, a rather trivial) encoding of 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​(@Nonnull
                                     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​(@Nonnull
                                      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,
                          @Nonnull
                          HistogramKey toWrite)
        Specified by:
        write in interface net.openhft.chronicle.hash.serialization.BytesWriter<HistogramKey>