added NullTupleReferenceFactory for representing infinity bounds in a range predicate
git-svn-id: https://hyracks.googlecode.com/svn/trunk@120 123451ca-8445-de46-9d55-352943316053
diff --git a/hyracks/hyracks-storage-am-btree/src/main/java/edu/uci/ics/hyracks/storage/am/btree/dataflow/NullTupleReferenceFactory.java b/hyracks/hyracks-storage-am-btree/src/main/java/edu/uci/ics/hyracks/storage/am/btree/dataflow/NullTupleReferenceFactory.java
new file mode 100644
index 0000000..f2163a1
--- /dev/null
+++ b/hyracks/hyracks-storage-am-btree/src/main/java/edu/uci/ics/hyracks/storage/am/btree/dataflow/NullTupleReferenceFactory.java
@@ -0,0 +1,15 @@
+package edu.uci.ics.hyracks.storage.am.btree.dataflow;
+
+import edu.uci.ics.hyracks.api.context.IHyracksContext;
+import edu.uci.ics.hyracks.dataflow.common.data.accessors.ITupleReference;
+
+public class NullTupleReferenceFactory implements ITupleReferenceFactory {
+
+ private static final long serialVersionUID = 1L;
+
+ @Override
+ public ITupleReference createTuple(IHyracksContext ctx) {
+ return null;
+ }
+
+}