mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
replaced nio call with NBIO
This commit is contained in:
parent
d0e7c3dd07
commit
e1476cd286
@ -18,6 +18,7 @@ package io.nosqlbench.virtdata.library.hdf5.from_long;
|
||||
|
||||
import io.jhdf.HdfFile;
|
||||
import io.jhdf.api.Dataset;
|
||||
import io.nosqlbench.api.content.NBIO;
|
||||
|
||||
import java.nio.file.Paths;
|
||||
|
||||
@ -27,8 +28,7 @@ public abstract class AbstractHdfFileToVectorType {
|
||||
protected final int[] dims;
|
||||
|
||||
public AbstractHdfFileToVectorType(String filename, String datasetName) {
|
||||
//hdfFile = new HdfFile(NBIO.all().search(filename).first().get().asPath());
|
||||
hdfFile = new HdfFile(Paths.get(filename));
|
||||
hdfFile = new HdfFile(NBIO.all().search(filename).first().get().asPath());
|
||||
//TODO: implement a function to get the dataset by name only without needing the full path
|
||||
dataset = hdfFile.getDatasetByPath(datasetName);
|
||||
dims = dataset.getDimensions();
|
||||
|
Loading…
Reference in New Issue
Block a user