flink-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aljos...@apache.org
Subject flink git commit: [FLINK-3070] Add AsynchronousStateHandle
Date Tue, 24 Nov 2015 12:49:23 GMT
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 <aljoscha.krettek@gmail.com>
Authored: Tue Nov 24 13:45:23 2015 +0100
Committer: Aljoscha Krettek <aljoscha.krettek@gmail.com>
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<T> extends StateHandle<T> {
+
+	/**
+	 * Materializes the state held by this {@code AsynchronousStateHandle}.
+	 */
+	void materialize() throws Exception;
+}


Mime
View raw message