Class B2I_v10_2

  • All Implemented Interfaces:
    java.io.Externalizable, java.io.Serializable, java.lang.Comparable, Formatable, Storable, TypedFormat, Conglomerate, DataValueDescriptor, Orderable

    public class B2I_v10_2
    extends B2I
    Class used to instantiate 10.2 version of the B2I object. This class implements the format of the B2I object as existed in the 10.2 and previous releases of Derby. In subsequent releases the format was enhanced to store the Collation Id of the columns in the index. Collation can be configured on a per column basis to allow for alter sort ordering of each column. One use of this is to allow a column to be sorted according to language based rules rather than the default numerical ordering of the binary value. For upgrade purpose all columns stored with ACCESS_B2I_V3_ID format are assumed to be USC_BASIC collation id (ie. the default numerical ordering, rather than any alternate collation). This class reads and writes the V3 version to/from disk and reads/writes current in-memory version of the data structure.
    See Also:
    Serialized Form
    • Constructor Detail

      • B2I_v10_2

        public B2I_v10_2()
        No arg constructor, required by Formatable.
    • Method Detail

      • getTypeFormatId

        public int getTypeFormatId()
        Return my format identifier.

        This identifier was used for B2I in all Derby versions prior to and including 10.2. Databases hard upgraded to a version subsequent to 10.2 will write the new format, see B2I. Databases created in a version subsequent to 10.2 will also write the new formate, see B2I.

        Specified by:
        getTypeFormatId in interface TypedFormat
        Overrides:
        getTypeFormatId in class B2I
        Returns:
        The identifier. (A UUID stuffed in an array of 16 bytes).
        See Also:
        TypedFormat.getTypeFormatId()
      • writeExternal

        public void writeExternal​(java.io.ObjectOutput out)
                           throws java.io.IOException
        Store the stored representation of the column value in the stream.

        For more detailed description of the format see documentation at top of file.

        Specified by:
        writeExternal in interface java.io.Externalizable
        Overrides:
        writeExternal in class B2I
        Throws:
        java.io.IOException - thrown by writeObject()
        See Also:
        Externalizable.writeExternal(java.io.ObjectOutput)