Java Code Examples for org.apache.flink.util.TernaryBoolean#fromBoolean()
The following examples show how to use
org.apache.flink.util.TernaryBoolean#fromBoolean() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RocksDBStateBackend.java From Flink-CEPplus with Apache License 2.0 | 4 votes |
/** * @deprecated Use {@link #RocksDBStateBackend(StateBackend, TernaryBoolean)} instead. */ @Deprecated public RocksDBStateBackend(AbstractStateBackend checkpointStreamBackend, boolean enableIncrementalCheckpointing) { this(checkpointStreamBackend, TernaryBoolean.fromBoolean(enableIncrementalCheckpointing)); }
Example 2
Source File: RocksDBStateBackend.java From flink with Apache License 2.0 | 4 votes |
/** * @deprecated Use {@link #RocksDBStateBackend(StateBackend, TernaryBoolean)} instead. */ @Deprecated public RocksDBStateBackend(AbstractStateBackend checkpointStreamBackend, boolean enableIncrementalCheckpointing) { this(checkpointStreamBackend, TernaryBoolean.fromBoolean(enableIncrementalCheckpointing)); }
Example 3
Source File: RocksDBStateBackend.java From flink with Apache License 2.0 | 4 votes |
/** * @deprecated Use {@link #RocksDBStateBackend(StateBackend, TernaryBoolean)} instead. */ @Deprecated public RocksDBStateBackend(AbstractStateBackend checkpointStreamBackend, boolean enableIncrementalCheckpointing) { this(checkpointStreamBackend, TernaryBoolean.fromBoolean(enableIncrementalCheckpointing)); }
Example 4
Source File: FsStateBackend.java From Flink-CEPplus with Apache License 2.0 | 3 votes |
/** * Creates a new state backend that stores its checkpoint data in the file system and location * defined by the given URI. * * <p>A file system for the file system scheme in the URI (e.g., 'file://', 'hdfs://', or 'S3://') * must be accessible via {@link FileSystem#get(URI)}. * * <p>For a state backend targeting HDFS, this means that the URI must either specify the authority * (host and port), or that the Hadoop configuration that describes that information must be in the * classpath. * * @param checkpointDataUri The URI describing the filesystem (scheme and optionally authority), * and the path to the checkpoint data directory. * @param fileStateSizeThreshold State up to this size will be stored as part of the metadata, * rather than in files (-1 for default value). * @param asynchronousSnapshots Switch to enable asynchronous snapshots. */ public FsStateBackend( URI checkpointDataUri, int fileStateSizeThreshold, boolean asynchronousSnapshots) { this(checkpointDataUri, null, fileStateSizeThreshold, TernaryBoolean.fromBoolean(asynchronousSnapshots)); }
Example 5
Source File: FsStateBackend.java From flink with Apache License 2.0 | 3 votes |
/** * Creates a new state backend that stores its checkpoint data in the file system and location * defined by the given URI. * * <p>A file system for the file system scheme in the URI (e.g., 'file://', 'hdfs://', or 'S3://') * must be accessible via {@link FileSystem#get(URI)}. * * <p>For a state backend targeting HDFS, this means that the URI must either specify the authority * (host and port), or that the Hadoop configuration that describes that information must be in the * classpath. * * @param checkpointDataUri The URI describing the filesystem (scheme and optionally authority), * and the path to the checkpoint data directory. * @param fileStateSizeThreshold State up to this size will be stored as part of the metadata, * rather than in files (-1 for default value). * @param asynchronousSnapshots Switch to enable asynchronous snapshots. */ public FsStateBackend( URI checkpointDataUri, int fileStateSizeThreshold, boolean asynchronousSnapshots) { this(checkpointDataUri, null, fileStateSizeThreshold, -1, TernaryBoolean.fromBoolean(asynchronousSnapshots)); }
Example 6
Source File: FsStateBackend.java From flink with Apache License 2.0 | 3 votes |
/** * Creates a new state backend that stores its checkpoint data in the file system and location * defined by the given URI. * * <p>A file system for the file system scheme in the URI (e.g., 'file://', 'hdfs://', or 'S3://') * must be accessible via {@link FileSystem#get(URI)}. * * <p>For a state backend targeting HDFS, this means that the URI must either specify the authority * (host and port), or that the Hadoop configuration that describes that information must be in the * classpath. * * @param checkpointDataUri The URI describing the filesystem (scheme and optionally authority), * and the path to the checkpoint data directory. * @param fileStateSizeThreshold State up to this size will be stored as part of the metadata, * rather than in files (-1 for default value). * @param asynchronousSnapshots Switch to enable asynchronous snapshots. */ public FsStateBackend( URI checkpointDataUri, int fileStateSizeThreshold, boolean asynchronousSnapshots) { this(checkpointDataUri, null, fileStateSizeThreshold, -1, TernaryBoolean.fromBoolean(asynchronousSnapshots)); }
Example 7
Source File: FsStateBackend.java From Flink-CEPplus with Apache License 2.0 | 2 votes |
/** * Creates a new state backend that stores its checkpoint data in the file system and location * defined by the given URI. * * <p>A file system for the file system scheme in the URI (e.g., 'file://', 'hdfs://', or 'S3://') * must be accessible via {@link FileSystem#get(URI)}. * * <p>For a state backend targeting HDFS, this means that the URI must either specify the authority * (host and port), or that the Hadoop configuration that describes that information must be in the * classpath. * * @param checkpointDataUri The URI describing the filesystem (scheme and optionally authority), * and the path to the checkpoint data directory. * @param asynchronousSnapshots Switch to enable asynchronous snapshots. */ public FsStateBackend(URI checkpointDataUri, boolean asynchronousSnapshots) { this(checkpointDataUri, null, -1, TernaryBoolean.fromBoolean(asynchronousSnapshots)); }
Example 8
Source File: MemoryStateBackend.java From Flink-CEPplus with Apache License 2.0 | 2 votes |
/** * Creates a new memory state backend that accepts states whose serialized forms are * up to the default state size (5 MB). The state backend uses asynchronous snapshots * or synchronous snapshots as configured. * * <p>Checkpoint and default savepoint locations are used as specified in the * runtime configuration. * * @param asynchronousSnapshots Switch to enable asynchronous snapshots. */ public MemoryStateBackend(boolean asynchronousSnapshots) { this(null, null, DEFAULT_MAX_STATE_SIZE, TernaryBoolean.fromBoolean(asynchronousSnapshots)); }
Example 9
Source File: MemoryStateBackend.java From Flink-CEPplus with Apache License 2.0 | 2 votes |
/** * Creates a new memory state backend that accepts states whose serialized forms are * up to the given number of bytes and that uses asynchronous snashots as configured. * * <p>Checkpoint and default savepoint locations are used as specified in the * runtime configuration. * * <p><b>WARNING:</b> Increasing the size of this value beyond the default value * ({@value #DEFAULT_MAX_STATE_SIZE}) should be done with care. * The checkpointed state needs to be send to the JobManager via limited size RPC messages, and there * and the JobManager needs to be able to hold all aggregated state in its memory. * * @param maxStateSize The maximal size of the serialized state * @param asynchronousSnapshots Switch to enable asynchronous snapshots. */ public MemoryStateBackend(int maxStateSize, boolean asynchronousSnapshots) { this(null, null, maxStateSize, TernaryBoolean.fromBoolean(asynchronousSnapshots)); }
Example 10
Source File: FsStateBackend.java From flink with Apache License 2.0 | 2 votes |
/** * Creates a new state backend that stores its checkpoint data in the file system and location * defined by the given URI. * * <p>A file system for the file system scheme in the URI (e.g., 'file://', 'hdfs://', or 'S3://') * must be accessible via {@link FileSystem#get(URI)}. * * <p>For a state backend targeting HDFS, this means that the URI must either specify the authority * (host and port), or that the Hadoop configuration that describes that information must be in the * classpath. * * @param checkpointDataUri The URI describing the filesystem (scheme and optionally authority), * and the path to the checkpoint data directory. * @param asynchronousSnapshots Switch to enable asynchronous snapshots. */ public FsStateBackend(URI checkpointDataUri, boolean asynchronousSnapshots) { this(checkpointDataUri, null, -1, -1, TernaryBoolean.fromBoolean(asynchronousSnapshots)); }
Example 11
Source File: MemoryStateBackend.java From flink with Apache License 2.0 | 2 votes |
/** * Creates a new memory state backend that accepts states whose serialized forms are * up to the default state size (5 MB). The state backend uses asynchronous snapshots * or synchronous snapshots as configured. * * <p>Checkpoint and default savepoint locations are used as specified in the * runtime configuration. * * @param asynchronousSnapshots Switch to enable asynchronous snapshots. */ public MemoryStateBackend(boolean asynchronousSnapshots) { this(null, null, DEFAULT_MAX_STATE_SIZE, TernaryBoolean.fromBoolean(asynchronousSnapshots)); }
Example 12
Source File: MemoryStateBackend.java From flink with Apache License 2.0 | 2 votes |
/** * Creates a new memory state backend that accepts states whose serialized forms are * up to the given number of bytes and that uses asynchronous snashots as configured. * * <p>Checkpoint and default savepoint locations are used as specified in the * runtime configuration. * * <p><b>WARNING:</b> Increasing the size of this value beyond the default value * ({@value #DEFAULT_MAX_STATE_SIZE}) should be done with care. * The checkpointed state needs to be send to the JobManager via limited size RPC messages, and there * and the JobManager needs to be able to hold all aggregated state in its memory. * * @param maxStateSize The maximal size of the serialized state * @param asynchronousSnapshots Switch to enable asynchronous snapshots. */ public MemoryStateBackend(int maxStateSize, boolean asynchronousSnapshots) { this(null, null, maxStateSize, TernaryBoolean.fromBoolean(asynchronousSnapshots)); }
Example 13
Source File: FsStateBackend.java From flink with Apache License 2.0 | 2 votes |
/** * Creates a new state backend that stores its checkpoint data in the file system and location * defined by the given URI. * * <p>A file system for the file system scheme in the URI (e.g., 'file://', 'hdfs://', or 'S3://') * must be accessible via {@link FileSystem#get(URI)}. * * <p>For a state backend targeting HDFS, this means that the URI must either specify the authority * (host and port), or that the Hadoop configuration that describes that information must be in the * classpath. * * @param checkpointDataUri The URI describing the filesystem (scheme and optionally authority), * and the path to the checkpoint data directory. * @param asynchronousSnapshots Switch to enable asynchronous snapshots. */ public FsStateBackend(URI checkpointDataUri, boolean asynchronousSnapshots) { this(checkpointDataUri, null, -1, -1, TernaryBoolean.fromBoolean(asynchronousSnapshots)); }
Example 14
Source File: MemoryStateBackend.java From flink with Apache License 2.0 | 2 votes |
/** * Creates a new memory state backend that accepts states whose serialized forms are * up to the default state size (5 MB). The state backend uses asynchronous snapshots * or synchronous snapshots as configured. * * <p>Checkpoint and default savepoint locations are used as specified in the * runtime configuration. * * @param asynchronousSnapshots Switch to enable asynchronous snapshots. */ public MemoryStateBackend(boolean asynchronousSnapshots) { this(null, null, DEFAULT_MAX_STATE_SIZE, TernaryBoolean.fromBoolean(asynchronousSnapshots)); }
Example 15
Source File: MemoryStateBackend.java From flink with Apache License 2.0 | 2 votes |
/** * Creates a new memory state backend that accepts states whose serialized forms are * up to the given number of bytes and that uses asynchronous snashots as configured. * * <p>Checkpoint and default savepoint locations are used as specified in the * runtime configuration. * * <p><b>WARNING:</b> Increasing the size of this value beyond the default value * ({@value #DEFAULT_MAX_STATE_SIZE}) should be done with care. * The checkpointed state needs to be send to the JobManager via limited size RPC messages, and there * and the JobManager needs to be able to hold all aggregated state in its memory. * * @param maxStateSize The maximal size of the serialized state * @param asynchronousSnapshots Switch to enable asynchronous snapshots. */ public MemoryStateBackend(int maxStateSize, boolean asynchronousSnapshots) { this(null, null, maxStateSize, TernaryBoolean.fromBoolean(asynchronousSnapshots)); }