blob: f8c435ccd6275516a8b98188164cb7ddb9e58488 [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.samza.operators.windows;
/**
* Specifies how a {@link Window} should process its previously emitted {@link WindowPane}s.
*
* <p> There are two types of {@link AccumulationMode}s:
* <ul>
* <li> ACCUMULATING: Specifies that window panes should include all messages collected for the window (key) so far, even if they were
* included in previously emitted window panes.
* <li> DISCARDING: Specifies that window panes should only include messages collected for this window (key) since the last emitted
* window pane.
* </ul>
*/
public enum AccumulationMode {
ACCUMULATING, DISCARDING
}