Return-Path: X-Original-To: apmail-flink-commits-archive@minotaur.apache.org Delivered-To: apmail-flink-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5C9FA186B5 for ; Tue, 24 Nov 2015 12:49:24 +0000 (UTC) Received: (qmail 42658 invoked by uid 500); 24 Nov 2015 12:49:24 -0000 Delivered-To: apmail-flink-commits-archive@flink.apache.org Received: (qmail 42617 invoked by uid 500); 24 Nov 2015 12:49:24 -0000 Mailing-List: contact commits-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flink.apache.org Delivered-To: mailing list commits@flink.apache.org Received: (qmail 42591 invoked by uid 99); 24 Nov 2015 12:49:24 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Nov 2015 12:49:24 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id CC7D4DFD40; Tue, 24 Nov 2015 12:49:23 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: aljoscha@apache.org To: commits@flink.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: flink git commit: [FLINK-3070] Add AsynchronousStateHandle Date: Tue, 24 Nov 2015 12:49:23 +0000 (UTC) Repository: flink Updated Branches: refs/heads/master f02369af7 -> f887ba81e [FLINK-3070] Add AsynchronousStateHandle This extends StateHandle with a materialize() method. The asynchronous handle represents state and can materialize it when required. Project: http://git-wip-us.apache.org/repos/asf/flink/repo Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/f887ba81 Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/f887ba81 Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/f887ba81 Branch: refs/heads/master Commit: f887ba81e986058308d1f56f7a6efed00166723c Parents: f02369a Author: Aljoscha Krettek Authored: Tue Nov 24 13:45:23 2015 +0100 Committer: Aljoscha Krettek Committed: Tue Nov 24 13:47:58 2015 +0100 ---------------------------------------------------------------------- .../runtime/state/AsynchronousStateHandle.java | 32 ++++++++++++++++++++ 1 file changed, 32 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flink/blob/f887ba81/flink-runtime/src/main/java/org/apache/flink/runtime/state/AsynchronousStateHandle.java ---------------------------------------------------------------------- diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/state/AsynchronousStateHandle.java b/flink-runtime/src/main/java/org/apache/flink/runtime/state/AsynchronousStateHandle.java new file mode 100644 index 0000000..4e02caa --- /dev/null +++ b/flink-runtime/src/main/java/org/apache/flink/runtime/state/AsynchronousStateHandle.java @@ -0,0 +1,32 @@ +/* + * 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.flink.runtime.state; + +/** + * {@link StateHandle} that can asynchronously materialize the state that it represents. Instead + * of representing a materialized handle to state this would normally hold the (immutable) state + * internally and can materialize it if requested. + */ +public interface AsynchronousStateHandle extends StateHandle { + + /** + * Materializes the state held by this {@code AsynchronousStateHandle}. + */ + void materialize() throws Exception; +}