Skip to content

Commit

Permalink
improved documentation for windowStateTable
Browse files Browse the repository at this point in the history
  • Loading branch information
Jendrik Poloczek committed Feb 26, 2017
1 parent f5948f7 commit 85ed23f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,14 @@ When you define your state stores via .stores(stores: Seq[String]) since 1.2 and
props.put(StreamsConfig.TIMESTAMP_EXTRACTOR_CLASS_CONFIG,
classOf[TimestampExtractors.CustomTimestampExtractor].getName)

val builder = MockedStreams()
.topology(topology1WindowOutput)
val mstreams = MockedStreams()
.topology { builder => builder.stream(...) [...] }
.input("in-a", strings, ints, inputA)
.stores(Seq("store-name"))
.config(props)

builder.windowStateTable("store-name", "x") shouldEqual someMapX
builder.windowStateTable("store-name", "y") shouldEqual someMapY
mstreams.windowStateTable("store-name", "x") shouldEqual someMapX
mstreams.windowStateTable("store-name", "y") shouldEqual someMapY

## Custom Streams Configuration

Expand Down

0 comments on commit 85ed23f

Please sign in to comment.