Skip to content

Commit

Permalink
Add Built-in IOs Java kata
Browse files Browse the repository at this point in the history
  • Loading branch information
henryken committed Jun 10, 2019
1 parent 58738a8 commit 1a524aa
Show file tree
Hide file tree
Showing 3 changed files with 113 additions and 0 deletions.
50 changes: 50 additions & 0 deletions learning/katas/java/.idea/study_project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 34 additions & 0 deletions learning/katas/java/IO/Built-in IOs/Built-in IOs/src/Task.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import org.apache.beam.sdk.Pipeline;
import org.apache.beam.sdk.options.PipelineOptions;
import org.apache.beam.sdk.options.PipelineOptionsFactory;

public class Task {

public static void main(String[] args) {
PipelineOptions options = PipelineOptionsFactory.fromArgs(args).create();
Pipeline pipeline = Pipeline.create(options);



pipeline.run();
}

}
29 changes: 29 additions & 0 deletions learning/katas/java/IO/Built-in IOs/Built-in IOs/task.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<!--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you under the Apache License, Version 2.0 (the
~ "License"); you may not use this file except in compliance
~ with the License. You may obtain a copy of the License at
~
~ https://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->

<html>
<h2>Built-in I/Os</h2>
<p>
Beam SDKs provide many out of the box I/O transforms that can be used to read from many
different sources and write to many different sinks.
</p>
<p>
See the <a href="https://beam.apache.org/documentation/io/built-in/">Beam-provided I/O
Transforms</a> page for a list of the currently available I/O transforms.
</p>
</html>

0 comments on commit 1a524aa

Please sign in to comment.