use of org.apache.flink.table.runtime.operators.rank.VariableRankRange in project flink by apache.
the class RankRangeSerdeTest method testRankRange.
@Test
public void testRankRange() throws JsonProcessingException {
ObjectMapper mapper = new ObjectMapper();
RankRange[] ranges = new RankRange[] { new ConstantRankRange(1, 2), new VariableRankRange(3), new ConstantRankRangeWithoutEnd(4) };
for (RankRange range : ranges) {
RankRange result = mapper.readValue(mapper.writeValueAsString(range), RankRange.class);
assertEquals(range.toString(), result.toString());
}
}
Aggregations