Minor fixes in caching and caching test.

This commit is contained in:
Alexander Nozik 2017-10-15 14:04:36 +03:00
parent 679410055c
commit 475d5ff6a1
3 changed files with 3 additions and 3 deletions

View File

@ -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;
} }

View File

@ -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;

View File

@ -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();
} }