com.twitter.heron.api.bolt.BaseStatefulWindowedBolt Maven / Gradle / Ivy
// Copyright 2017 Twitter. All rights reserved.
//
// Licensed 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 com.twitter.heron.api.bolt;
import java.io.Serializable;
import java.time.Duration;
import com.twitter.heron.api.windowing.TimestampExtractor;
public abstract class BaseStatefulWindowedBolt
extends BaseWindowedBolt
implements IStatefulWindowedBolt {
private static final long serialVersionUID = -5082068737902535908L;
/**
* {@inheritDoc}
*/
@Override
public BaseStatefulWindowedBolt withWindow(BaseWindowedBolt.Count windowLength,
BaseWindowedBolt.Count slidingInterval) {
super.withWindow(windowLength, slidingInterval);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public BaseStatefulWindowedBolt withWindow(BaseWindowedBolt.Count windowLength, Duration
slidingInterval) {
super.withWindow(windowLength, slidingInterval);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public BaseStatefulWindowedBolt withWindow(Duration windowLength,
BaseWindowedBolt.Count slidingInterval) {
super.withWindow(windowLength, slidingInterval);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public BaseStatefulWindowedBolt withWindow(Duration windowLength, Duration
slidingInterval) {
super.withWindow(windowLength, slidingInterval);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public BaseStatefulWindowedBolt withWindow(BaseWindowedBolt.Count windowLength) {
super.withWindow(windowLength);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public BaseStatefulWindowedBolt withWindow(Duration windowLength) {
super.withWindow(windowLength);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public BaseStatefulWindowedBolt withTumblingWindow(BaseWindowedBolt.Count count) {
super.withTumblingWindow(count);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public BaseStatefulWindowedBolt withTumblingWindow(Duration duration) {
super.withTumblingWindow(duration);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public BaseStatefulWindowedBolt withTimestampField(String fieldName) {
super.withTimestampField(fieldName);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public BaseStatefulWindowedBolt withTimestampExtractor(
TimestampExtractor timestampExtractor) {
super.withTimestampExtractor(timestampExtractor);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public BaseStatefulWindowedBolt withLateTupleStream(String streamName) {
super.withLateTupleStream(streamName);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public BaseStatefulWindowedBolt withLag(Duration duration) {
super.withLag(duration);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public BaseStatefulWindowedBolt withWatermarkInterval(Duration interval) {
super.withWatermarkInterval(interval);
return this;
}
@Override
public void preSave(String checkpointId) {
//NOOP
}
}