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

Method compareTo

java/core/src/java/org/apache/orc/impl/StreamName.java:60–77  ·  view source on GitHub ↗
(@NotNull StreamName streamName)

Source from the content-addressed store, hash-verified

58 }
59
60 @Override
61 public int compareTo(@NotNull StreamName streamName) {
62 Area area = getArea();
63 Area otherArea = streamName.getArea();
64 if (area != otherArea) {
65 return otherArea.compareTo(area);
66 } else if (encryption != streamName.encryption) {
67 if (encryption == null || streamName.encryption == null) {
68 return encryption == null ? -1 : 1;
69 } else {
70 return encryption.getVariantId() < streamName.encryption.getVariantId()?
71 -1 : 1;
72 }
73 } else if (column != streamName.column) {
74 return column < streamName.column ? -1 : 1;
75 }
76 return kind.compareTo(streamName.kind);
77 }
78
79 public int getColumn() {
80 return column;

Callers 11

test1Method · 0.95
testColumnProjectionMethod · 0.45
testUnionAndTimestampMethod · 0.45
mergeMethod · 0.45
updateDecimalMethod · 0.45
mergeMethod · 0.45
compareMethod · 0.45

Calls 2

getAreaMethod · 0.95
getVariantIdMethod · 0.65