Search in sources :

Example 1 with SpillableSetMultimapImpl

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

Aggregations

SpillableSetMultimapImpl (org.apache.apex.malhar.lib.state.spillable.SpillableSetMultimapImpl)1 ManagedStateSpillableStateStore (org.apache.apex.malhar.lib.state.spillable.managed.ManagedStateSpillableStateStore)1 Window (org.apache.apex.malhar.lib.window.Window)1