Minor fixes in caching and caching test.
This commit is contained in:
parent
679410055c
commit
475d5ff6a1
@ -36,7 +36,7 @@ public class NumassDataUtils {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Meta meta() {
|
public Meta meta() {
|
||||||
MetaBuilder metaBuilder = new MetaBuilder("meta");
|
MetaBuilder metaBuilder = new MetaBuilder();
|
||||||
sets.forEach(set -> metaBuilder.putNode(set.getName(), set.meta()));
|
sets.forEach(set -> metaBuilder.putNode(set.getName(), set.meta()));
|
||||||
return metaBuilder;
|
return metaBuilder;
|
||||||
}
|
}
|
||||||
|
@ -95,7 +95,7 @@ public class NumassIO extends BasicIOManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
String dirName = String.join(File.separator, tokens);
|
String dirName = String.join(File.separator, tokens);
|
||||||
String fileName = name.removeNameSpace().toString();
|
String fileName = name.removeNameSpace().toString() + ".out";
|
||||||
OutputStream out = buildOut(getWorkDirectory(), dirName, fileName);
|
OutputStream out = buildOut(getWorkDirectory(), dirName, fileName);
|
||||||
registry.add(out);
|
registry.add(out);
|
||||||
return out;
|
return out;
|
||||||
|
@ -24,7 +24,7 @@ public class WorkspaceTest {
|
|||||||
String storagepath = "D:\\Work\\Numass\\data\\";
|
String storagepath = "D:\\Work\\Numass\\data\\";
|
||||||
Workspace workspace = BasicWorkspace.builder()
|
Workspace workspace = BasicWorkspace.builder()
|
||||||
.setContext(Numass.buildContext())
|
.setContext(Numass.buildContext())
|
||||||
.loadData("", new StorageDataFactory(), new MetaBuilder("storage").putValue("path", storagepath))
|
.data("", new StorageDataFactory(), new MetaBuilder("storage").putValue("path", storagepath))
|
||||||
|
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user