Uploaded image for project: 'Crunch (Retired)'
  1. Crunch (Retired)
  2. CRUNCH-117

Custom subclasses of Tuple don't work with the TupleDeepCopier

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.3.0, 0.4.0
    • 0.5.0
    • Core
    • None

    Description

      We have the option of serializing custom classes that implement the Tuple interface using the following method on PTypeFamily:

      PType<T> tuples(Class<T>, ...)

      These classes act somewhat like case classes in Scala, and can be used to give useful semantics to something that would otherwise be a Tuple4<Integer, String, Double, Integer> (or some such thing.) Right now, we have a bug in which the static TupleFactory.getTupleFactory does not recognize these custom classes, and so they can't be used in a nested fashion with the deep copier.

      Attachments

        1. CRUNCH-117.patch
          12 kB
          Josh Wills
        2. CRUNCH-117b.patch
          14 kB
          Gabriel Reid

        Activity

          People

            jwills Josh Wills
            jwills Josh Wills
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: