public WriteSinkFunction(String path, WriteFormat<IN> format) { this.path = path; this.format = format; cleanFile(path); }
/** * Implementation of the invoke method of the SinkFunction class. Collects * the incoming tuples in tupleList and appends the list to the end of the * target file if updateCondition() is true or the current tuple is the * endTuple. */ @Override public void invoke(IN tuple) { tupleList.add(tuple); if (updateCondition()) { format.write(path, tupleList); resetParameters(); } }
/** * Implementation of the invoke method of the SinkFunction class. Collects * the incoming tuples in tupleList and appends the list to the end of the * target file if updateCondition() is true or the current tuple is the * endTuple. */ @Override public void invoke(IN tuple) { tupleList.add(tuple); if (updateCondition()) { format.write(path, tupleList); resetParameters(); } }
public WriteSinkFunction(String path, WriteFormat<IN> format) { this.path = path; this.format = format; cleanFile(path); }
/** * Implementation of the invoke method of the SinkFunction class. Collects * the incoming tuples in tupleList and appends the list to the end of the * target file if updateCondition() is true or the current tuple is the * endTuple. */ @Override public void invoke(IN tuple) { tupleList.add(tuple); if (updateCondition()) { format.write(path, tupleList); resetParameters(); } }
public WriteSinkFunction(String path, WriteFormat<IN> format) { this.path = path; this.format = format; cleanFile(path); }
/** * Implementation of the invoke method of the SinkFunction class. Collects * the incoming tuples in tupleList and appends the list to the end of the * target file if updateCondition() is true or the current tuple is the * endTuple. */ @Override public void invoke(IN tuple) { tupleList.add(tuple); if (updateCondition()) { format.write(path, tupleList); resetParameters(); } }
public WriteSinkFunction(String path, WriteFormat<IN> format) { this.path = path; this.format = format; cleanFile(path); }