commit | 8618b8175196d42e30589a46809af69cbe728a32 | [log] [tgz] |
---|---|---|
author | Ian <imaxon@uci.edu> | Tue Jul 22 17:34:10 2014 -0700 |
committer | Ian Maxon <imaxon@uci.edu> | Tue Jul 22 20:04:33 2014 -0800 |
tree | b2808c76110413489902fd1f87eba053b68b337c | |
parent | 661b9c72431442e7a309da6048cb2f2367b24d5f [diff] |
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); + } }