Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-14370

BinaryMarshallerSelfTest not available for code re-use

    XMLWordPrintableJSON

Details

    • Task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.9.1
    • None
    • binary
    • None
    • Docs Required, Release Notes Required

    Description

      We are building a set of filters which work with BinaryObject format of our POJOs. We want to build test to ensure these filters are built correctly. The idea is:

      1) Use BinaryMarshaller to marshal our POJO  into BinraryObject format

      2) Run our filters against these BinaryObject

      3) Verify the result
       

      We found below 2 functions may be useful for our use case. Are they made available for use? Please also advise any recommended way to test user-defined filters against BinaryObject.

      https://github.com/apache/ignite/blob/master/modules/core/src/test/java/org/apache/ignite/internal/binary/BinaryMarshallerSelfTest.java#L3873

      private <T> BinaryObjectImpl marshal(T obj, BinaryMarshaller marsh) throws IgniteCheckedException {
      

      https://github.com/apache/ignite/blob/master/modules/core/src/test/java/org/apache/ignite/internal/binary/BinaryMarshallerSelfTest.java#L3940

          protected BinaryMarshaller binaryMarshaller(
              BinaryNameMapper nameMapper,
              BinaryIdMapper mapper,
              BinarySerializer serializer,
              Collection<BinaryTypeConfiguration> cfgs,
              Collection<String> excludedClasses
          ) throws IgniteCheckedException {
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            koalalam Koala Lam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: