Github user choang commented on a diff in the pull request:

    https://github.com/apache/storm/pull/705#discussion_r41186043
  
    --- Diff: external/storm-kafka/src/jvm/storm/kafka/StateStore.java ---
    @@ -0,0 +1,43 @@
    +package storm.kafka;
    +
    +import java.util.Map;
    +
    +/**
    + * Abstraction of a partition state storage.
    + *
    + * The partition state usually is kept in Json format in the store and in 
Map format in runtime memory. An example
    + * is shown below:
    + *
    + * Json:
    + *  {
    + *      "broker": {
    + *          "host": "kafka.sample.net",
    + *          "port": 9092
    + *      },
    + *      "offset": 4285,
    + *      "partition": 1,
    + *      "topic": "testTopic",
    + *      "topology": {
    + *          "id": "fce905ff-25e0 -409e-bc3a-d855f 787d13b",
    + *          "name": "Test Topology"
    + *      }
    + *  }
    + *
    + * Memory:
    + *  Map<Object, Object> data = (Map<Object, Object>) ImmutableMap.builder()
    + *        .put("topology", ImmutableMap.of(
    + *                "id", "fce905ff-25e0 -409e-bc3a-d855f 787d13b",
    + *                "name", "Test Topology"))
    + *        .put("offset", 4285)
    + *        .put("partition", 1)
    + *        .put("broker", ImmutableMap.of(
    + *                "host", "kafka.sample.net",
    + *                "port", 9092))
    + *        .put("topic", "testTopic").build();
    + */
    +public interface StateStore {
    --- End diff --
    
    extends <tt>Closeable</tt>


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to