-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HIVE-4123 Improved ORC integer RLE version 2. (Prasanth Jayachandran via
omalley) git-svn-id: https://svn.apache.org/repos/asf/hive/trunk@1513155 13f79535-47bb-0310-9956-ffa450edef68
- Loading branch information
Showing
19 changed files
with
4,724 additions
and
246 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
76 changes: 41 additions & 35 deletions
76
ql/src/gen/protobuf/gen-java/org/apache/hadoop/hive/ql/io/orc/OrcProto.java
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
55 changes: 55 additions & 0 deletions
55
ql/src/java/org/apache/hadoop/hive/ql/io/orc/IntegerReader.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/** | ||
* 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 | ||
* | ||
* http://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. | ||
*/ | ||
|
||
package org.apache.hadoop.hive.ql.io.orc; | ||
|
||
import java.io.IOException; | ||
|
||
/** | ||
* Interface for reading integers. | ||
*/ | ||
interface IntegerReader { | ||
|
||
/** | ||
* Seek to the position provided by index. | ||
* @param index | ||
* @throws IOException | ||
*/ | ||
void seek(PositionProvider index) throws IOException; | ||
|
||
/** | ||
* Skip number of specified rows. | ||
* @param numValues | ||
* @throws IOException | ||
*/ | ||
void skip(long numValues) throws IOException; | ||
|
||
/** | ||
* Check if there are any more values left. | ||
* @return | ||
* @throws IOException | ||
*/ | ||
boolean hasNext() throws IOException; | ||
|
||
/** | ||
* Return the next available value. | ||
* @return | ||
* @throws IOException | ||
*/ | ||
long next() throws IOException; | ||
} |
47 changes: 47 additions & 0 deletions
47
ql/src/java/org/apache/hadoop/hive/ql/io/orc/IntegerWriter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/** | ||
* 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 | ||
* | ||
* http://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. | ||
*/ | ||
|
||
package org.apache.hadoop.hive.ql.io.orc; | ||
|
||
import java.io.IOException; | ||
|
||
/** | ||
* Interface for writing integers. | ||
*/ | ||
interface IntegerWriter { | ||
|
||
/** | ||
* Get position from the stream. | ||
* @param recorder | ||
* @throws IOException | ||
*/ | ||
void getPosition(PositionRecorder recorder) throws IOException; | ||
|
||
/** | ||
* Write the integer value | ||
* @param value | ||
* @throws IOException | ||
*/ | ||
void write(long value) throws IOException; | ||
|
||
/** | ||
* Flush the buffer | ||
* @throws IOException | ||
*/ | ||
void flush() throws IOException; | ||
} |
Oops, something went wrong.