Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-776

TimestampFilter should serialize start and end as longs in the IteratorSetting

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.4.1
    • 1.4.3, 1.5.0
    • client
    • None

    Description

      Although the TimestampFilter supports using longs to set the start or end timestamp, it formats them as strings using SimpleDateFormat when storing or retrieving them in the IteratorSetting.

      This results in exceptions when the timestamps being used aren't able to be formatted as yyyyMMddHHmmssz. For example, try setEnd(253402300800001,true)

      Instead, setStart() and setEnd() could just as easily use String.valueOf(long i) to store the values, and init() could retrieve them using Long.valueOf(String s).

      Attachments

        1. ACCUMULO-776_1.4.patch
          3 kB
          Billie Rinaldi
        2. ACCUMULO-776.patch
          6 kB
          Billie Rinaldi
        3. ACCUMULO-776.patch
          4 kB
          Billie Rinaldi

        Activity

          People

            billie Billie Rinaldi
            marciosilva Marcio Silva
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: