use of org.apache.apex.malhar.lib.state.spillable.SpillableSetMultimapImpl in project apex-malhar by apache.
the class KeyedWindowedOperatorBenchmarkApp method createUpdatedDataStorage.
protected SpillableSetMultimapImpl<Window, String> createUpdatedDataStorage(Configuration conf, SpillableComplexComponentImpl sccImpl) {
String basePath = getStoreBasePath(conf);
ManagedStateSpillableStateStore store = new ManagedStateSpillableStateStore();
((TFileImpl.DTFileImpl) store.getFileAccess()).setBasePath(basePath);
SpillableSetMultimapImpl<Window, String> dataStorage = new SpillableSetMultimapImpl<Window, String>(store, new byte[] { (byte) 1 }, 0, new GenericSerde<Window>(), new GenericSerde<String>());
return dataStorage;
}
Aggregations