org.neodatis.odb.impl.core.query.list.objects
Class LazyBTreeCollection<T>

java.lang.Object
  extended by org.neodatis.odb.impl.core.query.list.objects.AbstractBTreeCollection<T>
      extended by org.neodatis.odb.impl.core.query.list.objects.LazyBTreeCollection<T>
All Implemented Interfaces:
java.io.Serializable, java.lang.Iterable<T>, java.util.Collection<T>, Objects<T>

public class LazyBTreeCollection<T>
extends AbstractBTreeCollection<T>

A collection using a BTtree as a back-end component. Lazy because it only keeps the oids of the objects. When asked for an object, loads it on demand and returns it

Author:
osmadja
See Also:
Serialized Form

Constructor Summary
LazyBTreeCollection(int size, IStorageEngine engine, boolean returnObjects)
           
LazyBTreeCollection(int size, OrderByConstants orderByType)
           
 
Method Summary
 IBTree buildTree(int degree)
           
 java.util.Iterator<T> iterator(OrderByConstants orderByType)
          Returns the collection iterator throughout the order by OrderByConstants
 
Methods inherited from class org.neodatis.odb.impl.core.query.list.objects.AbstractBTreeCollection
add, addAll, addWithKey, addWithKey, clear, contains, containsAll, getFirst, getOrderByType, getTree, hasNext, isEmpty, iterator, next, remove, removeAll, removeByKey, reset, retainAll, size, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Collection
equals, hashCode
 

Constructor Detail

LazyBTreeCollection

public LazyBTreeCollection(int size,
                           IStorageEngine engine,
                           boolean returnObjects)

LazyBTreeCollection

public LazyBTreeCollection(int size,
                           OrderByConstants orderByType)
Method Detail

buildTree

public IBTree buildTree(int degree)
Specified by:
buildTree in class AbstractBTreeCollection<T>

iterator

public java.util.Iterator<T> iterator(OrderByConstants orderByType)
Description copied from interface: Objects
Returns the collection iterator throughout the order by OrderByConstants

Specified by:
iterator in interface Objects<T>
Overrides:
iterator in class AbstractBTreeCollection<T>
Returns: