org.apache.flink.streaming.api.functions.sink.filesystem.PartFileInfo Java Examples
The following examples show how to use
org.apache.flink.streaming.api.functions.sink.filesystem.PartFileInfo.
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 |
@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 with Apache License 2.0 | 4 votes |
@Override public boolean shouldRollOnProcessingTime(final PartFileInfo<BucketID> partFileState, final long currentTime) { return currentTime - partFileState.getCreationTime() >= rolloverInterval || currentTime - partFileState.getLastUpdateTime() >= inactivityInterval; }
Example #3
Source File: DefaultRollingPolicy.java From flink with Apache License 2.0 | 4 votes |
@Override public boolean shouldRollOnProcessingTime(final PartFileInfo<BucketID> partFileState, final long currentTime) { return currentTime - partFileState.getCreationTime() >= rolloverInterval || currentTime - partFileState.getLastUpdateTime() >= inactivityInterval; }
Example #4
Source File: DefaultRollingPolicy.java From flink with Apache License 2.0 | 4 votes |
@Override public boolean shouldRollOnEvent(PartFileInfo<BucketID> partFileState, IN element) throws IOException { return partFileState.getSize() > partSize; }
Example #5
Source File: DefaultRollingPolicy.java From flink with Apache License 2.0 | 4 votes |
@Override public boolean shouldRollOnCheckpoint(PartFileInfo<BucketID> partFileState) throws IOException { return partFileState.getSize() > partSize; }
Example #6
Source File: CheckpointRollingPolicy.java From flink with Apache License 2.0 | 4 votes |
public boolean shouldRollOnCheckpoint(PartFileInfo<BucketID> partFileState) { return true; }
Example #7
Source File: OnCheckpointRollingPolicy.java From flink with Apache License 2.0 | 4 votes |
@Override public boolean shouldRollOnProcessingTime(PartFileInfo<BucketID> partFileState, long currentTime) { return false; }
Example #8
Source File: OnCheckpointRollingPolicy.java From flink with Apache License 2.0 | 4 votes |
@Override public boolean shouldRollOnEvent(PartFileInfo<BucketID> partFileState, IN element) { return false; }
Example #9
Source File: FileSystemTableSink.java From flink with Apache License 2.0 | 4 votes |
@Override public boolean shouldRollOnProcessingTime( PartFileInfo<String> partFileState, long currentTime) { return currentTime - partFileState.getCreationTime() >= rollingTimeInterval; }
Example #10
Source File: FileSystemTableSink.java From flink with Apache License 2.0 | 4 votes |
@Override public boolean shouldRollOnEvent( PartFileInfo<String> partFileState, RowData element) throws IOException { return partFileState.getSize() > rollingFileSize; }
Example #11
Source File: OnCheckpointRollingPolicy.java From Flink-CEPplus with Apache License 2.0 | 4 votes |
@Override public boolean shouldRollOnCheckpoint(PartFileInfo<BucketID> partFileState) { return true; }
Example #12
Source File: DefaultRollingPolicy.java From flink with Apache License 2.0 | 4 votes |
@Override public boolean shouldRollOnEvent(PartFileInfo<BucketID> partFileState, IN element) throws IOException { return partFileState.getSize() > partSize; }
Example #13
Source File: DefaultRollingPolicy.java From flink with Apache License 2.0 | 4 votes |
@Override public boolean shouldRollOnCheckpoint(PartFileInfo<BucketID> partFileState) throws IOException { return partFileState.getSize() > partSize; }
Example #14
Source File: OnCheckpointRollingPolicy.java From flink with Apache License 2.0 | 4 votes |
@Override public boolean shouldRollOnProcessingTime(PartFileInfo<BucketID> partFileState, long currentTime) { return false; }
Example #15
Source File: OnCheckpointRollingPolicy.java From flink with Apache License 2.0 | 4 votes |
@Override public boolean shouldRollOnEvent(PartFileInfo<BucketID> partFileState, IN element) { return false; }
Example #16
Source File: OnCheckpointRollingPolicy.java From flink with Apache License 2.0 | 4 votes |
@Override public boolean shouldRollOnCheckpoint(PartFileInfo<BucketID> partFileState) { return true; }
Example #17
Source File: DefaultRollingPolicy.java From Flink-CEPplus with Apache License 2.0 | 4 votes |
@Override public boolean shouldRollOnProcessingTime(final PartFileInfo<BucketID> partFileState, final long currentTime) { return currentTime - partFileState.getCreationTime() >= rolloverInterval || currentTime - partFileState.getLastUpdateTime() >= inactivityInterval; }
Example #18
Source File: DefaultRollingPolicy.java From Flink-CEPplus with Apache License 2.0 | 4 votes |
@Override public boolean shouldRollOnEvent(PartFileInfo<BucketID> partFileState, IN element) throws IOException { return partFileState.getSize() > partSize; }
Example #19
Source File: DefaultRollingPolicy.java From Flink-CEPplus with Apache License 2.0 | 4 votes |
@Override public boolean shouldRollOnCheckpoint(PartFileInfo<BucketID> partFileState) throws IOException { return partFileState.getSize() > partSize; }
Example #20
Source File: OnCheckpointRollingPolicy.java From Flink-CEPplus with Apache License 2.0 | 4 votes |
@Override public boolean shouldRollOnProcessingTime(PartFileInfo<BucketID> partFileState, long currentTime) { return false; }
Example #21
Source File: OnCheckpointRollingPolicy.java From Flink-CEPplus with Apache License 2.0 | 4 votes |
@Override public boolean shouldRollOnEvent(PartFileInfo<BucketID> partFileState, IN element) { return false; }
Example #22
Source File: CheckpointRollingPolicy.java From flink with Apache License 2.0 | votes |
public abstract boolean shouldRollOnEvent(final PartFileInfo<BucketID> partFileState, IN element) throws IOException;
Example #23
Source File: CheckpointRollingPolicy.java From flink with Apache License 2.0 | votes |
public abstract boolean shouldRollOnProcessingTime(final PartFileInfo<BucketID> partFileState, final long currentTime) throws IOException;