Search in sources :

Example 1 with StreamsMaterializedWindowedTable

use of io.confluent.ksql.execution.streams.materialization.StreamsMaterializedWindowedTable in project ksql by confluentinc.

the class KsMaterializationTest method shouldReturnWindowedForSession.

@Test
public void shouldReturnWindowedForSession() {
    // Given:
    givenWindowType(Optional.of(WindowType.SESSION));
    // When:
    final StreamsMaterializedWindowedTable table = materialization.windowed();
    // Then:
    assertThat(table, is(instanceOf(KsMaterializedSessionTable.class)));
}
Also used : StreamsMaterializedWindowedTable(io.confluent.ksql.execution.streams.materialization.StreamsMaterializedWindowedTable) Test(org.junit.Test)

Example 2 with StreamsMaterializedWindowedTable

use of io.confluent.ksql.execution.streams.materialization.StreamsMaterializedWindowedTable in project ksql by confluentinc.

the class KsMaterializationTest method shouldReturnWindowedForTumbling.

@Test
public void shouldReturnWindowedForTumbling() {
    // Given:
    givenWindowType(Optional.of(WindowType.TUMBLING));
    // When:
    final StreamsMaterializedWindowedTable table = materialization.windowed();
    // Then:
    assertThat(table, is(instanceOf(KsMaterializedWindowTable.class)));
}
Also used : StreamsMaterializedWindowedTable(io.confluent.ksql.execution.streams.materialization.StreamsMaterializedWindowedTable) Test(org.junit.Test)

Example 3 with StreamsMaterializedWindowedTable

use of io.confluent.ksql.execution.streams.materialization.StreamsMaterializedWindowedTable in project ksql by confluentinc.

the class KsMaterializationTest method shouldReturnWindowedForHopping.

@Test
public void shouldReturnWindowedForHopping() {
    // Given:
    givenWindowType(Optional.of(WindowType.HOPPING));
    // When:
    final StreamsMaterializedWindowedTable table = materialization.windowed();
    // Then:
    assertThat(table, is(instanceOf(KsMaterializedWindowTable.class)));
}
Also used : StreamsMaterializedWindowedTable(io.confluent.ksql.execution.streams.materialization.StreamsMaterializedWindowedTable) Test(org.junit.Test)

Aggregations

StreamsMaterializedWindowedTable (io.confluent.ksql.execution.streams.materialization.StreamsMaterializedWindowedTable)3 Test (org.junit.Test)3