Skip to content

Commit

Permalink
[hotfix] [docs] Fix typos in types serialization documentation
Browse files Browse the repository at this point in the history
This closes apache#4914
  • Loading branch information
GJL authored and StephanEwen committed Nov 2, 2017
1 parent 51acd2c commit 1ac3e05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/dev/types_serialization.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Think about it like a database that infers the schema of tables. In most cases,
by itself. Having the type information allows Flink to do some cool things:

* Using POJOs types and grouping / joining / aggregating them by referring to field names (like `dataSet.keyBy("username")`).
The type information allows Flink to check (for typos and type compatibility) early rather than failing later ar runtime.
The type information allows Flink to check (for typos and type compatibility) early rather than failing later at runtime.

* The more Flink knows about data types, the better the serialization and data layout schemes are.
That is quite important for the memory usage paradigm in Flink (work on serialized data inside/outside the heap where ever possible
Expand Down Expand Up @@ -330,7 +330,7 @@ Type information factories can be used in both the Java and Scala API.

In a hierarchy of types the closest factory
will be chosen while traversing upwards, however, a built-in factory has highest precedence. A factory has
also higher precendence than Flink's built-in types, therefore you should know what you are doing.
also higher precedence than Flink's built-in types, therefore you should know what you are doing.

The following example shows how to annotate a custom type `MyTuple` and supply custom type information for it using a factory in Java.

Expand Down

0 comments on commit 1ac3e05

Please sign in to comment.