Class RawMessage

  • All Implemented Interfaces:
    deltix.data.stream.TimeStampedMessage, deltix.qsrv.hf.pub.InstrumentIdentity, deltix.qsrv.hf.pub.InstrumentIdentityInterface, deltix.qsrv.hf.pub.InstrumentMessageInfo, deltix.qsrv.hf.pub.InstrumentMessageInterface, deltix.qsrv.hf.pub.RecordInfo, deltix.qsrv.hf.pub.RecordInterface, java.lang.Comparable<deltix.qsrv.hf.pub.InstrumentMessage>

    public final class RawMessage
    extends deltix.qsrv.hf.pub.InstrumentMessage
    Special message class used by Tick DB server. Contains undecoded message bytes.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      byte[] data  
      int length  
      int offset  
      RecordClassDescriptor type  
      • Fields inherited from class deltix.qsrv.hf.pub.InstrumentMessage

        instrumentType, nanoTime, symbol, timestamp
      • Fields inherited from interface deltix.data.stream.TimeStampedMessage

        INT64_NULL, TIMESTAMP_UNKNOWN
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void copyBytes​(deltix.util.memory.MemoryDataOutput out, int offset)
      Copy bytes from the specified MemoryDataOutput into this message, reusing its bytes field, unless it is null or too small.
      RawMessage copyFrom​(deltix.qsrv.hf.pub.RecordInfo template)  
      protected RawMessage createInstance()  
      boolean equals​(java.lang.Object obj)  
      byte[] getData()  
      int hashCode()  
      void setBytes​(byte[] data, int offset, int length)  
      void setBytes​(deltix.util.memory.MemoryDataOutput out)  
      void setBytes​(deltix.util.memory.MemoryDataOutput out, int offset)  
      void setUpMemoryDataInput​(deltix.util.memory.MemoryDataInput mdi)  
      java.lang.String toString()
      This method is not very efficient, but will work for console debug output, etc.
      void writeTo​(deltix.util.memory.MemoryDataOutput out)  
      • Methods inherited from class deltix.qsrv.hf.pub.InstrumentMessage

        clone, compareTime, compareTime, compareTo, formatNanos, getInstrumentType, getNanoTime, getSymbol, getTimeStampMs, getTimeString, hasInstrumentType, hasNanoTime, hasSymbol, hasTimeStampMs, nullify, nullifyInstrumentType, nullifyNanoTime, nullifySymbol, nullifyTimeStampMs, reset, setInstrumentType, setNanoTime, setSymbol, setTimeStampMs, toString
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • data

        public byte[] data
      • offset

        public int offset
      • length

        public int length
    • Method Detail

      • setBytes

        public final void setBytes​(deltix.util.memory.MemoryDataOutput out)
      • setBytes

        public final void setBytes​(deltix.util.memory.MemoryDataOutput out,
                                   int offset)
      • setBytes

        public final void setBytes​(byte[] data,
                                   int offset,
                                   int length)
      • copyBytes

        public final void copyBytes​(deltix.util.memory.MemoryDataOutput out,
                                    int offset)
        Copy bytes from the specified MemoryDataOutput into this message, reusing its bytes field, unless it is null or too small.
      • setUpMemoryDataInput

        public final void setUpMemoryDataInput​(deltix.util.memory.MemoryDataInput mdi)
      • writeTo

        public final void writeTo​(deltix.util.memory.MemoryDataOutput out)
      • toString

        public java.lang.String toString()
        This method is not very efficient, but will work for console debug output, etc.
        Overrides:
        toString in class deltix.qsrv.hf.pub.InstrumentMessage
      • copyFrom

        public RawMessage copyFrom​(deltix.qsrv.hf.pub.RecordInfo template)
        Specified by:
        copyFrom in interface deltix.qsrv.hf.pub.InstrumentMessageInterface
        Specified by:
        copyFrom in interface deltix.qsrv.hf.pub.RecordInterface
        Overrides:
        copyFrom in class deltix.qsrv.hf.pub.InstrumentMessage
      • createInstance

        protected RawMessage createInstance()
        Overrides:
        createInstance in class deltix.qsrv.hf.pub.InstrumentMessage
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class deltix.qsrv.hf.pub.InstrumentMessage
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • getData

        public byte[] getData()