Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Co-authored-by: Arnaud <[email protected]>
  • Loading branch information
novakov-alexey and arnaud-daroussin authored Dec 20, 2024
1 parent 3f4cc9e commit 172ff9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import org.apache.flinkx.api.serializers._

### State

`flink-scala-api` generates at compile-time specific TypeInformation & TypeSerializer. To use them for state serialization, ensure to replace state descriptor constructors using `Class[T]` param with constructors using `TypeInformation[T]` param:
Ensure to replace state descriptor constructors using `Class[T]` param with constructors using `TypeInformation[T]` or `TypeSerializer[T]` param:
```scala
// state using Kryo
val eventStateDescriptor = new ValueStateDescriptor[Event]("event", classOf[Event])
Expand Down

0 comments on commit 172ff9f

Please sign in to comment.