You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@orc.apache.org by om...@apache.org on 2018/09/17 20:21:03 UTC
[4/7] orc git commit: ORC-385. Change RecordReader to extend
Closeable.
ORC-385. Change RecordReader to extend Closeable.
Fixes #291
Signed-off-by: Owen O'Malley <om...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/orc/repo
Commit: http://git-wip-us.apache.org/repos/asf/orc/commit/49735adf
Tree: http://git-wip-us.apache.org/repos/asf/orc/tree/49735adf
Diff: http://git-wip-us.apache.org/repos/asf/orc/diff/49735adf
Branch: refs/heads/branch-1.5
Commit: 49735adfbf7dba9a509d16066f41f44a1923d1cb
Parents: 6b1f556
Author: Owen O'Malley <om...@apache.org>
Authored: Fri Jul 13 14:55:45 2018 -0700
Committer: Owen O'Malley <om...@apache.org>
Committed: Mon Sep 17 13:20:09 2018 -0700
----------------------------------------------------------------------
java/core/src/java/org/apache/orc/RecordReader.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/orc/blob/49735adf/java/core/src/java/org/apache/orc/RecordReader.java
----------------------------------------------------------------------
diff --git a/java/core/src/java/org/apache/orc/RecordReader.java b/java/core/src/java/org/apache/orc/RecordReader.java
index 2621a8e..2bd94c9 100644
--- a/java/core/src/java/org/apache/orc/RecordReader.java
+++ b/java/core/src/java/org/apache/orc/RecordReader.java
@@ -1,4 +1,4 @@
-/**
+/*
* 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
@@ -17,6 +17,7 @@
*/
package org.apache.orc;
+import java.io.Closeable;
import java.io.IOException;
import org.apache.hadoop.hive.ql.exec.vector.VectorizedRowBatch;
@@ -24,7 +25,7 @@ import org.apache.hadoop.hive.ql.exec.vector.VectorizedRowBatch;
/**
* A row-by-row iterator for ORC files.
*/
-public interface RecordReader extends AutoCloseable {
+public interface RecordReader extends Closeable {
/**
* Read the next row batch. The size of the batch to read cannot be
* controlled by the callers. Caller need to look at