Exemplo n.º 1
0
        public static void DefragIndex(DefragmentContextImpl context, IIndexable4 keyHandler
                                       )
        {
            // count
            int count = context.ReadInt();
            // leafByte
            byte leafByte = context.ReadByte();
            bool isLeaf   = (leafByte == 1);

            context.CopyID();
            // parent ID
            context.CopyID();
            // previous ID
            context.CopyID();
            // next ID
            for (int i = 0; i < count; i++)
            {
                keyHandler.DefragIndexEntry(context);
                if (!isLeaf)
                {
                    context.CopyID();
                }
            }
        }
Exemplo n.º 2
0
 public virtual void DefragIndexEntry(DefragmentContextImpl context)
 {
     _parentIdHandler.DefragIndexEntry(context);
     _valueHandler.DefragIndexEntry(context);
 }
Exemplo n.º 3
0
		public static void DefragIndex(DefragmentContextImpl context, IIndexable4 keyHandler
			)
		{
			// count
			int count = context.ReadInt();
			// leafByte
			byte leafByte = context.ReadByte();
			bool isLeaf = (leafByte == 1);
			context.CopyID();
			// parent ID
			context.CopyID();
			// previous ID
			context.CopyID();
			// next ID
			for (int i = 0; i < count; i++)
			{
				keyHandler.DefragIndexEntry(context);
				if (!isLeaf)
				{
					context.CopyID();
				}
			}
		}