Fix for Hyracks interface change due to Virtual Pages

Change-Id: Iedf7b1f27e3539563729e76e531bf10ecd5f6143
Reviewed-on: http://fulliautomatix.ics.uci.edu:8443/110
Reviewed-by: Sattam Alsubaiee <salsubaiee@gmail.com>
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
diff --git a/asterix-common/src/main/java/edu/uci/ics/asterix/common/context/AsterixFileMapManager.java b/asterix-common/src/main/java/edu/uci/ics/asterix/common/context/AsterixFileMapManager.java
index b87c4fb..5b8bc21 100644
--- a/asterix-common/src/main/java/edu/uci/ics/asterix/common/context/AsterixFileMapManager.java
+++ b/asterix-common/src/main/java/edu/uci/ics/asterix/common/context/AsterixFileMapManager.java
@@ -72,4 +72,16 @@
         id2nameMap.put(fileId, fileName);
         name2IdMap.put(fileName, fileId);
     }
+
+    @Override
+    public int registerMemoryFile() {
+        Integer fileId = idCounter++;
+        id2nameMap.put(fileId, null);
+        return fileId;
+    }
+
+    @Override
+    public void unregisterMemFile(int fileId) throws HyracksDataException {
+        id2nameMap.remove(fileId);
+    }
 }