@Override public void close() throws HyracksDataException { bufferCache.close(); }
public void close() throws HyracksDataException { bufferCache.close(); }
public void close() throws HyracksDataException { bufferCache.close(); }
@Override public void deinit() throws Exception { bufferCache.close(); }
@Override public final void deallocate() throws HyracksDataException { try { state = ComponentState.INACTIVE; doDeallocate(); } finally { getIndex().getBufferCache().close(); } }
public void tearDown() throws HyracksDataException { diskBufferCache.close(); IODeviceHandle dev = ioManager.getIODevices().get(ioDeviceId); File dir = new File(dev.getMount(), onDiskDir); FilenameFilter filter = new FilenameFilter() { @Override public boolean accept(File dir, String name) { return !name.startsWith("."); } }; String[] files = dir.list(filter); if (files != null) { for (String fileName : files) { File file = new File(dir.getPath() + File.separator + fileName); file.delete(); } } dir.delete(); }
@Override public final void allocate() throws HyracksDataException { boolean allocated = false; ((IVirtualBufferCache) getIndex().getBufferCache()).open(); try { doAllocate(); allocated = true; } finally { if (!allocated) { getIndex().getBufferCache().close(); } } }