MCPcopy Create free account
hub / github.com/crate/crate / fromId

Method fromId

server/src/main/java/org/elasticsearch/Version.java:300–306  ·  view source on GitHub ↗
(int id)

Source from the content-addressed store, hash-verified

298
299
300 public static Version fromId(int id) {
301 final Version known = ID_TO_VERSION.get(id);
302 if (known != null) {
303 return known;
304 }
305 return fromIdSlow(id);
306 }
307
308 private static Version fromIdSlow(int id) {
309 // We need at least the major of the Lucene version to be correct.

Calls 2

fromIdSlowMethod · 0.95
getMethod · 0.65