Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-5917

Remove MapState.size()

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 1.3.0
    • 1.3.0
    • API / DataStream
    • None

    Description

      I'm proposing to remove size() because it is a prohibitively expensive operation and users might not be aware of it. Instead of size() users can use an iterator over all mappings to determine the size, when doing this they will be aware of the fact that it is a costly operation.

      Right now, size() is only costly on the RocksDB state backend but I think with future developments on the in-memory state backend it might also become an expensive operation there.

      Attachments

        Issue Links

          Activity

            People

              shixg Xiaogang Shi
              aljoscha Aljoscha Krettek
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: