[MINOR] optimize in constructor of inputbatch class (#4040)
Co-authored-by: 闫杜峰 <yandufeng@sinochem.com>
This commit is contained in:
@@ -39,9 +39,7 @@ public class InputBatch<T> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public InputBatch(Option<T> batch, String checkpointForNextBatch) {
|
public InputBatch(Option<T> batch, String checkpointForNextBatch) {
|
||||||
this.batch = batch;
|
this(batch, checkpointForNextBatch, null);
|
||||||
this.checkpointForNextBatch = checkpointForNextBatch;
|
|
||||||
this.schemaProvider = null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public Option<T> getBatch() {
|
public Option<T> getBatch() {
|
||||||
|
|||||||
Reference in New Issue
Block a user