You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Chiwan Park (JIRA)" <ji...@apache.org> on 2015/03/05 03:36:38 UTC

[jira] [Created] (FLINK-1654) Wrong scala example of POJO type in documentation

Chiwan Park created FLINK-1654:
----------------------------------

             Summary: Wrong scala example of POJO type in documentation
                 Key: FLINK-1654
                 URL: https://issues.apache.org/jira/browse/FLINK-1654
             Project: Flink
          Issue Type: Bug
          Components: Documentation
    Affects Versions: 0.9
            Reporter: Chiwan Park
            Priority: Trivial


In [documentation|https://github.com/chiwanpark/flink/blob/master/docs/programming_guide.md#pojos], there is a scala example of POJO

{code}
class WordWithCount(val word: String, val count: Int) {
  def this() {
    this(null, -1)
  }
}
{code}

I think that this is wrong because Flink POJO required public fields or private fields with getter and setter. Fields in scala class is private in default. We should change the field declarations to use `var` keyword or class declaration to case class.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)