You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by ch...@apache.org on 2018/06/11 12:36:21 UTC
flink git commit: [hotfix][javadocs] Update OptionsFactory javadocs
Repository: flink
Updated Branches:
refs/heads/release-1.4 021266719 -> eb932aefe
[hotfix][javadocs] Update OptionsFactory javadocs
The javadocs were outdated since FLINK-3718 (v1.1.0).
Project: http://git-wip-us.apache.org/repos/asf/flink/repo
Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/eb932aef
Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/eb932aef
Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/eb932aef
Branch: refs/heads/release-1.4
Commit: eb932aefe32274c074ff17f116324d46e2db598d
Parents: 0212667
Author: sihuazhou <su...@163.com>
Authored: Sun Jun 10 12:27:46 2018 +0800
Committer: zentol <ch...@apache.org>
Committed: Mon Jun 11 14:34:34 2018 +0200
----------------------------------------------------------------------
.../contrib/streaming/state/OptionsFactory.java | 20 +++++++++-----------
1 file changed, 9 insertions(+), 11 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flink/blob/eb932aef/flink-contrib/flink-statebackend-rocksdb/src/main/java/org/apache/flink/contrib/streaming/state/OptionsFactory.java
----------------------------------------------------------------------
diff --git a/flink-contrib/flink-statebackend-rocksdb/src/main/java/org/apache/flink/contrib/streaming/state/OptionsFactory.java b/flink-contrib/flink-statebackend-rocksdb/src/main/java/org/apache/flink/contrib/streaming/state/OptionsFactory.java
index 34f7f62..84db465 100644
--- a/flink-contrib/flink-statebackend-rocksdb/src/main/java/org/apache/flink/contrib/streaming/state/OptionsFactory.java
+++ b/flink-contrib/flink-statebackend-rocksdb/src/main/java/org/apache/flink/contrib/streaming/state/OptionsFactory.java
@@ -22,25 +22,23 @@ import org.rocksdb.ColumnFamilyOptions;
import org.rocksdb.DBOptions;
/**
- * A factory for {@link DBOptions} to be passed to the {@link RocksDBStateBackend}.
+ * A factory for {@link DBOptions} and {@link ColumnFamilyOptions} to be passed to the {@link RocksDBStateBackend}.
* Options have to be created lazily by this factory, because the {@code Options}
* class is not serializable and holds pointers to native code.
*
* <p>A typical pattern to use this OptionsFactory is as follows:
*
- * <h3>Java 8:</h3>
* <pre>{@code
- * rocksDbBackend.setOptions( (currentOptions) -> currentOptions.setMaxOpenFiles(1024) );
- * }</pre>
+ * rocksDbBackend.setOptions(new OptionsFactory(){
*
- * <h3>Java 7:</h3>
- * <pre>{@code
- * rocksDbBackend.setOptions(new OptionsFactory() {
+ * public DBOptions createDBOptions(DBOptions currentOptions) {
+ * return currentOptions.setMaxOpenFiles(1024);
+ * }
*
- * public Options setOptions(Options currentOptions) {
- * return currentOptions.setMaxOpenFiles(1024);
- * }
- * })
+ * public ColumnFamilyOptions createColumnOptions(ColumnFamilyOptions currentOptions) {
+ * return currentOptions.setCompactionStyle(CompactionStyle.LEVEL);
+ * }
+ * });
* }</pre>
*/
public interface OptionsFactory extends java.io.Serializable {