Class BinaryConfiguration

    • Field Detail

      • DFLT_COMPACT_FOOTER

        public static final boolean DFLT_COMPACT_FOOTER
        Default compact footer flag setting.
        See Also:
        Constant Field Values
    • Constructor Detail

      • BinaryConfiguration

        public BinaryConfiguration()
    • Method Detail

      • setClassNames

        public BinaryConfiguration setClassNames​(Collection<String> clsNames)
        Sets class names of binary objects explicitly.
        Parameters:
        clsNames - Class names.
        Returns:
        this for chaining.
      • getIdMapper

        public BinaryIdMapper getIdMapper()
        Gets ID mapper.
        Returns:
        ID mapper.
      • getNameMapper

        public BinaryNameMapper getNameMapper()
        Gets name mapper.
        Returns:
        Name mapper.
      • setNameMapper

        public BinaryConfiguration setNameMapper​(BinaryNameMapper nameMapper)
        Sets name mapper.
        Parameters:
        nameMapper - Name mapper.
        Returns:
        this for chaining.
      • getSerializer

        public BinarySerializer getSerializer()
        Gets serializer.
        Returns:
        Serializer.
      • isCompactFooter

        public boolean isCompactFooter()
        Get whether to write footers in compact form. When enabled, Ignite will not write fields metadata when serializing objects, because internally BinaryMarshaller already distribute metadata inside cluster. This increases serialization performance.

        WARNING! This mode should be disabled when already serialized data can be taken from some external sources (e.g. cache store which stores data in binary form, data center replication, etc.). Otherwise binary objects without any associated metadata could appear in the cluster and Ignite will not be able to deserialize it.

        Defaults to DFLT_COMPACT_FOOTER.

        Returns:
        Whether to write footers in compact form.
      • setCompactFooter

        public BinaryConfiguration setCompactFooter​(boolean compactFooter)
        Set whether to write footers in compact form. See isCompactFooter() for more info.
        Parameters:
        compactFooter - Whether to write footers in compact form.
        Returns:
        this for chaining.