VelocityDB & VelocityGraph

Object and Graph Database - ask us, share & let us know what you need.

Lazy using BTree collection

When I use BTreeSet<T> or BTreeMap<S,T> (where S is value type, T is OptimizedPersistable), how can I get just OID instead of full object? I.e. when using 

set.Where(x=>x.Id==1).First() 

or

map[id]

Sometimes I don't need to open full non-cached object from network and disk and I just want to get its oid (an element of internal keysArray or valuesArray). Is there any way to achieve it  ? Maybe is there some extension for this collections there?