20
20
*
21
21
* @opensearch.internal
22
22
*/
23
- public abstract class AbstractBatchProcessor extends AbstractProcessor {
23
+ public abstract class AbstractBatchingProcessor extends AbstractProcessor {
24
24
25
25
public static final String BATCH_SIZE_FIELD = "batch_size" ;
26
26
private static final int DEFAULT_BATCH_SIZE = 1 ;
27
27
protected final int batchSize ;
28
28
29
- protected AbstractBatchProcessor (String tag , String description , int batchSize ) {
29
+ protected AbstractBatchingProcessor (String tag , String description , int batchSize ) {
30
30
super (tag , description );
31
31
this .batchSize = batchSize ;
32
32
}
@@ -86,7 +86,7 @@ private List<List<IngestDocumentWrapper>> cutBatches(List<IngestDocumentWrapper>
86
86
}
87
87
88
88
/**
89
- * Factory class for creating {@link AbstractBatchProcessor } instances.
89
+ * Factory class for creating {@link AbstractBatchingProcessor } instances.
90
90
*
91
91
* @opensearch.internal
92
92
*/
@@ -108,7 +108,7 @@ protected Factory(String processorType) {
108
108
* @throws Exception If the processor could not be created.
109
109
*/
110
110
@ Override
111
- public AbstractBatchProcessor create (
111
+ public AbstractBatchingProcessor create (
112
112
Map <String , Processor .Factory > processorFactories ,
113
113
String tag ,
114
114
String description ,
@@ -127,6 +127,6 @@ public AbstractBatchProcessor create(
127
127
* @param config configuration of the processor
128
128
* @return a new batch processor instance
129
129
*/
130
- protected abstract AbstractBatchProcessor newProcessor (String tag , String description , int batchSize , Map <String , Object > config );
130
+ protected abstract AbstractBatchingProcessor newProcessor (String tag , String description , int batchSize , Map <String , Object > config );
131
131
}
132
132
}
0 commit comments