MCPcopy Index your code
hub / github.com/apache/orc / understandFormat

Method understandFormat

java/core/src/java/org/apache/orc/OrcFile.java:1119–1129  ·  view source on GitHub ↗

Do we understand the version in the reader? @param path the path of the file @param reader the ORC file reader @return is the version understood by this writer?

(Path path, Reader reader)

Source from the content-addressed store, hash-verified

1117 * @return is the version understood by this writer?
1118 */
1119 static boolean understandFormat(Path path, Reader reader) {
1120 if (reader.getFileVersion() == Version.FUTURE) {
1121 LOG.info("Can't merge {} because it has a future version.", path);
1122 return false;
1123 }
1124 if (reader.getWriterVersion() == WriterVersion.FUTURE) {
1125 LOG.info("Can't merge {} because it has a future writerVersion.", path);
1126 return false;
1127 }
1128 return true;
1129 }
1130
1131 private static boolean sameKeys(EncryptionKey[] first,
1132 EncryptionKey[] next) {

Callers 2

testMergeUnderstoodMethod · 0.95
mergeFilesMethod · 0.95

Calls 2

getFileVersionMethod · 0.65
getWriterVersionMethod · 0.65

Tested by 1

testMergeUnderstoodMethod · 0.76