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.HdfFile;
|
||||||
import io.jhdf.api.Dataset;
|
import io.jhdf.api.Dataset;
|
||||||
|
import io.nosqlbench.api.content.NBIO;
|
||||||
|
|
||||||
import java.nio.file.Paths;
|
import java.nio.file.Paths;
|
||||||
|
|
||||||
@ -27,8 +28,7 @@ public abstract class AbstractHdfFileToVectorType {
|
|||||||
protected final int[] dims;
|
protected final int[] dims;
|
||||||
|
|
||||||
public AbstractHdfFileToVectorType(String filename, String datasetName) {
|
public AbstractHdfFileToVectorType(String filename, String datasetName) {
|
||||||
//hdfFile = new HdfFile(NBIO.all().search(filename).first().get().asPath());
|
hdfFile = new HdfFile(NBIO.all().search(filename).first().get().asPath());
|
||||||
hdfFile = new HdfFile(Paths.get(filename));
|
|
||||||
//TODO: implement a function to get the dataset by name only without needing the full path
|
//TODO: implement a function to get the dataset by name only without needing the full path
|
||||||
dataset = hdfFile.getDatasetByPath(datasetName);
|
dataset = hdfFile.getDatasetByPath(datasetName);
|
||||||
dims = dataset.getDimensions();
|
dims = dataset.getDimensions();
|
||||||
|
Loading…
Reference in New Issue
Block a user