Skip to content

Commit 6239d8c

Browse files
improve last README update about serializers and Kryo usage
1 parent 7dc4f67 commit 6239d8c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ import org.apache.flink.api.common.typeinfo.TypeInformation
3737
val eventStateDescriptor = new ValueStateDescriptor[Option[String]]("event",
3838
classOf[Option[String]])
3939
```
40-
Although `flink-scala-api` does fallback to Kryo silently, above code example will eventually use Kryo. This may happen when old flink-scala-api is already disabled, but this Flink Scala API is not yet properly used: no serializers are used or imported from `org.apache.flinkx.api.serializers._`.
41-
Below code example is the right way to use Scala serializers coming from this library: it completely prevents Kryo from being used. Even if `implicitly` cannot find an appropriate TypeInformation instance for your type `T`, it will fail in compile time.
40+
Although `flink-scala-api` does not fallback to Kryo silently for Scala types, above code example will eventually use Kryo. This happens when official flink-scala-api (deprecated) is already disabled, but this Flink Scala API is not yet properly used: no serializers are used/imported from `org.apache.flinkx.api.serializers._`.
41+
Below code example is the right way to use Scala serializers coming from this Scala API: it completely prevents Kryo from being used. Even if `implicitly` cannot find an appropriate TypeInformation instance for your type `T`, it will fail in compile time.
4242

4343
```scala mdoc:reset-object
4444
import org.apache.flinkx.api.serializers._
@@ -49,8 +49,8 @@ import org.apache.flink.api.common.typeinfo.TypeInformation
4949
val eventStateDescriptor = new ValueStateDescriptor[Option[String]]("event",
5050
implicitly[TypeInformation[Option[String]]])
5151
```
52-
53-
See more on Java types serilization here: [java-types](#java-types)
52+
- See more on serialization with POJO serializer here: [using-a-pojo-only-flink-serialization-framework](#using-a-pojo-only-flink-serialization-framework)
53+
- See more on Java types serilization here: [java-types](#java-types)
5454

5555
## Usage
5656

0 commit comments

Comments
 (0)