Java Code Examples for org.apache.flink.streaming.api.functions.sink.filesystem.PartFileInfo#getSize()

The following examples show how to use org.apache.flink.streaming.api.functions.sink.filesystem.PartFileInfo#getSize() . 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: FileSystemTableSink.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
public boolean shouldRollOnCheckpoint(PartFileInfo<String> partFileState) {
	try {
		return rollOnCheckpoint || partFileState.getSize() > rollingFileSize;
	} catch (IOException e) {
		throw new RuntimeException(e);
	}
}
 
Example 2
Source File: DefaultRollingPolicy.java    From Flink-CEPplus with Apache License 2.0 4 votes vote down vote up
@Override
public boolean shouldRollOnCheckpoint(PartFileInfo<BucketID> partFileState) throws IOException {
	return partFileState.getSize() > partSize;
}
 
Example 3
Source File: DefaultRollingPolicy.java    From Flink-CEPplus with Apache License 2.0 4 votes vote down vote up
@Override
public boolean shouldRollOnEvent(PartFileInfo<BucketID> partFileState, IN element) throws IOException {
	return partFileState.getSize() > partSize;
}
 
Example 4
Source File: DefaultRollingPolicy.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public boolean shouldRollOnCheckpoint(PartFileInfo<BucketID> partFileState) throws IOException {
	return partFileState.getSize() > partSize;
}
 
Example 5
Source File: DefaultRollingPolicy.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public boolean shouldRollOnEvent(PartFileInfo<BucketID> partFileState, IN element) throws IOException {
	return partFileState.getSize() > partSize;
}
 
Example 6
Source File: FileSystemTableSink.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public boolean shouldRollOnEvent(
		PartFileInfo<String> partFileState,
		RowData element) throws IOException {
	return partFileState.getSize() > rollingFileSize;
}
 
Example 7
Source File: DefaultRollingPolicy.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public boolean shouldRollOnCheckpoint(PartFileInfo<BucketID> partFileState) throws IOException {
	return partFileState.getSize() > partSize;
}
 
Example 8
Source File: DefaultRollingPolicy.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public boolean shouldRollOnEvent(PartFileInfo<BucketID> partFileState, IN element) throws IOException {
	return partFileState.getSize() > partSize;
}