Hi Orc has moved to use vectorized readers completely. Thats the reason you are are not seeing .next() interface. The vector reader interface is .nextBatch(batch). Orc no longer returns records instead it returns column batches (there is a open jira for cleaning up the interfaces).
Here is a link to a simple example for reading data out of orc file. https://github.com/apache/orc/blob/master/java/core/src/test/org/apache/orc/TestNewIntegerEncoding.java#L109 There are more examples in the junit tests https://github.com/apache/orc/tree/master/java/core/src/test/org/apache/orc Hope this helps. Thanks Prasanth > On Jun 23, 2016, at 4:59 PM, Kavinder Dhaliwal <[email protected]> wrote: > > Hi, > > I am new to the ORC library and am looking for an example of how to read > ORC files directly through the Java API. Specifically, how to project > columns through the RecordReader. I have taken a look at the example at > https://orc.apache.org/docs/core-java.html but don't know how to actually > extract a single row from the inner loop. The Hive ORC RecordReader > interface has a .next() method which I don't see available in the > org.apache.orc interface. > > I appreciate the help and apologize for my ignorance > > Kavinder
