use of io.airlift.slice.InputStreamSliceInput in project presto by prestodb.
the class BinaryFileSpiller method readPages.
private Iterator<Page> readPages(Path spillPath) {
try {
InputStream input = new BufferedInputStream(new FileInputStream(spillPath.toFile()));
closer.register(input);
return PagesSerdeUtil.readPages(serde, new InputStreamSliceInput(input));
} catch (IOException e) {
throw new PrestoException(GENERIC_INTERNAL_ERROR, "Failed to read spilled pages", e);
}
}
Aggregations