Search in sources :

Example 1 with ManagedTimeUnifiedStateSpillableStateStore

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;
}
Also used : ManagedTimeUnifiedStateSpillableStateStore(org.apache.apex.malhar.lib.state.spillable.managed.ManagedTimeUnifiedStateSpillableStateStore) UnboundedTimeBucketAssigner(org.apache.apex.malhar.lib.state.managed.UnboundedTimeBucketAssigner)

Aggregations

UnboundedTimeBucketAssigner (org.apache.apex.malhar.lib.state.managed.UnboundedTimeBucketAssigner)1 ManagedTimeUnifiedStateSpillableStateStore (org.apache.apex.malhar.lib.state.spillable.managed.ManagedTimeUnifiedStateSpillableStateStore)1