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

Method getQuick

core/src/main/java/io/questdb/std/ObjList.java:187–191  ·  view source on GitHub ↗

Returns element at the specified position. This method does not do bounds check and may cause memory corruption if index is out of bounds. Instead, the responsibility to check bounds is placed on application code, which is often the case anyway, for example in indexed for() loop. @param index of th

(int index)

Source from the content-addressed store, hash-verified

185 * @return element at the specified position.
186 */
187 @Override
188 public T getQuick(int index) {
189 assert index < pos : "index out of bounds, " + index + " >= " + pos;
190 return buffer[index];
191 }
192
193 /**
194 * Returns element at the specified position or null, if element index is

Calls

no outgoing calls