Github user sachingoel0101 commented on the pull request:

    https://github.com/apache/flink/pull/861#issuecomment-137748205
  
    Hello @thvasilo , I was unable to access the `create...` functions from the 
scala API. I'm not sure how to pass a `DataSet[Double]` to a 
`DataSet[java.lang.Double]` function. I am using the following right now:
    ```scala
    class DoubleDataSetUtils(val self: DataSet[Double]) {
    
      def createDiscreteHistogram: DataSet[DiscreteHistogram] = {
        wrap(jutils.DataSetUtils.createDiscreteHistogram(self.javaSet))
      }
    }
    
    implicit def utilsToDoubleDataSet(dataSet: DataSet[Double]) = new 
DoubleDataSetUtils(dataSet)
    
    ```
    I'm not terribly familiar with the `TypeInformation` and `ClassTag` 
mechanisms.
    
    As for docs, where should I put them? Currently, the java docs for the 
class themselves are written properly. However, there is a file named 
`zip_elements_guide.md` under `apis` folder. Should I rename that instead to 
`Data Set Utilities` and add histogram docs there itself?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to