mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2024-12-24 16:00:09 -06:00
made type of serializer configurable in ctor
This commit is contained in:
parent
20da396c17
commit
b49ecc6087
@ -51,11 +51,11 @@ public class HdfPredicatesToCql implements LongFunction<String>, PredicateAdapte
|
||||
* @param filename The HDF5 file to read the predicate dataset from
|
||||
* @param datasetname The name of the dataset internal to the HDF5 file
|
||||
*/
|
||||
public HdfPredicatesToCql(String filename, String datasetname) {
|
||||
public HdfPredicatesToCql(String filename, String datasetname, String serDesType) {
|
||||
hdfFile = new HdfFile(NBIO.all().search(filename).one().asPath());
|
||||
dataset = hdfFile.getDatasetByPath(datasetname);
|
||||
recordCount = dataset.getDimensions()[0];
|
||||
serDes = ServiceSelector.of("json-serdes", ServiceLoader.load(PredicateSerDes.class)).getOne();
|
||||
serDes = ServiceSelector.of(serDesType, ServiceLoader.load(PredicateSerDes.class)).getOne();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user