asterixdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mb...@apache.org
Subject [1/2] asterixdb git commit: Eliminate Hard Tabs From Java Files
Date Tue, 14 Jun 2016 14:57:28 GMT
Repository: asterixdb
Updated Branches:
  refs/heads/master 171ff2ffe -> d2ca97aba


http://git-wip-us.apache.org/repos/asf/asterixdb/blob/d2ca97ab/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-btree/src/main/java/org/apache/hyracks/storage/am/lsm/btree/impls/LSMBTreeWithBuddySortedCursor.java
----------------------------------------------------------------------
diff --git a/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-btree/src/main/java/org/apache/hyracks/storage/am/lsm/btree/impls/LSMBTreeWithBuddySortedCursor.java b/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-btree/src/main/java/org/apache/hyracks/storage/am/lsm/btree/impls/LSMBTreeWithBuddySortedCursor.java
index 11828a2..d045059 100644
--- a/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-btree/src/main/java/org/apache/hyracks/storage/am/lsm/btree/impls/LSMBTreeWithBuddySortedCursor.java
+++ b/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-btree/src/main/java/org/apache/hyracks/storage/am/lsm/btree/impls/LSMBTreeWithBuddySortedCursor.java
@@ -26,145 +26,145 @@ import org.apache.hyracks.storage.am.common.tuples.PermutingTupleReference;
 import org.apache.hyracks.storage.am.lsm.common.api.ILSMIndexOperationContext;
 
 public class LSMBTreeWithBuddySortedCursor extends
-		LSMBTreeWithBuddyAbstractCursor {
-	// TODO: This class can be removed and instead use a search cursor that uses
-	// a logic similar
-	// to the one in LSMRTreeWithAntiMatterTuplesSearchCursor
+        LSMBTreeWithBuddyAbstractCursor {
+    // TODO: This class can be removed and instead use a search cursor that uses
+    // a logic similar
+    // to the one in LSMRTreeWithAntiMatterTuplesSearchCursor
     // currently, this cursor is only used when doing merge operations.
-	private boolean[] depletedBtreeCursors;
-	private int foundIn = -1;
-	private PermutingTupleReference buddyBtreeTuple;
-
-	public LSMBTreeWithBuddySortedCursor(ILSMIndexOperationContext opCtx,
-			int[] buddyBTreeFields) throws HyracksDataException {
-		super(opCtx);
-		this.buddyBtreeTuple = new PermutingTupleReference(buddyBTreeFields);
-		reset();
-	}
-
-	public ILSMIndexOperationContext getOpCtx() {
-		return opCtx;
-	}
-
-	@Override
-	public void reset() throws HyracksDataException {
-		depletedBtreeCursors = new boolean[numberOfTrees];
-		foundNext = false;
-		try {
-			for (int i = 0; i < numberOfTrees; i++) {
-				btreeCursors[i].reset();
-				try {
-					btreeAccessors[i].search(btreeCursors[i],
-							btreeRangePredicate);
-				} catch (IndexException e) {
-					throw new HyracksDataException(e);
-				}
-				if (btreeCursors[i].hasNext()) {
-					btreeCursors[i].next();
-				} else {
-					depletedBtreeCursors[i] = true;
-				}
-			}
-		} catch (Exception e) {
-			e.printStackTrace();
-			throw new HyracksDataException(
-					"error while reseting the btrees of the lsm btree with buddy btree",
-					e);
-		} finally {
-			if (open) {
-				lsmHarness.endSearch(opCtx);
-			}
-		}
-	}
-
-	@Override
-	public boolean hasNext() throws HyracksDataException, IndexException {
-		while (!foundNext) {
-			frameTuple = null;
-
-			if (foundIn != -1) {
-				if (btreeCursors[foundIn].hasNext()) {
-					btreeCursors[foundIn].next();
-				} else {
-					depletedBtreeCursors[foundIn] = true;
-				}
-			}
-
-			foundIn = -1;
-			for (int i = 0; i < numberOfTrees; i++) {
-				if (depletedBtreeCursors[i])
-					continue;
-
-				if (frameTuple == null) {
-					frameTuple = btreeCursors[i].getTuple();
-					foundIn = i;
-					continue;
-				}
-
-				if (btreeCmp.compare(frameTuple, btreeCursors[i].getTuple()) > 0) {
-					frameTuple = btreeCursors[i].getTuple();
-					foundIn = i;
-				}
-			}
-
-			if (foundIn == -1)
-				return false;
-
-			boolean killed = false;
-			buddyBtreeTuple.reset(frameTuple);
-			for (int i = 0; i < foundIn; i++) {
-				try {
-					buddyBtreeCursors[i].reset();
-					buddyBtreeRangePredicate.setHighKey(buddyBtreeTuple, true);
-					btreeRangePredicate.setLowKey(buddyBtreeTuple, true);
-					btreeAccessors[i].search(btreeCursors[i],
-							btreeRangePredicate);
-				} catch (IndexException e) {
-					throw new HyracksDataException(e);
-				}
-				try {
-					if (btreeCursors[i].hasNext()) {
-						killed = true;
-						break;
-					}
-				} finally {
-					btreeCursors[i].close();
-				}
-			}
-			if (!killed) {
-				foundNext = true;
-			}
-		}
-
-		return true;
-	}
-
-	@Override
-	public void next() throws HyracksDataException {
-		foundNext = false;
-	}
-
-	@Override
-	public void open(ICursorInitialState initialState,
-			ISearchPredicate searchPred) throws HyracksDataException,
-			IndexException {
-		super.open(initialState, searchPred);
-
-		depletedBtreeCursors = new boolean[numberOfTrees];
-		foundNext = false;
-		for (int i = 0; i < numberOfTrees; i++) {
-			btreeCursors[i].reset();
-			try {
-				btreeAccessors[i].search(btreeCursors[i], btreeRangePredicate);
-			} catch (IndexException e) {
-				throw new HyracksDataException(e);
-			}
-			if (btreeCursors[i].hasNext()) {
-				btreeCursors[i].next();
-			} else {
-				depletedBtreeCursors[i] = true;
-			}
-		}
-	}
+    private boolean[] depletedBtreeCursors;
+    private int foundIn = -1;
+    private PermutingTupleReference buddyBtreeTuple;
+
+    public LSMBTreeWithBuddySortedCursor(ILSMIndexOperationContext opCtx,
+            int[] buddyBTreeFields) throws HyracksDataException {
+        super(opCtx);
+        this.buddyBtreeTuple = new PermutingTupleReference(buddyBTreeFields);
+        reset();
+    }
+
+    public ILSMIndexOperationContext getOpCtx() {
+        return opCtx;
+    }
+
+    @Override
+    public void reset() throws HyracksDataException {
+        depletedBtreeCursors = new boolean[numberOfTrees];
+        foundNext = false;
+        try {
+            for (int i = 0; i < numberOfTrees; i++) {
+                btreeCursors[i].reset();
+                try {
+                    btreeAccessors[i].search(btreeCursors[i],
+                            btreeRangePredicate);
+                } catch (IndexException e) {
+                    throw new HyracksDataException(e);
+                }
+                if (btreeCursors[i].hasNext()) {
+                    btreeCursors[i].next();
+                } else {
+                    depletedBtreeCursors[i] = true;
+                }
+            }
+        } catch (Exception e) {
+            e.printStackTrace();
+            throw new HyracksDataException(
+                    "error while reseting the btrees of the lsm btree with buddy btree",
+                    e);
+        } finally {
+            if (open) {
+                lsmHarness.endSearch(opCtx);
+            }
+        }
+    }
+
+    @Override
+    public boolean hasNext() throws HyracksDataException, IndexException {
+        while (!foundNext) {
+            frameTuple = null;
+
+            if (foundIn != -1) {
+                if (btreeCursors[foundIn].hasNext()) {
+                    btreeCursors[foundIn].next();
+                } else {
+                    depletedBtreeCursors[foundIn] = true;
+                }
+            }
+
+            foundIn = -1;
+            for (int i = 0; i < numberOfTrees; i++) {
+                if (depletedBtreeCursors[i])
+                    continue;
+
+                if (frameTuple == null) {
+                    frameTuple = btreeCursors[i].getTuple();
+                    foundIn = i;
+                    continue;
+                }
+
+                if (btreeCmp.compare(frameTuple, btreeCursors[i].getTuple()) > 0) {
+                    frameTuple = btreeCursors[i].getTuple();
+                    foundIn = i;
+                }
+            }
+
+            if (foundIn == -1)
+                return false;
+
+            boolean killed = false;
+            buddyBtreeTuple.reset(frameTuple);
+            for (int i = 0; i < foundIn; i++) {
+                try {
+                    buddyBtreeCursors[i].reset();
+                    buddyBtreeRangePredicate.setHighKey(buddyBtreeTuple, true);
+                    btreeRangePredicate.setLowKey(buddyBtreeTuple, true);
+                    btreeAccessors[i].search(btreeCursors[i],
+                            btreeRangePredicate);
+                } catch (IndexException e) {
+                    throw new HyracksDataException(e);
+                }
+                try {
+                    if (btreeCursors[i].hasNext()) {
+                        killed = true;
+                        break;
+                    }
+                } finally {
+                    btreeCursors[i].close();
+                }
+            }
+            if (!killed) {
+                foundNext = true;
+            }
+        }
+
+        return true;
+    }
+
+    @Override
+    public void next() throws HyracksDataException {
+        foundNext = false;
+    }
+
+    @Override
+    public void open(ICursorInitialState initialState,
+            ISearchPredicate searchPred) throws HyracksDataException,
+            IndexException {
+        super.open(initialState, searchPred);
+
+        depletedBtreeCursors = new boolean[numberOfTrees];
+        foundNext = false;
+        for (int i = 0; i < numberOfTrees; i++) {
+            btreeCursors[i].reset();
+            try {
+                btreeAccessors[i].search(btreeCursors[i], btreeRangePredicate);
+            } catch (IndexException e) {
+                throw new HyracksDataException(e);
+            }
+            if (btreeCursors[i].hasNext()) {
+                btreeCursors[i].next();
+            } else {
+                depletedBtreeCursors[i] = true;
+            }
+        }
+    }
 
 }

http://git-wip-us.apache.org/repos/asf/asterixdb/blob/d2ca97ab/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-btree/src/main/java/org/apache/hyracks/storage/am/lsm/btree/impls/LSMBuddyBTreeMergeCursor.java
----------------------------------------------------------------------
diff --git a/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-btree/src/main/java/org/apache/hyracks/storage/am/lsm/btree/impls/LSMBuddyBTreeMergeCursor.java b/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-btree/src/main/java/org/apache/hyracks/storage/am/lsm/btree/impls/LSMBuddyBTreeMergeCursor.java
index 0f0edd2..0496809 100644
--- a/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-btree/src/main/java/org/apache/hyracks/storage/am/lsm/btree/impls/LSMBuddyBTreeMergeCursor.java
+++ b/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-btree/src/main/java/org/apache/hyracks/storage/am/lsm/btree/impls/LSMBuddyBTreeMergeCursor.java
@@ -36,46 +36,46 @@ import org.apache.hyracks.storage.am.lsm.common.impls.LSMIndexSearchCursor;
 
 public class LSMBuddyBTreeMergeCursor extends LSMIndexSearchCursor {
 
-	public LSMBuddyBTreeMergeCursor(ILSMIndexOperationContext opCtx) {
-		super(opCtx, true);
-	}
+    public LSMBuddyBTreeMergeCursor(ILSMIndexOperationContext opCtx) {
+        super(opCtx, true);
+    }
 
-	@Override
-	protected boolean isDeleted(PriorityQueueElement checkElement)
-			throws HyracksDataException, IndexException {
-		return false;
-	}
+    @Override
+    protected boolean isDeleted(PriorityQueueElement checkElement)
+            throws HyracksDataException, IndexException {
+        return false;
+    }
 
-	@Override
-	public void open(ICursorInitialState initialState,
-			ISearchPredicate searchPred) throws IndexException,
-			HyracksDataException {
-		LSMBTreeWithBuddyCursorInitialState lsmInitialState = (LSMBTreeWithBuddyCursorInitialState) initialState;
-		cmp = lsmInitialState.getBuddyBTreeCmp();
-		operationalComponents = lsmInitialState.getOperationalComponents();
-		// We intentionally set the lsmHarness to null so that we don't call
-		// lsmHarness.endSearch() because we already do that when we merge
-		// actual index.
-		lsmHarness = null;
-		int numBTrees = operationalComponents.size();
-		rangeCursors = new IIndexCursor[numBTrees];
+    @Override
+    public void open(ICursorInitialState initialState,
+            ISearchPredicate searchPred) throws IndexException,
+            HyracksDataException {
+        LSMBTreeWithBuddyCursorInitialState lsmInitialState = (LSMBTreeWithBuddyCursorInitialState) initialState;
+        cmp = lsmInitialState.getBuddyBTreeCmp();
+        operationalComponents = lsmInitialState.getOperationalComponents();
+        // We intentionally set the lsmHarness to null so that we don't call
+        // lsmHarness.endSearch() because we already do that when we merge
+        // actual index.
+        lsmHarness = null;
+        int numBTrees = operationalComponents.size();
+        rangeCursors = new IIndexCursor[numBTrees];
 
-		RangePredicate btreePredicate = new RangePredicate(null, null, true,
-				true, cmp, cmp);
-		IIndexAccessor[] btreeAccessors = new ITreeIndexAccessor[numBTrees];
-		for (int i = 0; i < numBTrees; i++) {
-			ILSMComponent component = operationalComponents.get(i);
-			IBTreeLeafFrame leafFrame = (IBTreeLeafFrame) lsmInitialState
-					.getBuddyBTreeLeafFrameFactory().createFrame();
-			rangeCursors[i] = new BTreeRangeSearchCursor(leafFrame, false);
-			BTree buddyBtree = (BTree) ((LSMBTreeWithBuddyDiskComponent) component)
-					.getBuddyBTree();
-			btreeAccessors[i] = buddyBtree.createAccessor(
-					NoOpOperationCallback.INSTANCE,
-					NoOpOperationCallback.INSTANCE);
-			btreeAccessors[i].search(rangeCursors[i], btreePredicate);
-		}
-		setPriorityQueueComparator();
-		initPriorityQueue();
-	}
+        RangePredicate btreePredicate = new RangePredicate(null, null, true,
+                true, cmp, cmp);
+        IIndexAccessor[] btreeAccessors = new ITreeIndexAccessor[numBTrees];
+        for (int i = 0; i < numBTrees; i++) {
+            ILSMComponent component = operationalComponents.get(i);
+            IBTreeLeafFrame leafFrame = (IBTreeLeafFrame) lsmInitialState
+                    .getBuddyBTreeLeafFrameFactory().createFrame();
+            rangeCursors[i] = new BTreeRangeSearchCursor(leafFrame, false);
+            BTree buddyBtree = (BTree) ((LSMBTreeWithBuddyDiskComponent) component)
+                    .getBuddyBTree();
+            btreeAccessors[i] = buddyBtree.createAccessor(
+                    NoOpOperationCallback.INSTANCE,
+                    NoOpOperationCallback.INSTANCE);
+            btreeAccessors[i].search(rangeCursors[i], btreePredicate);
+        }
+        setPriorityQueueComparator();
+        initPriorityQueue();
+    }
 }

http://git-wip-us.apache.org/repos/asf/asterixdb/blob/d2ca97ab/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-btree/src/main/java/org/apache/hyracks/storage/am/lsm/btree/tuples/LSMBTreeCopyTupleWriter.java
----------------------------------------------------------------------
diff --git a/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-btree/src/main/java/org/apache/hyracks/storage/am/lsm/btree/tuples/LSMBTreeCopyTupleWriter.java b/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-btree/src/main/java/org/apache/hyracks/storage/am/lsm/btree/tuples/LSMBTreeCopyTupleWriter.java
index b9f281b..4e814d0 100644
--- a/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-btree/src/main/java/org/apache/hyracks/storage/am/lsm/btree/tuples/LSMBTreeCopyTupleWriter.java
+++ b/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-btree/src/main/java/org/apache/hyracks/storage/am/lsm/btree/tuples/LSMBTreeCopyTupleWriter.java
@@ -23,17 +23,17 @@ import org.apache.hyracks.api.dataflow.value.ITypeTraits;
 import org.apache.hyracks.dataflow.common.data.accessors.ITupleReference;
 
 public class LSMBTreeCopyTupleWriter extends LSMBTreeTupleWriter {
-	public LSMBTreeCopyTupleWriter(ITypeTraits[] typeTraits, int numKeyFields){
-		// Third parameter is never used locally, just give false.
-	    super(typeTraits, numKeyFields, false);
-	}
+    public LSMBTreeCopyTupleWriter(ITypeTraits[] typeTraits, int numKeyFields){
+        // Third parameter is never used locally, just give false.
+        super(typeTraits, numKeyFields, false);
+    }
 
-	@Override
+    @Override
     public int writeTuple(ITupleReference tuple, byte[] targetBuf, int targetOff) {
-		int tupleSize = bytesRequired(tuple);
-		byte[] buf = tuple.getFieldData(0);
-		int tupleStartOff = ((LSMBTreeTupleReference)tuple).getTupleStart();
-		System.arraycopy(buf, tupleStartOff, targetBuf, targetOff, tupleSize);
+        int tupleSize = bytesRequired(tuple);
+        byte[] buf = tuple.getFieldData(0);
+        int tupleStartOff = ((LSMBTreeTupleReference)tuple).getTupleStart();
+        System.arraycopy(buf, tupleStartOff, targetBuf, targetOff, tupleSize);
         return tupleSize;
     }
 }

http://git-wip-us.apache.org/repos/asf/asterixdb/blob/d2ca97ab/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-btree/src/main/java/org/apache/hyracks/storage/am/lsm/btree/tuples/LSMBTreeCopyTupleWriterFactory.java
----------------------------------------------------------------------
diff --git a/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-btree/src/main/java/org/apache/hyracks/storage/am/lsm/btree/tuples/LSMBTreeCopyTupleWriterFactory.java b/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-btree/src/main/java/org/apache/hyracks/storage/am/lsm/btree/tuples/LSMBTreeCopyTupleWriterFactory.java
index eb03e7a..928b3fa 100644
--- a/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-btree/src/main/java/org/apache/hyracks/storage/am/lsm/btree/tuples/LSMBTreeCopyTupleWriterFactory.java
+++ b/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-btree/src/main/java/org/apache/hyracks/storage/am/lsm/btree/tuples/LSMBTreeCopyTupleWriterFactory.java
@@ -24,18 +24,18 @@ import org.apache.hyracks.storage.am.common.api.ITreeIndexTupleWriter;
 import org.apache.hyracks.storage.am.common.tuples.TypeAwareTupleWriterFactory;
 
 public class LSMBTreeCopyTupleWriterFactory extends TypeAwareTupleWriterFactory {
-	private static final long serialVersionUID = 1L;
-	private final ITypeTraits[] typeTraits;
-	private final int numKeyFields;
+    private static final long serialVersionUID = 1L;
+    private final ITypeTraits[] typeTraits;
+    private final int numKeyFields;
 
-	public LSMBTreeCopyTupleWriterFactory(ITypeTraits[] typeTraits, int numKeyFields) {
-		super(typeTraits);
-		this.typeTraits = typeTraits;
-		this.numKeyFields = numKeyFields;
-	}
+    public LSMBTreeCopyTupleWriterFactory(ITypeTraits[] typeTraits, int numKeyFields) {
+        super(typeTraits);
+        this.typeTraits = typeTraits;
+        this.numKeyFields = numKeyFields;
+    }
 
-	@Override
-	public ITreeIndexTupleWriter createTupleWriter() {
-		return new LSMBTreeCopyTupleWriter(typeTraits, numKeyFields);
-	}
+    @Override
+    public ITreeIndexTupleWriter createTupleWriter() {
+        return new LSMBTreeCopyTupleWriter(typeTraits, numKeyFields);
+    }
 }

http://git-wip-us.apache.org/repos/asf/asterixdb/blob/d2ca97ab/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-btree/src/main/java/org/apache/hyracks/storage/am/lsm/btree/tuples/LSMBTreeRefrencingTupleWriterFactory.java
----------------------------------------------------------------------
diff --git a/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-btree/src/main/java/org/apache/hyracks/storage/am/lsm/btree/tuples/LSMBTreeRefrencingTupleWriterFactory.java b/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-btree/src/main/java/org/apache/hyracks/storage/am/lsm/btree/tuples/LSMBTreeRefrencingTupleWriterFactory.java
index fd7892d..24ae68c 100644
--- a/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-btree/src/main/java/org/apache/hyracks/storage/am/lsm/btree/tuples/LSMBTreeRefrencingTupleWriterFactory.java
+++ b/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-btree/src/main/java/org/apache/hyracks/storage/am/lsm/btree/tuples/LSMBTreeRefrencingTupleWriterFactory.java
@@ -30,40 +30,40 @@ import org.apache.hyracks.storage.am.common.tuples.TypeAwareTupleWriterFactory;
  *
  */
 public class LSMBTreeRefrencingTupleWriterFactory extends TypeAwareTupleWriterFactory{
-	private static final long serialVersionUID = 1L;
-	private final ITypeTraits[] typeTraits;
-	private final int numKeyFields;
-	private boolean isDelete;
-	private LSMBTreeTupleWriter createdTupleWriter;
+    private static final long serialVersionUID = 1L;
+    private final ITypeTraits[] typeTraits;
+    private final int numKeyFields;
+    private boolean isDelete;
+    private LSMBTreeTupleWriter createdTupleWriter;
 
-	public LSMBTreeRefrencingTupleWriterFactory(ITypeTraits[] typeTraits, int numKeyFields, boolean isDelete) {
-		super(typeTraits);
-		this.typeTraits = typeTraits;
-		this.numKeyFields = numKeyFields;
-		this.isDelete = isDelete;
-	}
+    public LSMBTreeRefrencingTupleWriterFactory(ITypeTraits[] typeTraits, int numKeyFields, boolean isDelete) {
+        super(typeTraits);
+        this.typeTraits = typeTraits;
+        this.numKeyFields = numKeyFields;
+        this.isDelete = isDelete;
+    }
 
-	@Override
-	public ITreeIndexTupleWriter createTupleWriter() {
-		createdTupleWriter = new LSMBTreeTupleWriter(typeTraits, numKeyFields, isDelete);
-		return createdTupleWriter;
-	}
+    @Override
+    public ITreeIndexTupleWriter createTupleWriter() {
+        createdTupleWriter = new LSMBTreeTupleWriter(typeTraits, numKeyFields, isDelete);
+        return createdTupleWriter;
+    }
 
-	public void setMode(IndexOperation op){
-		if(op == IndexOperation.INSERT){
-			this.isDelete = false;
-			if(createdTupleWriter != null){
-				this.createdTupleWriter.setAntimatter(false);
-			}
-		} else if(op == IndexOperation.DELETE){
-			this.isDelete = true;
-			if(createdTupleWriter != null){
-				this.createdTupleWriter.setAntimatter(true);
-			}
-		}
-	}
+    public void setMode(IndexOperation op){
+        if(op == IndexOperation.INSERT){
+            this.isDelete = false;
+            if(createdTupleWriter != null){
+                this.createdTupleWriter.setAntimatter(false);
+            }
+        } else if(op == IndexOperation.DELETE){
+            this.isDelete = true;
+            if(createdTupleWriter != null){
+                this.createdTupleWriter.setAntimatter(true);
+            }
+        }
+    }
 
-	public LSMBTreeTupleWriter getCreatedTupleWriter() {
-		return createdTupleWriter;
-	}
+    public LSMBTreeTupleWriter getCreatedTupleWriter() {
+        return createdTupleWriter;
+    }
 }

http://git-wip-us.apache.org/repos/asf/asterixdb/blob/d2ca97ab/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-btree/src/main/java/org/apache/hyracks/storage/am/lsm/btree/tuples/LSMBTreeTupleReference.java
----------------------------------------------------------------------
diff --git a/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-btree/src/main/java/org/apache/hyracks/storage/am/lsm/btree/tuples/LSMBTreeTupleReference.java b/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-btree/src/main/java/org/apache/hyracks/storage/am/lsm/btree/tuples/LSMBTreeTupleReference.java
index 6eb104b..4d6fa61 100644
--- a/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-btree/src/main/java/org/apache/hyracks/storage/am/lsm/btree/tuples/LSMBTreeTupleReference.java
+++ b/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-btree/src/main/java/org/apache/hyracks/storage/am/lsm/btree/tuples/LSMBTreeTupleReference.java
@@ -35,9 +35,9 @@ public class LSMBTreeTupleReference extends TypeAwareTupleReference implements I
     private final int numKeyFields;
 
     public LSMBTreeTupleReference(ITypeTraits[] typeTraits, int numKeyFields) {
-		super(typeTraits);
-		this.numKeyFields = numKeyFields;
-	}
+        super(typeTraits);
+        this.numKeyFields = numKeyFields;
+    }
 
     public void setFieldCount(int fieldCount) {
         super.setFieldCount(fieldCount);
@@ -75,23 +75,23 @@ public class LSMBTreeTupleReference extends TypeAwareTupleReference implements I
         resetByTupleOffset(frame.getBuffer(), frame.getTupleOffset(tupleIndex));
     }
 
-	@Override
-	protected int getNullFlagsBytes() {
-		// +1.0 is for matter/antimatter bit.
-		return (int) Math.ceil((fieldCount + 1.0) / 8.0);
+    @Override
+    protected int getNullFlagsBytes() {
+        // +1.0 is for matter/antimatter bit.
+        return (int) Math.ceil((fieldCount + 1.0) / 8.0);
     }
 
-	@Override
-	public boolean isAntimatter() {
-	      // Check if the leftmost bit is 0 or 1.
-		final byte mask = (byte) (1 << 7);
-		if ((buf.array()[tupleStartOff] & mask) != 0) {
-		    return true;
-		}
-		return false;
-	}
+    @Override
+    public boolean isAntimatter() {
+          // Check if the leftmost bit is 0 or 1.
+        final byte mask = (byte) (1 << 7);
+        if ((buf.array()[tupleStartOff] & mask) != 0) {
+            return true;
+        }
+        return false;
+    }
 
     public int getTupleStart() {
-    	return tupleStartOff;
+        return tupleStartOff;
     }
 }

http://git-wip-us.apache.org/repos/asf/asterixdb/blob/d2ca97ab/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-btree/src/main/java/org/apache/hyracks/storage/am/lsm/btree/tuples/LSMBTreeTupleWriterFactory.java
----------------------------------------------------------------------
diff --git a/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-btree/src/main/java/org/apache/hyracks/storage/am/lsm/btree/tuples/LSMBTreeTupleWriterFactory.java b/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-btree/src/main/java/org/apache/hyracks/storage/am/lsm/btree/tuples/LSMBTreeTupleWriterFactory.java
index f3b372f..5ee2b81 100644
--- a/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-btree/src/main/java/org/apache/hyracks/storage/am/lsm/btree/tuples/LSMBTreeTupleWriterFactory.java
+++ b/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-btree/src/main/java/org/apache/hyracks/storage/am/lsm/btree/tuples/LSMBTreeTupleWriterFactory.java
@@ -25,18 +25,18 @@ import org.apache.hyracks.storage.am.common.tuples.TypeAwareTupleWriterFactory;
 
 public class LSMBTreeTupleWriterFactory extends TypeAwareTupleWriterFactory {
 
-	private static final long serialVersionUID = 1L;
-	private final int numKeyFields;
-	private final boolean isDelete;
+    private static final long serialVersionUID = 1L;
+    private final int numKeyFields;
+    private final boolean isDelete;
 
-	public LSMBTreeTupleWriterFactory(ITypeTraits[] typeTraits, int numKeyFields, boolean isDelete) {
-		super(typeTraits);
-		this.numKeyFields = numKeyFields;
-		this.isDelete = isDelete;
-	}
+    public LSMBTreeTupleWriterFactory(ITypeTraits[] typeTraits, int numKeyFields, boolean isDelete) {
+        super(typeTraits);
+        this.numKeyFields = numKeyFields;
+        this.isDelete = isDelete;
+    }
 
-	@Override
-	public ITreeIndexTupleWriter createTupleWriter() {
-		return new LSMBTreeTupleWriter(typeTraits, numKeyFields, isDelete);
-	}
+    @Override
+    public ITreeIndexTupleWriter createTupleWriter() {
+        return new LSMBTreeTupleWriter(typeTraits, numKeyFields, isDelete);
+    }
 }

http://git-wip-us.apache.org/repos/asf/asterixdb/blob/d2ca97ab/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-invertedindex/src/main/java/org/apache/hyracks/storage/am/lsm/invertedindex/tokenizers/AbstractUTF8TokenFactory.java
----------------------------------------------------------------------
diff --git a/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-invertedindex/src/main/java/org/apache/hyracks/storage/am/lsm/invertedindex/tokenizers/AbstractUTF8TokenFactory.java b/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-invertedindex/src/main/java/org/apache/hyracks/storage/am/lsm/invertedindex/tokenizers/AbstractUTF8TokenFactory.java
index 59fee05..56fa101 100644
--- a/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-invertedindex/src/main/java/org/apache/hyracks/storage/am/lsm/invertedindex/tokenizers/AbstractUTF8TokenFactory.java
+++ b/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-invertedindex/src/main/java/org/apache/hyracks/storage/am/lsm/invertedindex/tokenizers/AbstractUTF8TokenFactory.java
@@ -20,17 +20,17 @@
 package org.apache.hyracks.storage.am.lsm.invertedindex.tokenizers;
 
 public abstract class AbstractUTF8TokenFactory implements ITokenFactory {
-	private static final long serialVersionUID = 1L;
-	protected final byte tokenTypeTag;
-	protected final byte countTypeTag;
+    private static final long serialVersionUID = 1L;
+    protected final byte tokenTypeTag;
+    protected final byte countTypeTag;
 
-	public AbstractUTF8TokenFactory() {
-		tokenTypeTag = -1;
-		countTypeTag = -1;
-	}
+    public AbstractUTF8TokenFactory() {
+        tokenTypeTag = -1;
+        countTypeTag = -1;
+    }
 
-	public AbstractUTF8TokenFactory(byte tokenTypeTag, byte countTypeTag) {
-		this.tokenTypeTag = tokenTypeTag;
-		this.countTypeTag = countTypeTag;
-	}
+    public AbstractUTF8TokenFactory(byte tokenTypeTag, byte countTypeTag) {
+        this.tokenTypeTag = tokenTypeTag;
+        this.countTypeTag = countTypeTag;
+    }
 }

http://git-wip-us.apache.org/repos/asf/asterixdb/blob/d2ca97ab/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-invertedindex/src/main/java/org/apache/hyracks/storage/am/lsm/invertedindex/tokenizers/DelimitedUTF8StringBinaryTokenizerFactory.java
----------------------------------------------------------------------
diff --git a/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-invertedindex/src/main/java/org/apache/hyracks/storage/am/lsm/invertedindex/tokenizers/DelimitedUTF8StringBinaryTokenizerFactory.java b/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-invertedindex/src/main/java/org/apache/hyracks/storage/am/lsm/invertedindex/tokenizers/DelimitedUTF8StringBinaryTokenizerFactory.java
index 4dfdc88..81254fc 100644
--- a/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-invertedindex/src/main/java/org/apache/hyracks/storage/am/lsm/invertedindex/tokenizers/DelimitedUTF8StringBinaryTokenizerFactory.java
+++ b/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-invertedindex/src/main/java/org/apache/hyracks/storage/am/lsm/invertedindex/tokenizers/DelimitedUTF8StringBinaryTokenizerFactory.java
@@ -20,23 +20,23 @@
 package org.apache.hyracks.storage.am.lsm.invertedindex.tokenizers;
 
 public class DelimitedUTF8StringBinaryTokenizerFactory implements
-		IBinaryTokenizerFactory {
+        IBinaryTokenizerFactory {
 
-	private static final long serialVersionUID = 1L;
-	private final boolean ignoreTokenCount;
-	private final boolean sourceHasTypeTag;
-	private final ITokenFactory tokenFactory;
+    private static final long serialVersionUID = 1L;
+    private final boolean ignoreTokenCount;
+    private final boolean sourceHasTypeTag;
+    private final ITokenFactory tokenFactory;
 
-	public DelimitedUTF8StringBinaryTokenizerFactory(boolean ignoreTokenCount,
-			boolean sourceHasTypeTag, ITokenFactory tokenFactory) {
-		this.ignoreTokenCount = ignoreTokenCount;
-		this.sourceHasTypeTag = sourceHasTypeTag;
-		this.tokenFactory = tokenFactory;
-	}
+    public DelimitedUTF8StringBinaryTokenizerFactory(boolean ignoreTokenCount,
+            boolean sourceHasTypeTag, ITokenFactory tokenFactory) {
+        this.ignoreTokenCount = ignoreTokenCount;
+        this.sourceHasTypeTag = sourceHasTypeTag;
+        this.tokenFactory = tokenFactory;
+    }
 
-	@Override
-	public IBinaryTokenizer createTokenizer() {
-		return new DelimitedUTF8StringBinaryTokenizer(ignoreTokenCount,
-				sourceHasTypeTag, tokenFactory);
-	}
+    @Override
+    public IBinaryTokenizer createTokenizer() {
+        return new DelimitedUTF8StringBinaryTokenizer(ignoreTokenCount,
+                sourceHasTypeTag, tokenFactory);
+    }
 }

http://git-wip-us.apache.org/repos/asf/asterixdb/blob/d2ca97ab/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-invertedindex/src/main/java/org/apache/hyracks/storage/am/lsm/invertedindex/tokenizers/HashedUTF8NGramTokenFactory.java
----------------------------------------------------------------------
diff --git a/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-invertedindex/src/main/java/org/apache/hyracks/storage/am/lsm/invertedindex/tokenizers/HashedUTF8NGramTokenFactory.java b/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-invertedindex/src/main/java/org/apache/hyracks/storage/am/lsm/invertedindex/tokenizers/HashedUTF8NGramTokenFactory.java
index b593d3b..0bc01b6 100644
--- a/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-invertedindex/src/main/java/org/apache/hyracks/storage/am/lsm/invertedindex/tokenizers/HashedUTF8NGramTokenFactory.java
+++ b/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-invertedindex/src/main/java/org/apache/hyracks/storage/am/lsm/invertedindex/tokenizers/HashedUTF8NGramTokenFactory.java
@@ -21,18 +21,18 @@ package org.apache.hyracks.storage.am.lsm.invertedindex.tokenizers;
 
 public class HashedUTF8NGramTokenFactory extends AbstractUTF8TokenFactory {
 
-	private static final long serialVersionUID = 1L;
+    private static final long serialVersionUID = 1L;
 
-	public HashedUTF8NGramTokenFactory() {
-		super();
-	}
+    public HashedUTF8NGramTokenFactory() {
+        super();
+    }
 
-	public HashedUTF8NGramTokenFactory(byte tokenTypeTag, byte countTypeTag) {
-		super(tokenTypeTag, countTypeTag);
-	}
+    public HashedUTF8NGramTokenFactory(byte tokenTypeTag, byte countTypeTag) {
+        super(tokenTypeTag, countTypeTag);
+    }
 
-	@Override
-	public IToken createToken() {
-		return new HashedUTF8NGramToken(tokenTypeTag, countTypeTag);
-	}
+    @Override
+    public IToken createToken() {
+        return new HashedUTF8NGramToken(tokenTypeTag, countTypeTag);
+    }
 }

http://git-wip-us.apache.org/repos/asf/asterixdb/blob/d2ca97ab/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-invertedindex/src/main/java/org/apache/hyracks/storage/am/lsm/invertedindex/tokenizers/HashedUTF8WordTokenFactory.java
----------------------------------------------------------------------
diff --git a/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-invertedindex/src/main/java/org/apache/hyracks/storage/am/lsm/invertedindex/tokenizers/HashedUTF8WordTokenFactory.java b/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-invertedindex/src/main/java/org/apache/hyracks/storage/am/lsm/invertedindex/tokenizers/HashedUTF8WordTokenFactory.java
index d560aeb..7819e16 100644
--- a/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-invertedindex/src/main/java/org/apache/hyracks/storage/am/lsm/invertedindex/tokenizers/HashedUTF8WordTokenFactory.java
+++ b/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-invertedindex/src/main/java/org/apache/hyracks/storage/am/lsm/invertedindex/tokenizers/HashedUTF8WordTokenFactory.java
@@ -21,18 +21,18 @@ package org.apache.hyracks.storage.am.lsm.invertedindex.tokenizers;
 
 public class HashedUTF8WordTokenFactory extends AbstractUTF8TokenFactory {
 
-	private static final long serialVersionUID = 1L;
+    private static final long serialVersionUID = 1L;
 
-	public HashedUTF8WordTokenFactory() {
-		super();
-	}
+    public HashedUTF8WordTokenFactory() {
+        super();
+    }
 
-	public HashedUTF8WordTokenFactory(byte tokenTypeTag, byte countTypeTag) {
-		super(tokenTypeTag, countTypeTag);
-	}
+    public HashedUTF8WordTokenFactory(byte tokenTypeTag, byte countTypeTag) {
+        super(tokenTypeTag, countTypeTag);
+    }
 
-	@Override
-	public IToken createToken() {
-		return new HashedUTF8WordToken(tokenTypeTag, countTypeTag);
-	}
+    @Override
+    public IToken createToken() {
+        return new HashedUTF8WordToken(tokenTypeTag, countTypeTag);
+    }
 }

http://git-wip-us.apache.org/repos/asf/asterixdb/blob/d2ca97ab/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-invertedindex/src/main/java/org/apache/hyracks/storage/am/lsm/invertedindex/tokenizers/IBinaryTokenizerFactory.java
----------------------------------------------------------------------
diff --git a/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-invertedindex/src/main/java/org/apache/hyracks/storage/am/lsm/invertedindex/tokenizers/IBinaryTokenizerFactory.java b/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-invertedindex/src/main/java/org/apache/hyracks/storage/am/lsm/invertedindex/tokenizers/IBinaryTokenizerFactory.java
index 5edb05d..01e83a3 100644
--- a/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-invertedindex/src/main/java/org/apache/hyracks/storage/am/lsm/invertedindex/tokenizers/IBinaryTokenizerFactory.java
+++ b/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-invertedindex/src/main/java/org/apache/hyracks/storage/am/lsm/invertedindex/tokenizers/IBinaryTokenizerFactory.java
@@ -22,5 +22,5 @@ package org.apache.hyracks.storage.am.lsm.invertedindex.tokenizers;
 import java.io.Serializable;
 
 public interface IBinaryTokenizerFactory extends Serializable {
-	public IBinaryTokenizer createTokenizer();
+    public IBinaryTokenizer createTokenizer();
 }

http://git-wip-us.apache.org/repos/asf/asterixdb/blob/d2ca97ab/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-invertedindex/src/main/java/org/apache/hyracks/storage/am/lsm/invertedindex/tokenizers/INGramToken.java
----------------------------------------------------------------------
diff --git a/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-invertedindex/src/main/java/org/apache/hyracks/storage/am/lsm/invertedindex/tokenizers/INGramToken.java b/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-invertedindex/src/main/java/org/apache/hyracks/storage/am/lsm/invertedindex/tokenizers/INGramToken.java
index 6671f72..3dc4f87 100644
--- a/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-invertedindex/src/main/java/org/apache/hyracks/storage/am/lsm/invertedindex/tokenizers/INGramToken.java
+++ b/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-invertedindex/src/main/java/org/apache/hyracks/storage/am/lsm/invertedindex/tokenizers/INGramToken.java
@@ -20,9 +20,9 @@
 package org.apache.hyracks.storage.am.lsm.invertedindex.tokenizers;
 
 public interface INGramToken {
-	public int getNumPostChars();
+    public int getNumPostChars();
 
-	public int getNumPreChars();
+    public int getNumPreChars();
 
-	public void setNumPrePostChars(int numPreChars, int numPostChars);
+    public void setNumPrePostChars(int numPreChars, int numPostChars);
 }

http://git-wip-us.apache.org/repos/asf/asterixdb/blob/d2ca97ab/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-invertedindex/src/main/java/org/apache/hyracks/storage/am/lsm/invertedindex/tokenizers/UTF8NGramTokenFactory.java
----------------------------------------------------------------------
diff --git a/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-invertedindex/src/main/java/org/apache/hyracks/storage/am/lsm/invertedindex/tokenizers/UTF8NGramTokenFactory.java b/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-invertedindex/src/main/java/org/apache/hyracks/storage/am/lsm/invertedindex/tokenizers/UTF8NGramTokenFactory.java
index f8d241c..64f1e99 100644
--- a/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-invertedindex/src/main/java/org/apache/hyracks/storage/am/lsm/invertedindex/tokenizers/UTF8NGramTokenFactory.java
+++ b/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-invertedindex/src/main/java/org/apache/hyracks/storage/am/lsm/invertedindex/tokenizers/UTF8NGramTokenFactory.java
@@ -21,19 +21,19 @@ package org.apache.hyracks.storage.am.lsm.invertedindex.tokenizers;
 
 public class UTF8NGramTokenFactory extends AbstractUTF8TokenFactory {
 
-	private static final long serialVersionUID = 1L;
+    private static final long serialVersionUID = 1L;
 
-	public UTF8NGramTokenFactory() {
-		super();
-	}
+    public UTF8NGramTokenFactory() {
+        super();
+    }
 
-	public UTF8NGramTokenFactory(byte tokenTypeTag, byte countTypeTag) {
-		super(tokenTypeTag, countTypeTag);
-	}
+    public UTF8NGramTokenFactory(byte tokenTypeTag, byte countTypeTag) {
+        super(tokenTypeTag, countTypeTag);
+    }
 
-	@Override
-	public IToken createToken() {
-		return new UTF8NGramToken(tokenTypeTag, countTypeTag);
-	}
+    @Override
+    public IToken createToken() {
+        return new UTF8NGramToken(tokenTypeTag, countTypeTag);
+    }
 
 }

http://git-wip-us.apache.org/repos/asf/asterixdb/blob/d2ca97ab/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-invertedindex/src/main/java/org/apache/hyracks/storage/am/lsm/invertedindex/tokenizers/UTF8WordTokenFactory.java
----------------------------------------------------------------------
diff --git a/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-invertedindex/src/main/java/org/apache/hyracks/storage/am/lsm/invertedindex/tokenizers/UTF8WordTokenFactory.java b/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-invertedindex/src/main/java/org/apache/hyracks/storage/am/lsm/invertedindex/tokenizers/UTF8WordTokenFactory.java
index 5274fa3..3a8a048 100644
--- a/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-invertedindex/src/main/java/org/apache/hyracks/storage/am/lsm/invertedindex/tokenizers/UTF8WordTokenFactory.java
+++ b/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-invertedindex/src/main/java/org/apache/hyracks/storage/am/lsm/invertedindex/tokenizers/UTF8WordTokenFactory.java
@@ -21,19 +21,19 @@ package org.apache.hyracks.storage.am.lsm.invertedindex.tokenizers;
 
 public class UTF8WordTokenFactory extends AbstractUTF8TokenFactory {
 
-	private static final long serialVersionUID = 1L;
+    private static final long serialVersionUID = 1L;
 
-	public UTF8WordTokenFactory() {
-		super();
-	}
+    public UTF8WordTokenFactory() {
+        super();
+    }
 
-	public UTF8WordTokenFactory(byte tokenTypeTag, byte countTypeTag) {
-		super(tokenTypeTag, countTypeTag);
-	}
+    public UTF8WordTokenFactory(byte tokenTypeTag, byte countTypeTag) {
+        super(tokenTypeTag, countTypeTag);
+    }
 
-	@Override
-	public IToken createToken() {
-		return new UTF8WordToken(tokenTypeTag, countTypeTag);
-	}
+    @Override
+    public IToken createToken() {
+        return new UTF8WordToken(tokenTypeTag, countTypeTag);
+    }
 
 }

http://git-wip-us.apache.org/repos/asf/asterixdb/blob/d2ca97ab/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-rtree/src/main/java/org/apache/hyracks/storage/am/lsm/rtree/tuples/LSMTypeAwareTupleWriterFactory.java
----------------------------------------------------------------------
diff --git a/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-rtree/src/main/java/org/apache/hyracks/storage/am/lsm/rtree/tuples/LSMTypeAwareTupleWriterFactory.java b/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-rtree/src/main/java/org/apache/hyracks/storage/am/lsm/rtree/tuples/LSMTypeAwareTupleWriterFactory.java
index bdc6708..ac4f3c8 100644
--- a/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-rtree/src/main/java/org/apache/hyracks/storage/am/lsm/rtree/tuples/LSMTypeAwareTupleWriterFactory.java
+++ b/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-rtree/src/main/java/org/apache/hyracks/storage/am/lsm/rtree/tuples/LSMTypeAwareTupleWriterFactory.java
@@ -26,23 +26,23 @@ import org.apache.hyracks.storage.am.rtree.tuples.RTreeTypeAwareTupleWriter;
 
 public class LSMTypeAwareTupleWriterFactory extends TypeAwareTupleWriterFactory {
 
-	private static final long serialVersionUID = 1L;
-	private ITypeTraits[] typeTraits;
-	private final boolean isDelete;
+    private static final long serialVersionUID = 1L;
+    private ITypeTraits[] typeTraits;
+    private final boolean isDelete;
 
-	public LSMTypeAwareTupleWriterFactory(ITypeTraits[] typeTraits, boolean isDelete) {
-		super(typeTraits);
-		this.typeTraits = typeTraits;
-		this.isDelete = isDelete;
-	}
+    public LSMTypeAwareTupleWriterFactory(ITypeTraits[] typeTraits, boolean isDelete) {
+        super(typeTraits);
+        this.typeTraits = typeTraits;
+        this.isDelete = isDelete;
+    }
 
-	@Override
-	public ITreeIndexTupleWriter createTupleWriter() {
-	    if (isDelete) {
-	        return new TypeAwareTupleWriter(typeTraits);
-	    } else {
-	        return new RTreeTypeAwareTupleWriter(typeTraits);
-	    }
-	}
+    @Override
+    public ITreeIndexTupleWriter createTupleWriter() {
+        if (isDelete) {
+            return new TypeAwareTupleWriter(typeTraits);
+        } else {
+            return new RTreeTypeAwareTupleWriter(typeTraits);
+        }
+    }
 
 }

http://git-wip-us.apache.org/repos/asf/asterixdb/blob/d2ca97ab/hyracks-fullstack/hyracks/hyracks-storage-am-rtree/src/main/java/org/apache/hyracks/storage/am/rtree/api/IGenericPrimitiveSerializerDeserializer.java
----------------------------------------------------------------------
diff --git a/hyracks-fullstack/hyracks/hyracks-storage-am-rtree/src/main/java/org/apache/hyracks/storage/am/rtree/api/IGenericPrimitiveSerializerDeserializer.java b/hyracks-fullstack/hyracks/hyracks-storage-am-rtree/src/main/java/org/apache/hyracks/storage/am/rtree/api/IGenericPrimitiveSerializerDeserializer.java
index 18f20ae..1825003 100644
--- a/hyracks-fullstack/hyracks/hyracks-storage-am-rtree/src/main/java/org/apache/hyracks/storage/am/rtree/api/IGenericPrimitiveSerializerDeserializer.java
+++ b/hyracks-fullstack/hyracks/hyracks-storage-am-rtree/src/main/java/org/apache/hyracks/storage/am/rtree/api/IGenericPrimitiveSerializerDeserializer.java
@@ -22,6 +22,6 @@ package org.apache.hyracks.storage.am.rtree.api;
 import org.apache.hyracks.api.dataflow.value.ISerializerDeserializer;
 
 public interface IGenericPrimitiveSerializerDeserializer<T> extends
-		ISerializerDeserializer<T> {
-	public double getValue(byte[] bytes, int offset);
+        ISerializerDeserializer<T> {
+    public double getValue(byte[] bytes, int offset);
 }

http://git-wip-us.apache.org/repos/asf/asterixdb/blob/d2ca97ab/hyracks-fullstack/hyracks/hyracks-storage-am-rtree/src/main/java/org/apache/hyracks/storage/am/rtree/impls/EntriesOrder.java
----------------------------------------------------------------------
diff --git a/hyracks-fullstack/hyracks/hyracks-storage-am-rtree/src/main/java/org/apache/hyracks/storage/am/rtree/impls/EntriesOrder.java b/hyracks-fullstack/hyracks/hyracks-storage-am-rtree/src/main/java/org/apache/hyracks/storage/am/rtree/impls/EntriesOrder.java
index 04111f9..d6d69bb 100644
--- a/hyracks-fullstack/hyracks/hyracks-storage-am-rtree/src/main/java/org/apache/hyracks/storage/am/rtree/impls/EntriesOrder.java
+++ b/hyracks-fullstack/hyracks/hyracks-storage-am-rtree/src/main/java/org/apache/hyracks/storage/am/rtree/impls/EntriesOrder.java
@@ -20,5 +20,5 @@
 package org.apache.hyracks.storage.am.rtree.impls;
 
 public enum EntriesOrder {
-	ASCENDING, DESCENDING
+    ASCENDING, DESCENDING
 }

http://git-wip-us.apache.org/repos/asf/asterixdb/blob/d2ca97ab/hyracks-fullstack/hyracks/hyracks-storage-am-rtree/src/main/java/org/apache/hyracks/storage/am/rtree/impls/RTreeSplitKey.java
----------------------------------------------------------------------
diff --git a/hyracks-fullstack/hyracks/hyracks-storage-am-rtree/src/main/java/org/apache/hyracks/storage/am/rtree/impls/RTreeSplitKey.java b/hyracks-fullstack/hyracks/hyracks-storage-am-rtree/src/main/java/org/apache/hyracks/storage/am/rtree/impls/RTreeSplitKey.java
index ec731c3..d89c12b 100644
--- a/hyracks-fullstack/hyracks/hyracks-storage-am-rtree/src/main/java/org/apache/hyracks/storage/am/rtree/impls/RTreeSplitKey.java
+++ b/hyracks-fullstack/hyracks/hyracks-storage-am-rtree/src/main/java/org/apache/hyracks/storage/am/rtree/impls/RTreeSplitKey.java
@@ -25,134 +25,134 @@ import org.apache.hyracks.storage.am.common.api.ISplitKey;
 import org.apache.hyracks.storage.am.common.api.ITreeIndexTupleReference;
 
 public class RTreeSplitKey implements ISplitKey {
-	public byte[] leftPageData = null;
-	public ByteBuffer leftPageBuf = null;
-	public ITreeIndexTupleReference leftTuple;
-
-	public byte[] rightPageData = null;
-	public ByteBuffer rightPageBuf = null;
-	public ITreeIndexTupleReference rightTuple;
-
-	public int keySize = 0;
-
-	public RTreeSplitKey(ITreeIndexTupleReference leftTuple,
-			ITreeIndexTupleReference rightTuple) {
-		this.leftTuple = leftTuple;
-		this.rightTuple = rightTuple;
-	}
-
-	public void initData(int keySize) {
-		// try to reuse existing memory from a lower-level split if possible
-		this.keySize = keySize;
-		if (leftPageData != null) {
-			if (leftPageData.length < keySize + 4) {
-				leftPageData = new byte[keySize + 4]; // add 4 for the page
-				leftPageBuf = ByteBuffer.wrap(leftPageData);
-			}
-		} else {
-			leftPageData = new byte[keySize + 4]; // add 4 for the page
-			leftPageBuf = ByteBuffer.wrap(leftPageData);
-		}
-		if (rightPageData != null) {
-			if (rightPageData.length < keySize + 4) {
-				rightPageData = new byte[keySize + 4]; // add 4 for the page
-				rightPageBuf = ByteBuffer.wrap(rightPageData);
-			}
-		} else {
-			rightPageData = new byte[keySize + 4]; // add 4 for the page
-			rightPageBuf = ByteBuffer.wrap(rightPageData);
-		}
-
-		leftTuple.resetByTupleOffset(leftPageBuf, 0);
-		rightTuple.resetByTupleOffset(rightPageBuf, 0);
-	}
-
-	public void resetLeftPage() {
-		leftPageData = null;
-		leftPageBuf = null;
-	}
-
-	public void resetRightPage() {
-		rightPageData = null;
-		rightPageBuf = null;
-	}
-
-	public ByteBuffer getLeftPageBuffer() {
-		return leftPageBuf;
-	}
-
-	public ByteBuffer getRightPageBuffer() {
-		return rightPageBuf;
-	}
-
-	public ITreeIndexTupleReference getLeftTuple() {
-		return leftTuple;
-	}
-
-	public ITreeIndexTupleReference getRightTuple() {
-		return rightTuple;
-	}
-
-	public int getLeftPage() {
-		return leftPageBuf.getInt(keySize);
-	}
-
-	public int getRightPage() {
-		return rightPageBuf.getInt(keySize);
-	}
-
-	public void setLeftPage(int page) {
-		leftPageBuf.putInt(keySize, page);
-	}
-
-	public void setRightPage(int page) {
-		rightPageBuf.putInt(keySize, page);
-	}
-
-	public ISplitKey duplicate(ITreeIndexTupleReference copyLeftTuple,
-			ITreeIndexTupleReference copyRightTuple) {
-		RTreeSplitKey copy = new RTreeSplitKey(copyLeftTuple, copyRightTuple);
-		copy.leftPageData = leftPageData.clone();
-		copy.leftPageBuf = ByteBuffer.wrap(copy.leftPageData);
-		copy.leftTuple.setFieldCount(leftTuple.getFieldCount());
-		copy.leftTuple.resetByTupleOffset(copy.leftPageBuf, 0);
-
-		copy.rightPageData = rightPageData.clone();
-		copy.rightPageBuf = ByteBuffer.wrap(copy.rightPageData);
-		copy.rightTuple.setFieldCount(rightTuple.getFieldCount());
-		copy.rightTuple.resetByTupleOffset(copy.rightPageBuf, 0);
-		return copy;
-	}
-
-	@Override
-	public void reset() {
-		leftPageData = null;
-		leftPageBuf = null;
-		rightPageData = null;
-		rightPageBuf = null;
-	}
-
-	@Override
-	public ByteBuffer getBuffer() {
-		// TODO Auto-generated method stub
-		return null;
-	}
-
-	@Override
-	public ITreeIndexTupleReference getTuple() {
-		// TODO Auto-generated method stub
-		return null;
-	}
-
-	@Override
-	public void setPages(int leftPage, int rightPage) {
-		leftPageBuf.putInt(keySize, leftPage);
-		rightPageBuf.putInt(keySize, rightPage);
-	}
-
-	@Override
-	public ISplitKey duplicate(ITreeIndexTupleReference copyTuple) {
-		// TODO Auto-generated method stub
-		return null;
-	}
+    public byte[] leftPageData = null;
+    public ByteBuffer leftPageBuf = null;
+    public ITreeIndexTupleReference leftTuple;
+
+    public byte[] rightPageData = null;
+    public ByteBuffer rightPageBuf = null;
+    public ITreeIndexTupleReference rightTuple;
+
+    public int keySize = 0;
+
+    public RTreeSplitKey(ITreeIndexTupleReference leftTuple,
+            ITreeIndexTupleReference rightTuple) {
+        this.leftTuple = leftTuple;
+        this.rightTuple = rightTuple;
+    }
+
+    public void initData(int keySize) {
+        // try to reuse existing memory from a lower-level split if possible
+        this.keySize = keySize;
+        if (leftPageData != null) {
+            if (leftPageData.length < keySize + 4) {
+                leftPageData = new byte[keySize + 4]; // add 4 for the page
+                leftPageBuf = ByteBuffer.wrap(leftPageData);
+            }
+        } else {
+            leftPageData = new byte[keySize + 4]; // add 4 for the page
+            leftPageBuf = ByteBuffer.wrap(leftPageData);
+        }
+        if (rightPageData != null) {
+            if (rightPageData.length < keySize + 4) {
+                rightPageData = new byte[keySize + 4]; // add 4 for the page
+                rightPageBuf = ByteBuffer.wrap(rightPageData);
+            }
+        } else {
+            rightPageData = new byte[keySize + 4]; // add 4 for the page
+            rightPageBuf = ByteBuffer.wrap(rightPageData);
+        }
+
+        leftTuple.resetByTupleOffset(leftPageBuf, 0);
+        rightTuple.resetByTupleOffset(rightPageBuf, 0);
+    }
+
+    public void resetLeftPage() {
+        leftPageData = null;
+        leftPageBuf = null;
+    }
+
+    public void resetRightPage() {
+        rightPageData = null;
+        rightPageBuf = null;
+    }
+
+    public ByteBuffer getLeftPageBuffer() {
+        return leftPageBuf;
+    }
+
+    public ByteBuffer getRightPageBuffer() {
+        return rightPageBuf;
+    }
+
+    public ITreeIndexTupleReference getLeftTuple() {
+        return leftTuple;
+    }
+
+    public ITreeIndexTupleReference getRightTuple() {
+        return rightTuple;
+    }
+
+    public int getLeftPage() {
+        return leftPageBuf.getInt(keySize);
+    }
+
+    public int getRightPage() {
+        return rightPageBuf.getInt(keySize);
+    }
+
+    public void setLeftPage(int page) {
+        leftPageBuf.putInt(keySize, page);
+    }
+
+    public void setRightPage(int page) {
+        rightPageBuf.putInt(keySize, page);
+    }
+
+    public ISplitKey duplicate(ITreeIndexTupleReference copyLeftTuple,
+            ITreeIndexTupleReference copyRightTuple) {
+        RTreeSplitKey copy = new RTreeSplitKey(copyLeftTuple, copyRightTuple);
+        copy.leftPageData = leftPageData.clone();
+        copy.leftPageBuf = ByteBuffer.wrap(copy.leftPageData);
+        copy.leftTuple.setFieldCount(leftTuple.getFieldCount());
+        copy.leftTuple.resetByTupleOffset(copy.leftPageBuf, 0);
+
+        copy.rightPageData = rightPageData.clone();
+        copy.rightPageBuf = ByteBuffer.wrap(copy.rightPageData);
+        copy.rightTuple.setFieldCount(rightTuple.getFieldCount());
+        copy.rightTuple.resetByTupleOffset(copy.rightPageBuf, 0);
+        return copy;
+    }
+
+    @Override
+    public void reset() {
+        leftPageData = null;
+        leftPageBuf = null;
+        rightPageData = null;
+        rightPageBuf = null;
+    }
+
+    @Override
+    public ByteBuffer getBuffer() {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    @Override
+    public ITreeIndexTupleReference getTuple() {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    @Override
+    public void setPages(int leftPage, int rightPage) {
+        leftPageBuf.putInt(keySize, leftPage);
+        rightPageBuf.putInt(keySize, rightPage);
+    }
+
+    @Override
+    public ISplitKey duplicate(ITreeIndexTupleReference copyTuple) {
+        // TODO Auto-generated method stub
+        return null;
+    }
 }

http://git-wip-us.apache.org/repos/asf/asterixdb/blob/d2ca97ab/hyracks-fullstack/hyracks/hyracks-storage-am-rtree/src/main/java/org/apache/hyracks/storage/am/rtree/impls/TupleEntry.java
----------------------------------------------------------------------
diff --git a/hyracks-fullstack/hyracks/hyracks-storage-am-rtree/src/main/java/org/apache/hyracks/storage/am/rtree/impls/TupleEntry.java b/hyracks-fullstack/hyracks/hyracks-storage-am-rtree/src/main/java/org/apache/hyracks/storage/am/rtree/impls/TupleEntry.java
index a9176c9..21beb9c 100644
--- a/hyracks-fullstack/hyracks/hyracks-storage-am-rtree/src/main/java/org/apache/hyracks/storage/am/rtree/impls/TupleEntry.java
+++ b/hyracks-fullstack/hyracks/hyracks-storage-am-rtree/src/main/java/org/apache/hyracks/storage/am/rtree/impls/TupleEntry.java
@@ -22,35 +22,35 @@ package org.apache.hyracks.storage.am.rtree.impls;
 import org.apache.hyracks.storage.am.rtree.frames.RTreeNSMFrame;
 
 public class TupleEntry implements Comparable<TupleEntry> {
-	private int tupleIndex;
-	private double value;
-
-	public TupleEntry() {
-	}
-
-	public int getTupleIndex() {
-		return tupleIndex;
-	}
-
-	public void setTupleIndex(int tupleIndex) {
-		this.tupleIndex = tupleIndex;
-	}
-
-	public double getValue() {
-		return value;
-	}
-
-	public void setValue(double value) {
-		this.value = value;
-	}
-
-	public int compareTo(TupleEntry tupleEntry) {
-		double cmp = this.getValue() - tupleEntry.getValue();
-		if (cmp > RTreeNSMFrame.doubleEpsilon())
-			return 1;
-		cmp = tupleEntry.getValue() - this.getValue();
-		if (cmp > RTreeNSMFrame.doubleEpsilon())
-			return -1;
-		return 0;
-	}
+    private int tupleIndex;
+    private double value;
+
+    public TupleEntry() {
+    }
+
+    public int getTupleIndex() {
+        return tupleIndex;
+    }
+
+    public void setTupleIndex(int tupleIndex) {
+        this.tupleIndex = tupleIndex;
+    }
+
+    public double getValue() {
+        return value;
+    }
+
+    public void setValue(double value) {
+        this.value = value;
+    }
+
+    public int compareTo(TupleEntry tupleEntry) {
+        double cmp = this.getValue() - tupleEntry.getValue();
+        if (cmp > RTreeNSMFrame.doubleEpsilon())
+            return 1;
+        cmp = tupleEntry.getValue() - this.getValue();
+        if (cmp > RTreeNSMFrame.doubleEpsilon())
+            return -1;
+        return 0;
+    }
 }

http://git-wip-us.apache.org/repos/asf/asterixdb/blob/d2ca97ab/hyracks-fullstack/hyracks/hyracks-storage-am-rtree/src/main/java/org/apache/hyracks/storage/am/rtree/impls/TupleEntryArrayList.java
----------------------------------------------------------------------
diff --git a/hyracks-fullstack/hyracks/hyracks-storage-am-rtree/src/main/java/org/apache/hyracks/storage/am/rtree/impls/TupleEntryArrayList.java b/hyracks-fullstack/hyracks/hyracks-storage-am-rtree/src/main/java/org/apache/hyracks/storage/am/rtree/impls/TupleEntryArrayList.java
index e8dce65..59cfb59 100644
--- a/hyracks-fullstack/hyracks/hyracks-storage-am-rtree/src/main/java/org/apache/hyracks/storage/am/rtree/impls/TupleEntryArrayList.java
+++ b/hyracks-fullstack/hyracks/hyracks-storage-am-rtree/src/main/java/org/apache/hyracks/storage/am/rtree/impls/TupleEntryArrayList.java
@@ -23,61 +23,61 @@ import java.util.Arrays;
 import java.util.Collections;
 
 public class TupleEntryArrayList {
-	private TupleEntry[] data;
-	private int size;
-	private final int growth;
+    private TupleEntry[] data;
+    private int size;
+    private final int growth;
 
-	public TupleEntryArrayList(int initialCapacity, int growth) {
-		data = new TupleEntry[initialCapacity];
-		size = 0;
-		this.growth = growth;
-	}
+    public TupleEntryArrayList(int initialCapacity, int growth) {
+        data = new TupleEntry[initialCapacity];
+        size = 0;
+        this.growth = growth;
+    }
 
-	public int size() {
-		return size;
-	}
+    public int size() {
+        return size;
+    }
 
-	public void add(int tupleIndex, double value) {
-		if (size == data.length) {
-			TupleEntry[] newData = new TupleEntry[data.length + growth];
-			System.arraycopy(data, 0, newData, 0, data.length);
-			data = newData;
-		}
-		if (data[size] == null) {
-			data[size] = new TupleEntry();
-		}
-		data[size].setTupleIndex(tupleIndex);
-		data[size].setValue(value);
-		size++;
-	}
+    public void add(int tupleIndex, double value) {
+        if (size == data.length) {
+            TupleEntry[] newData = new TupleEntry[data.length + growth];
+            System.arraycopy(data, 0, newData, 0, data.length);
+            data = newData;
+        }
+        if (data[size] == null) {
+            data[size] = new TupleEntry();
+        }
+        data[size].setTupleIndex(tupleIndex);
+        data[size].setValue(value);
+        size++;
+    }
 
-	public void removeLast() {
-		if (size > 0)
-			size--;
-	}
+    public void removeLast() {
+        if (size > 0)
+            size--;
+    }
 
-	// WARNING: caller is responsible for checking size > 0
-	public TupleEntry getLast() {
-		return data[size - 1];
-	}
+    // WARNING: caller is responsible for checking size > 0
+    public TupleEntry getLast() {
+        return data[size - 1];
+    }
 
-	public TupleEntry get(int i) {
-		return data[i];
-	}
+    public TupleEntry get(int i) {
+        return data[i];
+    }
 
-	public void clear() {
-		size = 0;
-	}
+    public void clear() {
+        size = 0;
+    }
 
-	public boolean isEmpty() {
-		return size == 0;
-	}
+    public boolean isEmpty() {
+        return size == 0;
+    }
 
-	public void sort(EntriesOrder order, int tupleCount) {
-		if (order == EntriesOrder.ASCENDING) {
-			Arrays.sort(data, 0, tupleCount);
-		} else {
-			Arrays.sort(data, 0, tupleCount, Collections.reverseOrder());
-		}
-	}
+    public void sort(EntriesOrder order, int tupleCount) {
+        if (order == EntriesOrder.ASCENDING) {
+            Arrays.sort(data, 0, tupleCount);
+        } else {
+            Arrays.sort(data, 0, tupleCount, Collections.reverseOrder());
+        }
+    }
 }

http://git-wip-us.apache.org/repos/asf/asterixdb/blob/d2ca97ab/hyracks-fullstack/hyracks/hyracks-storage-am-rtree/src/main/java/org/apache/hyracks/storage/am/rtree/linearize/HilbertDoubleComparatorFactory.java
----------------------------------------------------------------------
diff --git a/hyracks-fullstack/hyracks/hyracks-storage-am-rtree/src/main/java/org/apache/hyracks/storage/am/rtree/linearize/HilbertDoubleComparatorFactory.java b/hyracks-fullstack/hyracks/hyracks-storage-am-rtree/src/main/java/org/apache/hyracks/storage/am/rtree/linearize/HilbertDoubleComparatorFactory.java
index 8c73e12..4a1637a 100644
--- a/hyracks-fullstack/hyracks/hyracks-storage-am-rtree/src/main/java/org/apache/hyracks/storage/am/rtree/linearize/HilbertDoubleComparatorFactory.java
+++ b/hyracks-fullstack/hyracks/hyracks-storage-am-rtree/src/main/java/org/apache/hyracks/storage/am/rtree/linearize/HilbertDoubleComparatorFactory.java
@@ -31,7 +31,7 @@ public class HilbertDoubleComparatorFactory implements ILinearizeComparatorFacto
     }
 
     public HilbertDoubleComparatorFactory(int dim) {
-    	this.dim = dim;
+        this.dim = dim;
     }
 
     @Override

http://git-wip-us.apache.org/repos/asf/asterixdb/blob/d2ca97ab/hyracks-fullstack/hyracks/hyracks-storage-am-rtree/src/main/java/org/apache/hyracks/storage/am/rtree/linearize/ZCurveDoubleComparatorFactory.java
----------------------------------------------------------------------
diff --git a/hyracks-fullstack/hyracks/hyracks-storage-am-rtree/src/main/java/org/apache/hyracks/storage/am/rtree/linearize/ZCurveDoubleComparatorFactory.java b/hyracks-fullstack/hyracks/hyracks-storage-am-rtree/src/main/java/org/apache/hyracks/storage/am/rtree/linearize/ZCurveDoubleComparatorFactory.java
index a2650d3..f5c6046 100644
--- a/hyracks-fullstack/hyracks/hyracks-storage-am-rtree/src/main/java/org/apache/hyracks/storage/am/rtree/linearize/ZCurveDoubleComparatorFactory.java
+++ b/hyracks-fullstack/hyracks/hyracks-storage-am-rtree/src/main/java/org/apache/hyracks/storage/am/rtree/linearize/ZCurveDoubleComparatorFactory.java
@@ -31,7 +31,7 @@ public class ZCurveDoubleComparatorFactory implements ILinearizeComparatorFactor
     }
 
     public ZCurveDoubleComparatorFactory(int dim) {
-    	this.dim = dim;
+        this.dim = dim;
     }
 
     @Override

http://git-wip-us.apache.org/repos/asf/asterixdb/blob/d2ca97ab/hyracks-fullstack/hyracks/hyracks-storage-am-rtree/src/main/java/org/apache/hyracks/storage/am/rtree/linearize/ZCurveIntComparatorFactory.java
----------------------------------------------------------------------
diff --git a/hyracks-fullstack/hyracks/hyracks-storage-am-rtree/src/main/java/org/apache/hyracks/storage/am/rtree/linearize/ZCurveIntComparatorFactory.java b/hyracks-fullstack/hyracks/hyracks-storage-am-rtree/src/main/java/org/apache/hyracks/storage/am/rtree/linearize/ZCurveIntComparatorFactory.java
index 4827a74..6a25995 100644
--- a/hyracks-fullstack/hyracks/hyracks-storage-am-rtree/src/main/java/org/apache/hyracks/storage/am/rtree/linearize/ZCurveIntComparatorFactory.java
+++ b/hyracks-fullstack/hyracks/hyracks-storage-am-rtree/src/main/java/org/apache/hyracks/storage/am/rtree/linearize/ZCurveIntComparatorFactory.java
@@ -31,7 +31,7 @@ public class ZCurveIntComparatorFactory implements ILinearizeComparatorFactory {
     }
 
     public ZCurveIntComparatorFactory(int dim) {
-    	this.dim = dim;
+        this.dim = dim;
     }
 
     @Override

http://git-wip-us.apache.org/repos/asf/asterixdb/blob/d2ca97ab/hyracks-fullstack/hyracks/hyracks-test-support/src/main/java/org/apache/hyracks/storage/am/common/CheckTuple.java
----------------------------------------------------------------------
diff --git a/hyracks-fullstack/hyracks/hyracks-test-support/src/main/java/org/apache/hyracks/storage/am/common/CheckTuple.java b/hyracks-fullstack/hyracks/hyracks-test-support/src/main/java/org/apache/hyracks/storage/am/common/CheckTuple.java
index ffdae7d..8a6996b 100644
--- a/hyracks-fullstack/hyracks/hyracks-test-support/src/main/java/org/apache/hyracks/storage/am/common/CheckTuple.java
+++ b/hyracks-fullstack/hyracks/hyracks-test-support/src/main/java/org/apache/hyracks/storage/am/common/CheckTuple.java
@@ -37,52 +37,52 @@ public class CheckTuple<T extends Comparable<T>> implements Comparable<T> {
         fields[pos++] = e;
     }
 
-	@Override
-	public int compareTo(T o) {
-		CheckTuple<T> other = (CheckTuple<T>) o;
-		int cmpFieldCount = Math.min(other.getNumKeys(), numKeys);
-		for (int i = 0; i < cmpFieldCount; i++) {
-			int cmp = fields[i].compareTo(other.getField(i));
-			if (cmp != 0) {
-				return cmp;
-			}
-		}
-		if (other.getNumKeys() == numKeys) {
-		    return 0;
-		}
-		if (other.getNumKeys() < numKeys) {
-		    return (other.isHighKey) ? -1 : 1;
-		}
-		if (other.getNumKeys() > numKeys) {
+    @Override
+    public int compareTo(T o) {
+        CheckTuple<T> other = (CheckTuple<T>) o;
+        int cmpFieldCount = Math.min(other.getNumKeys(), numKeys);
+        for (int i = 0; i < cmpFieldCount; i++) {
+            int cmp = fields[i].compareTo(other.getField(i));
+            if (cmp != 0) {
+                return cmp;
+            }
+        }
+        if (other.getNumKeys() == numKeys) {
+            return 0;
+        }
+        if (other.getNumKeys() < numKeys) {
+            return (other.isHighKey) ? -1 : 1;
+        }
+        if (other.getNumKeys() > numKeys) {
             return (isHighKey) ? 1 : -1;
         }
-		return 0;
-	}
+        return 0;
+    }
 
-	@Override
-	public boolean equals(Object o) {
-		if (!(o instanceof Comparable<?>)) {
-			return false;
-		}
-		return compareTo((T) o) == 0;
-	}
+    @Override
+    public boolean equals(Object o) {
+        if (!(o instanceof Comparable<?>)) {
+            return false;
+        }
+        return compareTo((T) o) == 0;
+    }
 
-	@Override
-	public int hashCode() {
-		int hash = 0;
-		for (int i = 0; i < numKeys; i++) {
-			hash = 37 * hash + fields[i].hashCode();
-		}
-		return hash;
-	}
+    @Override
+    public int hashCode() {
+        int hash = 0;
+        for (int i = 0; i < numKeys; i++) {
+            hash = 37 * hash + fields[i].hashCode();
+        }
+        return hash;
+    }
 
-	public void setIsHighKey(boolean isHighKey) {
-	    this.isHighKey = isHighKey;
-	}
+    public void setIsHighKey(boolean isHighKey) {
+        this.isHighKey = isHighKey;
+    }
 
-	public T getField(int idx) {
-		return (T) fields[idx];
-	}
+    public T getField(int idx) {
+        return (T) fields[idx];
+    }
 
     public void setField(int idx, T e) {
         fields[idx] = e;

http://git-wip-us.apache.org/repos/asf/asterixdb/blob/d2ca97ab/hyracks-fullstack/hyracks/hyracks-test-support/src/main/java/org/apache/hyracks/storage/am/common/IndexMultiThreadTestDriver.java
----------------------------------------------------------------------
diff --git a/hyracks-fullstack/hyracks/hyracks-test-support/src/main/java/org/apache/hyracks/storage/am/common/IndexMultiThreadTestDriver.java b/hyracks-fullstack/hyracks/hyracks-test-support/src/main/java/org/apache/hyracks/storage/am/common/IndexMultiThreadTestDriver.java
index 314cae9..32dd15d 100644
--- a/hyracks-fullstack/hyracks/hyracks-test-support/src/main/java/org/apache/hyracks/storage/am/common/IndexMultiThreadTestDriver.java
+++ b/hyracks-fullstack/hyracks/hyracks-test-support/src/main/java/org/apache/hyracks/storage/am/common/IndexMultiThreadTestDriver.java
@@ -51,11 +51,11 @@ public class IndexMultiThreadTestDriver {
 
     public long[] run(int numThreads, int numRepeats, int numOps, int batchSize) throws InterruptedException,
             TreeIndexException, HyracksDataException {
-    	int numBatches = (batchSize < 1 ? numOps : numOps / batchSize);
-    	if (numBatches < numThreads) {
-    		numThreads = numBatches;
-    	}
-    	int threadNumBatches = numBatches / numThreads;
+        int numBatches = (batchSize < 1 ? numOps : numOps / batchSize);
+        if (numBatches < numThreads) {
+            numThreads = numBatches;
+        }
+        int threadNumBatches = numBatches / numThreads;
         long[] times = new long[numRepeats];
         for (int i = 0; i < numRepeats; i++) {
             DataGenThread dataGen = createDatagenThread(numThreads, numBatches, batchSize);

http://git-wip-us.apache.org/repos/asf/asterixdb/blob/d2ca97ab/hyracks-fullstack/hyracks/hyracks-test-support/src/main/java/org/apache/hyracks/storage/am/rtree/AbstractRTreeDeleteTest.java
----------------------------------------------------------------------
diff --git a/hyracks-fullstack/hyracks/hyracks-test-support/src/main/java/org/apache/hyracks/storage/am/rtree/AbstractRTreeDeleteTest.java b/hyracks-fullstack/hyracks/hyracks-test-support/src/main/java/org/apache/hyracks/storage/am/rtree/AbstractRTreeDeleteTest.java
index 44a102d..b53f0dc 100644
--- a/hyracks-fullstack/hyracks/hyracks-test-support/src/main/java/org/apache/hyracks/storage/am/rtree/AbstractRTreeDeleteTest.java
+++ b/hyracks-fullstack/hyracks/hyracks-test-support/src/main/java/org/apache/hyracks/storage/am/rtree/AbstractRTreeDeleteTest.java
@@ -36,7 +36,7 @@ public abstract class AbstractRTreeDeleteTest extends AbstractRTreeTestDriver {
     private static final int numDeleteRounds = AccessMethodTestsConfig.RTREE_NUM_DELETE_ROUNDS;
 
     public AbstractRTreeDeleteTest(boolean testRstarPolicy) {
-    	super(testRstarPolicy);
+        super(testRstarPolicy);
         this.rTreeTestUtils = new RTreeTestUtils();
     }
 

http://git-wip-us.apache.org/repos/asf/asterixdb/blob/d2ca97ab/hyracks-fullstack/hyracks/hyracks-test-support/src/main/java/org/apache/hyracks/storage/am/rtree/AbstractRTreeInsertTest.java
----------------------------------------------------------------------
diff --git a/hyracks-fullstack/hyracks/hyracks-test-support/src/main/java/org/apache/hyracks/storage/am/rtree/AbstractRTreeInsertTest.java b/hyracks-fullstack/hyracks/hyracks-test-support/src/main/java/org/apache/hyracks/storage/am/rtree/AbstractRTreeInsertTest.java
index 5ad6f3b..c45b0bd 100644
--- a/hyracks-fullstack/hyracks/hyracks-test-support/src/main/java/org/apache/hyracks/storage/am/rtree/AbstractRTreeInsertTest.java
+++ b/hyracks-fullstack/hyracks/hyracks-test-support/src/main/java/org/apache/hyracks/storage/am/rtree/AbstractRTreeInsertTest.java
@@ -39,7 +39,7 @@ public abstract class AbstractRTreeInsertTest extends AbstractRTreeTestDriver {
     private final RTreeTestUtils rTreeTestUtils;
 
     public AbstractRTreeInsertTest(boolean testRstarPolicy) {
-    	super(testRstarPolicy);
+        super(testRstarPolicy);
         this.rTreeTestUtils = new RTreeTestUtils();
     }
 

http://git-wip-us.apache.org/repos/asf/asterixdb/blob/d2ca97ab/hyracks-fullstack/hyracks/hyracks-test-support/src/main/java/org/apache/hyracks/test/support/TestStorageManagerInterface.java
----------------------------------------------------------------------
diff --git a/hyracks-fullstack/hyracks/hyracks-test-support/src/main/java/org/apache/hyracks/test/support/TestStorageManagerInterface.java b/hyracks-fullstack/hyracks/hyracks-test-support/src/main/java/org/apache/hyracks/test/support/TestStorageManagerInterface.java
index e4f77fd..885ff9b 100644
--- a/hyracks-fullstack/hyracks/hyracks-test-support/src/main/java/org/apache/hyracks/test/support/TestStorageManagerInterface.java
+++ b/hyracks-fullstack/hyracks/hyracks-test-support/src/main/java/org/apache/hyracks/test/support/TestStorageManagerInterface.java
@@ -19,7 +19,6 @@
 package org.apache.hyracks.test.support;
 
 import org.apache.hyracks.api.context.IHyracksTaskContext;
-import org.apache.hyracks.api.exceptions.HyracksException;
 import org.apache.hyracks.storage.common.IStorageManagerInterface;
 import org.apache.hyracks.storage.common.buffercache.IBufferCache;
 import org.apache.hyracks.storage.common.file.IFileMapProvider;
@@ -44,8 +43,8 @@ public class TestStorageManagerInterface implements IStorageManagerInterface {
         return TestStorageManagerComponentHolder.getLocalResourceRepository(ctx);
     }
 
-	@Override
-	public ResourceIdFactory getResourceIdFactory(IHyracksTaskContext ctx) {
-		return TestStorageManagerComponentHolder.getResourceIdFactory(ctx);
-	}
+    @Override
+    public ResourceIdFactory getResourceIdFactory(IHyracksTaskContext ctx) {
+        return TestStorageManagerComponentHolder.getResourceIdFactory(ctx);
+    }
 }

http://git-wip-us.apache.org/repos/asf/asterixdb/blob/d2ca97ab/hyracks-fullstack/hyracks/hyracks-tests/hyracks-storage-am-rtree-test/src/test/java/org/apache/hyracks/storage/am/rtree/RTreeDeleteTest.java
----------------------------------------------------------------------
diff --git a/hyracks-fullstack/hyracks/hyracks-tests/hyracks-storage-am-rtree-test/src/test/java/org/apache/hyracks/storage/am/rtree/RTreeDeleteTest.java b/hyracks-fullstack/hyracks/hyracks-tests/hyracks-storage-am-rtree-test/src/test/java/org/apache/hyracks/storage/am/rtree/RTreeDeleteTest.java
index 2541bd8..7f782aa 100644
--- a/hyracks-fullstack/hyracks/hyracks-tests/hyracks-storage-am-rtree-test/src/test/java/org/apache/hyracks/storage/am/rtree/RTreeDeleteTest.java
+++ b/hyracks-fullstack/hyracks/hyracks-tests/hyracks-storage-am-rtree-test/src/test/java/org/apache/hyracks/storage/am/rtree/RTreeDeleteTest.java
@@ -35,11 +35,11 @@ import org.apache.hyracks.storage.am.rtree.utils.RTreeTestHarness;
 @SuppressWarnings("rawtypes")
 public class RTreeDeleteTest extends AbstractRTreeDeleteTest {
 
-	private final RTreeTestHarness harness = new RTreeTestHarness();
+    private final RTreeTestHarness harness = new RTreeTestHarness();
 
-	public RTreeDeleteTest() {
-		super(AccessMethodTestsConfig.RTREE_TEST_RSTAR_POLICY);
-	}
+    public RTreeDeleteTest() {
+        super(AccessMethodTestsConfig.RTREE_TEST_RSTAR_POLICY);
+    }
 
     @Before
     public void setUp() throws HyracksDataException {

http://git-wip-us.apache.org/repos/asf/asterixdb/blob/d2ca97ab/hyracks-fullstack/hyracks/hyracks-tests/hyracks-storage-am-rtree-test/src/test/java/org/apache/hyracks/storage/am/rtree/RTreeInsertTest.java
----------------------------------------------------------------------
diff --git a/hyracks-fullstack/hyracks/hyracks-tests/hyracks-storage-am-rtree-test/src/test/java/org/apache/hyracks/storage/am/rtree/RTreeInsertTest.java b/hyracks-fullstack/hyracks/hyracks-tests/hyracks-storage-am-rtree-test/src/test/java/org/apache/hyracks/storage/am/rtree/RTreeInsertTest.java
index 621055b..7bd22fc 100644
--- a/hyracks-fullstack/hyracks/hyracks-tests/hyracks-storage-am-rtree-test/src/test/java/org/apache/hyracks/storage/am/rtree/RTreeInsertTest.java
+++ b/hyracks-fullstack/hyracks/hyracks-tests/hyracks-storage-am-rtree-test/src/test/java/org/apache/hyracks/storage/am/rtree/RTreeInsertTest.java
@@ -35,11 +35,11 @@ import org.apache.hyracks.storage.am.rtree.utils.RTreeTestHarness;
 @SuppressWarnings("rawtypes")
 public class RTreeInsertTest extends AbstractRTreeInsertTest {
 
-	private final RTreeTestHarness harness = new RTreeTestHarness();
+    private final RTreeTestHarness harness = new RTreeTestHarness();
 
-	public RTreeInsertTest() {
-		super(AccessMethodTestsConfig.RTREE_TEST_RSTAR_POLICY);
-	}
+    public RTreeInsertTest() {
+        super(AccessMethodTestsConfig.RTREE_TEST_RSTAR_POLICY);
+    }
 
     @Before
     public void setUp() throws HyracksDataException {


Mime
View raw message