Java Code Examples for org.apache.flink.api.common.ExecutionConfig#isUseSnapshotCompression()

The following examples show how to use org.apache.flink.api.common.ExecutionConfig#isUseSnapshotCompression() . These examples are extracted from open source projects. 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
private static StreamCompressionDecorator determineStreamCompression(ExecutionConfig executionConfig) {
	if (executionConfig != null && executionConfig.isUseSnapshotCompression()) {
		return SnappyStreamCompressionDecorator.INSTANCE;
	} else {
		return UncompressedStreamCompressionDecorator.INSTANCE;
	}
}
 
Example 2
public static StreamCompressionDecorator getCompressionDecorator(ExecutionConfig executionConfig) {
	if (executionConfig != null && executionConfig.isUseSnapshotCompression()) {
		return SnappyStreamCompressionDecorator.INSTANCE;
	} else {
		return UncompressedStreamCompressionDecorator.INSTANCE;
	}
}
 
Example 3
Source Project: flink   File: AbstractKeyedStateBackend.java    License: Apache License 2.0 5 votes vote down vote up
private static StreamCompressionDecorator determineStreamCompression(ExecutionConfig executionConfig) {
	if (executionConfig != null && executionConfig.isUseSnapshotCompression()) {
		return SnappyStreamCompressionDecorator.INSTANCE;
	} else {
		return UncompressedStreamCompressionDecorator.INSTANCE;
	}
}
 
Example 4
Source Project: flink   File: AbstractStateBackend.java    License: Apache License 2.0 5 votes vote down vote up
public static StreamCompressionDecorator getCompressionDecorator(ExecutionConfig executionConfig) {
	if (executionConfig != null && executionConfig.isUseSnapshotCompression()) {
		return SnappyStreamCompressionDecorator.INSTANCE;
	} else {
		return UncompressedStreamCompressionDecorator.INSTANCE;
	}
}
 
Example 5
Source Project: flink   File: AbstractKeyedStateBackend.java    License: Apache License 2.0 5 votes vote down vote up
private static StreamCompressionDecorator determineStreamCompression(ExecutionConfig executionConfig) {
	if (executionConfig != null && executionConfig.isUseSnapshotCompression()) {
		return SnappyStreamCompressionDecorator.INSTANCE;
	} else {
		return UncompressedStreamCompressionDecorator.INSTANCE;
	}
}
 
Example 6
Source Project: flink   File: AbstractStateBackend.java    License: Apache License 2.0 5 votes vote down vote up
public static StreamCompressionDecorator getCompressionDecorator(ExecutionConfig executionConfig) {
	if (executionConfig != null && executionConfig.isUseSnapshotCompression()) {
		return SnappyStreamCompressionDecorator.INSTANCE;
	} else {
		return UncompressedStreamCompressionDecorator.INSTANCE;
	}
}