All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.flink.table.runtime.join.stream.state.EmptyJoinStateHandler Maven / Gradle / Ivy

There is a newer version: 1.5.1
Show newest version
/*
 * 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 copysecond 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.flink.table.runtime.join.stream.state;

import org.apache.flink.api.java.tuple.Tuple2;
import org.apache.flink.api.java.tuple.Tuple3;
import org.apache.flink.table.dataformat.BaseRow;

import java.util.Collection;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * The empty implementation for {@link JoinStateHandler}.
 */
public class EmptyJoinStateHandler implements JoinStateHandler {

	@Override
	public void extractCurrentJoinKey(BaseRow row) throws Exception {

	}

	@Override
	public BaseRow getCurrentJoinKey() {
		return null;
	}

	@Override
	public void extractCurrentPrimaryKey(BaseRow row) {

	}

	@Override
	public BaseRow getCurrentPrimaryKey() {
		return null;
	}

	@Override
	public long add(BaseRow row, long expireTime) {
		return 0;
	}

	@Override
	public long retract(BaseRow row) {
		return 0;
	}

	@Override
	public Iterator> getRecords(BaseRow key) {
		return Collections.EMPTY_LIST.iterator();
	}

	@Override
	public Iterator> getRecordsFromCache(BaseRow key) {
		return getRecords(key);
	}

	@Override
	public boolean contains(BaseRow key, BaseRow row) {
		return false;
	}

	@Override
	public void update(BaseRow key, BaseRow row, long count, long expireTime) {

	}

	@Override
	public void remove(BaseRow joinKey) {
	}

	@Override
	public void batchGet(Collection keys) {
	}

	@Override
	public long[] batchUpdate(BaseRow key, List> rows, long expireTime) {
		return null;
	}

	@Override
	public void setCurrentJoinKey(BaseRow row) {
	}

	@Override
	public void putAll(Map putMap) {
	}

	@Override
	public void removeAll(Set keys) {
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy