Ejemplo n.º 1
0
 public AbstractBTreeCollection(int size, NeoDatis.Odb.Core.OrderByConstants orderByType
                                )
 {
     // TODO compute degree best value for the size value
     tree             = BuildTree(NeoDatis.Odb.OdbConfiguration.GetDefaultIndexBTreeDegree());
     this.orderByType = orderByType;
 }
 /// <param name="tree"></param>
 /// <param name="orderByType"></param>
 /// <param name="storageEngine"></param>
 /// <param name="returnObjects"></param>
 public LazyODBBTreeIteratorMultiple(NeoDatis.Btree.IBTree tree, NeoDatis.Odb.Core.OrderByConstants
                                     orderByType, NeoDatis.Odb.Core.Layers.Layer3.IStorageEngine storageEngine, bool
                                     returnObjects) : base(tree, orderByType)
 {
     this.storageEngine = storageEngine;
     this.returnObjects = returnObjects;
 }
Ejemplo n.º 3
0
 public MultiFieldComparator(string[] names, NeoDatis.Odb.Core.OrderByConstants orderByType
                             )
 {
     this.fieldNames        = names;
     map                    = new System.Collections.Hashtable();
     this.way               = orderByType.IsOrderByAsc() ? 1 : -1;
     this.classIntrospector = NeoDatis.Odb.OdbConfiguration.GetCoreProvider().GetClassIntrospector
                                  ();
 }
Ejemplo n.º 4
0
 public AbstractBTreeIterator(NeoDatis.Btree.IBTree tree, NeoDatis.Odb.Core.OrderByConstants
                              orderByType)
 {
     this.btree       = tree;
     this.currentNode = tree.GetRoot();
     this.orderByType = orderByType;
     if (orderByType.IsOrderByDesc())
     {
         this.currentKeyIndex = currentNode.GetNbKeys();
     }
     else
     {
         this.currentKeyIndex = 0;
     }
 }
Ejemplo n.º 5
0
 public virtual NeoDatis.Odb.Core.Query.IQuery OrderByAsc(string fields)
 {
     orderByType   = NeoDatis.Odb.Core.OrderByConstants.OrderByAsc;
     orderByFields = NeoDatis.Tool.Wrappers.OdbString.Split(fields, ",");
     return(this);
 }
Ejemplo n.º 6
0
 public AbstractQuery()
 {
     orderByType = NeoDatis.Odb.Core.OrderByConstants.OrderByNone;
     polymorphic = false;
 }
 public virtual System.Collections.Generic.IEnumerator <T> Iterator(NeoDatis.Odb.Core.OrderByConstants
                                                                    orderByType)
 {
     throw new NeoDatis.Odb.ODBRuntimeException(NeoDatis.Odb.Core.NeoDatisError.OperationNotImplemented
                                                );
 }
Ejemplo n.º 8
0
		public virtual void SetOrderByType(NeoDatis.Odb.Core.OrderByConstants orderByType
			)
		{
			this.orderByType = orderByType;
		}
Ejemplo n.º 9
0
		public virtual NeoDatis.Odb.Core.Query.IQuery OrderByAsc(string fields)
		{
			orderByType = NeoDatis.Odb.Core.OrderByConstants.OrderByAsc;
			orderByFields = NeoDatis.Tool.Wrappers.OdbString.Tokenize(fields, ", ");
			return this;
		}
Ejemplo n.º 10
0
		public AbstactQuery()
		{
			orderByType = NeoDatis.Odb.Core.OrderByConstants.OrderByNone;
			polymorphic = false;
		}
Ejemplo n.º 11
0
 public virtual void SetOrderByType(NeoDatis.Odb.Core.OrderByConstants orderByType
                                    )
 {
     this.orderByType = orderByType;
 }
Ejemplo n.º 12
0
 public BTreeIteratorSingleValuePerKey(NeoDatis.Btree.IBTree tree, NeoDatis.Odb.Core.OrderByConstants
                                       orderByType) : base(tree, orderByType)
 {
 }
Ejemplo n.º 13
0
 /// <param name="tree"></param>
 /// <param name="orderByType"></param>
 public BTreeIteratorMultipleValuesPerKey(NeoDatis.Btree.IBTree tree, NeoDatis.Odb.Core.OrderByConstants
                                          orderByType) : base(tree, orderByType)
 {
     currenListIndex = 0;
     currentValue    = null;
 }
 public override System.Collections.Generic.IEnumerator <T> Iterator(NeoDatis.Odb.Core.OrderByConstants
                                                                     orderByType)
 {
     return((System.Collections.Generic.IEnumerator <T>) new LazyODBBTreeIteratorMultiple <T>(GetTree(), orderByType, storageEngine, returnObjects));
 }
 public LazyBTreeCollection(int size, NeoDatis.Odb.Core.OrderByConstants orderByType
                            ) : base(size, orderByType)
 {
 }
Ejemplo n.º 16
0
 public abstract System.Collections.IEnumerator Iterator <T>(NeoDatis.Odb.Core.OrderByConstants
                                                             arg1);
Ejemplo n.º 17
0
 System.Collections.IEnumerator IBTree.Iterator <T>(NeoDatis.Odb.Core.OrderByConstants orderBy)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 18
0
 /// <summary>The orderByType in not supported by this kind of list</summary>
 public virtual System.Collections.Generic.IEnumerator <E> Iterator(NeoDatis.Odb.Core.OrderByConstants
                                                                    orderByType)
 {
     return(GetEnumerator());
 }
Ejemplo n.º 19
0
 public InMemoryBTreeCollectionForValues(int size, NeoDatis.Odb.Core.OrderByConstants
                                         orderByType) : base(size, orderByType)
 {
 }
 public override System.Collections.IEnumerator Iterator <T>(NeoDatis.Odb.Core.OrderByConstants
                                                             orderBy)
 {
     return(new NeoDatis.Btree.BTreeIteratorMultipleValuesPerKey <T>(this, orderBy));
 }
Ejemplo n.º 21
0
 public virtual System.Collections.Generic.IEnumerator <E> Iterator(NeoDatis.Odb.Core.OrderByConstants
                                                                    newOrderByType)
 {
     return((System.Collections.Generic.IEnumerator <E>)tree.Iterator <E>(newOrderByType));
 }