MCPcopy Create free account
hub / github.com/apache/kudu / getInt

Method getInt

java/kudu-client/src/main/java/org/apache/kudu/util/Slice.java:139–146  ·  view source on GitHub ↗

Gets a 32-bit integer at the specified absolute index in this buffer. @throws IndexOutOfBoundsException if the specified index is less than 0 or index + 4 is greater than this.capacity

(int index)

Source from the content-addressed store, hash-verified

137 * {@code index + 4} is greater than {@code this.capacity}
138 */
139 public int getInt(int index) {
140 Preconditions.checkPositionIndexes(index, index + Ints.BYTES, this.length);
141 index += offset;
142 return (data[index] & 0xff) |
143 (data[index + 1] & 0xff) << 8 |
144 (data[index + 2] & 0xff) << 16 |
145 (data[index + 3] & 0xff) << 24;
146 }
147
148 /**
149 * Gets a 64-bit long integer at the specified absolute {@code index} in

Callers 12

testIterableMethod · 0.45
testDiffScanMethod · 0.45
applyOperationsMethod · 0.45
randomGetMethod · 0.45
testSplitKeyRangeMethod · 0.45
serverFaultInjectionMethod · 0.45
callMethod · 0.45
callGetByNameMethod · 0.45
callGetByIndexMethod · 0.45
testDeleteWithFullRowMethod · 0.45
bytesToIntMethod · 0.45

Calls

no outgoing calls

Tested by 11

testIterableMethod · 0.36
testDiffScanMethod · 0.36
applyOperationsMethod · 0.36
randomGetMethod · 0.36
testSplitKeyRangeMethod · 0.36
serverFaultInjectionMethod · 0.36
callMethod · 0.36
callGetByNameMethod · 0.36
callGetByIndexMethod · 0.36
testDeleteWithFullRowMethod · 0.36