use of org.apache.ignite.ml.math.impls.vector.VectorBlockEntry in project ignite by apache.
the class BlockVectorStorage method getEntryById.
/**
*/
private VectorBlockEntry getEntryById(long blockId) {
VectorBlockKey key = getCacheKey(blockId);
VectorBlockEntry entry = cache.localPeek(key, CachePeekMode.PRIMARY);
entry = entry != null ? entry : cache.get(key);
if (entry == null)
entry = getEmptyBlockEntry(blockId);
return entry;
}
Aggregations