MCPcopy Create free account
hub / github.com/questdb/questdb / putAt

Method putAt

core/src/main/java/io/questdb/std/IntIntHashMap.java:76–86  ·  view source on GitHub ↗
(int index, int key, int value)

Source from the content-addressed store, hash-verified

74 }
75
76 public void putAt(int index, int key, int value) {
77 if (index < 0) {
78 values[-index - 1] = value;
79 } else {
80 keys[index] = key;
81 values[index] = value;
82 if (--free == 0) {
83 rehash();
84 }
85 }
86 }
87
88 public int valueAt(int index) {
89 return index < 0 ? values[-index - 1] : noEntryValue;

Callers 15

testAllMethod · 0.95
appendCellMethod · 0.95
putMethod · 0.95
queryFdSetsMethod · 0.45
addMethod · 0.45
bindMethod · 0.45
openROCachedMethod · 0.45
getFdCacheRecordMethod · 0.45
poolClassMethod · 0.45

Calls 1

rehashMethod · 0.95

Tested by 1

testAllMethod · 0.76