Search in sources :

Example 1 with InMemoryWindowedKeyedStorage

use of org.apache.apex.malhar.lib.window.impl.InMemoryWindowedKeyedStorage in project apex-malhar by apache.

the class KeyedWindowedOperatorBenchmarkApp method createRetractionStorage.

@Override
protected WindowedStorage createRetractionStorage(SpillableComplexComponentImpl sccImpl) {
    if (useInMemoryStorage) {
        return new InMemoryWindowedKeyedStorage();
    }
    SpillableWindowedKeyedStorage retractionStorage = new SpillableWindowedKeyedStorage();
    retractionStorage.setSpillableComplexComponent(sccImpl);
    return retractionStorage;
}
Also used : InMemoryWindowedKeyedStorage(org.apache.apex.malhar.lib.window.impl.InMemoryWindowedKeyedStorage) SpillableWindowedKeyedStorage(org.apache.apex.malhar.lib.window.impl.SpillableWindowedKeyedStorage)

Example 2 with InMemoryWindowedKeyedStorage

use of org.apache.apex.malhar.lib.window.impl.InMemoryWindowedKeyedStorage in project apex-malhar by apache.

the class KeyedWindowedOperatorBenchmarkApp method createDataStorage.

@Override
protected WindowedStorage createDataStorage(SpillableComplexComponentImpl sccImpl) {
    if (useInMemoryStorage) {
        return new InMemoryWindowedKeyedStorage();
    }
    SpillableWindowedKeyedStorage dataStorage = new SpillableWindowedKeyedStorage();
    dataStorage.setSpillableComplexComponent(sccImpl);
    return dataStorage;
}
Also used : InMemoryWindowedKeyedStorage(org.apache.apex.malhar.lib.window.impl.InMemoryWindowedKeyedStorage) SpillableWindowedKeyedStorage(org.apache.apex.malhar.lib.window.impl.SpillableWindowedKeyedStorage)

Aggregations

InMemoryWindowedKeyedStorage (org.apache.apex.malhar.lib.window.impl.InMemoryWindowedKeyedStorage)2 SpillableWindowedKeyedStorage (org.apache.apex.malhar.lib.window.impl.SpillableWindowedKeyedStorage)2