Class CommonSerDes.Header

  • Enclosing class:
    CommonSerDes

    public static class CommonSerDes.Header
    extends java.lang.Object
    HEADERS Serialization versioning There are 1 or 2 words used for versioning. Compressed formats and plain formats with bit xx on in first word use 2nd word First word: - bit in 0x01 position: on for binary non-delta (redundant) - bit in 0x02 position: on means delta, off - not delta - bit in 0x04 position: on means compressed, off means plain binary - bit in 0x08 position: on means type system + indexes def included - bit in 0x10 position: on means type system (only) included - bits 0xF0 reserved - byte in 0xFF 00 position: a sequential version number, incrementing (starting w/ 0) Form 4: 0 = original (UIMA v2) 1 = fixes to original found during V3 development 2 = V3 - byte in 0xFF 00 00 position: special flags with some shared meaning -- bit 0x01 00 00: V3 formats Second word: - bit in 0x01 position: on means form6, off = form 4
    • Constructor Detail

      • Header

        public Header()
    • Method Detail

      • typeSystemIndexDefIncluded

        public CommonSerDes.Header typeSystemIndexDefIncluded​(boolean f)
      • write

        public void write​(java.io.DataOutputStream dos)
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • isDelta

        public boolean isDelta()
      • isCompressed

        public boolean isCompressed()
      • isForm4

        public boolean isForm4()
      • isForm6

        public boolean isForm6()
      • isTypeSystemIndexDefIncluded

        public boolean isTypeSystemIndexDefIncluded()
      • isTypeSystemIncluded

        public boolean isTypeSystemIncluded()
      • getSeqVersionNbr

        public byte getSeqVersionNbr()
      • isV3

        public boolean isV3()