use of org.apache.apex.malhar.lib.state.spillable.managed.ManagedTimeUnifiedStateSpillableStateStore in project apex-malhar by apache.
the class AbstractWindowedOperatorBenchmarkApp method createStore.
protected SpillableStateStore createStore(Configuration conf) {
String basePath = getStoreBasePath(conf);
ManagedTimeUnifiedStateSpillableStateStore store = new ManagedTimeUnifiedStateSpillableStateStore();
store.setTimeBucketAssigner(new UnboundedTimeBucketAssigner());
store.getTimeBucketAssigner().setBucketSpan(Duration.millis(10000));
((TFileImpl.DTFileImpl) store.getFileAccess()).setBasePath(basePath);
return store;
}
Aggregations