forked from apache/paimon
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update: orc support read row position
- Loading branch information
Showing
4 changed files
with
100 additions
and
6 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
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
22 changes: 22 additions & 0 deletions
22
...-format/src/main/java/org/apache/paimon/format/orc/reader/OrcRowPositionColumnVector.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,22 @@ | ||
package org.apache.paimon.format.orc.reader; | ||
|
||
import org.apache.hadoop.hive.ql.exec.vector.ColumnVector; | ||
|
||
/* 1. */ | ||
public class OrcRowPositionColumnVector extends AbstractOrcColumnVector | ||
implements org.apache.paimon.data.columnar.LongColumnVector { | ||
private long startPosition; | ||
|
||
public OrcRowPositionColumnVector(ColumnVector ignore) { | ||
super(ignore); | ||
} | ||
|
||
@Override | ||
public long getLong(int i) { | ||
return startPosition + i; | ||
} | ||
|
||
public void setStartPosition(long startPosition) { | ||
this.startPosition = startPosition; | ||
} | ||
} |
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