How to find correct "imports"

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

How to find correct "imports"

Esa Heikkinen

Hi

 

I am quite new with Flink and Scala. I have had a bit of trouble finding corrects “imports”.

What would be the best way to find them ?

 

For example the imports for StreamTableEnvironment and CsvTableSource.

 

And how do I know if I should put something pom.xml ?

 

Esa

Reply | Threaded
Open this post in threaded view
|

Re: How to find correct "imports"

Niclas Hedhman
It is called "declared dependencies", and Flink has a huge number of artifacts, and they have also changed name over time. But Maven Central provides a search facility.

Try http://search.maven.org/#search%7Cga%7C5%7Cg%3Aorg.apache.flink%20AND%20v%3A1.4.0

And it will give you all artifacts from Flink 1.4.0

On Mon, Feb 19, 2018 at 4:56 PM, Esa Heikkinen <[hidden email]> wrote:

Hi

 

I am quite new with Flink and Scala. I have had a bit of trouble finding corrects “imports”.

What would be the best way to find them ?

 

For example the imports for StreamTableEnvironment and CsvTableSource.

 

And how do I know if I should put something pom.xml ?

 

Esa




--
Niclas Hedhman, Software Developer
http://zest.apache.org - New Energy for Java
Reply | Threaded
Open this post in threaded view
|

Re: How to find correct "imports"

Timo Walther
Hi Esa,

the easiest and recommended way is:

- Create your Flink project with the provided quickstart scripts [1]
- Visit the documentation about a feature you want to use. E.g. for the Table & SQL API [2]

Usually it is described which modules you need.

I hope this helps.

Regards,
Timo


[1] https://ci.apache.org/projects/flink/flink-docs-release-1.4/quickstart/java_api_quickstart.html
[2] https://ci.apache.org/projects/flink/flink-docs-release-1.4/dev/table/


Am 2/19/18 um 10:36 AM schrieb Niclas Hedhman:
It is called "declared dependencies", and Flink has a huge number of artifacts, and they have also changed name over time. But Maven Central provides a search facility.

Try http://search.maven.org/#search%7Cga%7C5%7Cg%3Aorg.apache.flink%20AND%20v%3A1.4.0

And it will give you all artifacts from Flink 1.4.0

On Mon, Feb 19, 2018 at 4:56 PM, Esa Heikkinen <[hidden email]> wrote:

Hi

 

I am quite new with Flink and Scala. I have had a bit of trouble finding corrects “imports”.

What would be the best way to find them ?

 

For example the imports for StreamTableEnvironment and CsvTableSource.

 

And how do I know if I should put something pom.xml ?

 

Esa




--
Niclas Hedhman, Software Developer
http://zest.apache.org - New Energy for Java