Repository: orc Updated Branches: refs/heads/asf-site 5c6506318 -> 23de88319
Push change #66 to fix example. Project: http://git-wip-us.apache.org/repos/asf/orc/repo Commit: http://git-wip-us.apache.org/repos/asf/orc/commit/23de8831 Tree: http://git-wip-us.apache.org/repos/asf/orc/tree/23de8831 Diff: http://git-wip-us.apache.org/repos/asf/orc/diff/23de8831 Branch: refs/heads/asf-site Commit: 23de88319771824209e601fd2488b0ea1b8e1a33 Parents: 5c65063 Author: Owen O'Malley <omal...@apache.org> Authored: Wed Nov 30 16:05:31 2016 -0800 Committer: Owen O'Malley <omal...@apache.org> Committed: Wed Nov 30 16:05:31 2016 -0800 ---------------------------------------------------------------------- docs/core-java.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/orc/blob/23de8831/docs/core-java.html ---------------------------------------------------------------------- diff --git a/docs/core-java.html b/docs/core-java.html index 39b83b8..fa5caae 100644 --- a/docs/core-java.html +++ b/docs/core-java.html @@ -1325,10 +1325,11 @@ class to create a with the desired filename. This example sets the required schema parameter, but there are many other options to control the ORC writer.</p> -<pre><code class="language-java">TypeDescription schema = TypeDescription.fromString("struct<x:int,y:int>"); +<pre><code class="language-java">Configuration conf = new Configuration(); +TypeDescription schema = TypeDescription.fromString("struct<x:int,y:int>"); Writer writer = OrcFile.createWriter(new Path("my-file.orc"), OrcFile.writerOptions(conf) - .schema(schema)); + .setSchema(schema)); </code></pre> <p>Now you need to create a row batch, set the data, and write it to the file