MCPcopy Create free account
hub / github.com/apache/orc / sameKeys

Method sameKeys

java/core/src/java/org/apache/orc/OrcFile.java:1131–1144  ·  view source on GitHub ↗
(EncryptionKey[] first,
                                  EncryptionKey[] next)

Source from the content-addressed store, hash-verified

1129 }
1130
1131 private static boolean sameKeys(EncryptionKey[] first,
1132 EncryptionKey[] next) {
1133 if (first.length != next.length) {
1134 return false;
1135 }
1136 for(int k = 0; k < first.length; ++k) {
1137 if (!first[k].getKeyName().equals(next[k].getKeyName()) ||
1138 first[k].getKeyVersion() != next[k].getKeyVersion() ||
1139 first[k].getAlgorithm() != next[k].getAlgorithm()) {
1140 return false;
1141 }
1142 }
1143 return true;
1144 }
1145
1146 private static boolean sameMasks(DataMaskDescription[] first,
1147 DataMaskDescription[] next) {

Callers 1

readerIsCompatibleMethod · 0.95

Calls 4

getKeyNameMethod · 0.65
getKeyVersionMethod · 0.65
getAlgorithmMethod · 0.65
equalsMethod · 0.45

Tested by

no test coverage detected