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)
| 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) { |