Skip to content

Commit 666403c

Browse files
committed
Rename classes
Signed-off-by: Liyun Xiu <[email protected]>
1 parent 4afa147 commit 666403c

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

server/src/main/java/org/opensearch/ingest/AbstractBatchProcessor.java renamed to server/src/main/java/org/opensearch/ingest/AbstractBatchingProcessor.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@
2020
*
2121
* @opensearch.internal
2222
*/
23-
public abstract class AbstractBatchProcessor extends AbstractProcessor {
23+
public abstract class AbstractBatchingProcessor extends AbstractProcessor {
2424

2525
public static final String BATCH_SIZE_FIELD = "batch_size";
2626
private static final int DEFAULT_BATCH_SIZE = 1;
2727
protected final int batchSize;
2828

29-
protected AbstractBatchProcessor(String tag, String description, int batchSize) {
29+
protected AbstractBatchingProcessor(String tag, String description, int batchSize) {
3030
super(tag, description);
3131
this.batchSize = batchSize;
3232
}
@@ -86,7 +86,7 @@ private List<List<IngestDocumentWrapper>> cutBatches(List<IngestDocumentWrapper>
8686
}
8787

8888
/**
89-
* Factory class for creating {@link AbstractBatchProcessor} instances.
89+
* Factory class for creating {@link AbstractBatchingProcessor} instances.
9090
*
9191
* @opensearch.internal
9292
*/
@@ -108,7 +108,7 @@ protected Factory(String processorType) {
108108
* @throws Exception If the processor could not be created.
109109
*/
110110
@Override
111-
public AbstractBatchProcessor create(
111+
public AbstractBatchingProcessor create(
112112
Map<String, Processor.Factory> processorFactories,
113113
String tag,
114114
String description,
@@ -127,6 +127,6 @@ public AbstractBatchProcessor create(
127127
* @param config configuration of the processor
128128
* @return a new batch processor instance
129129
*/
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);
131131
}
132132
}

server/src/test/java/org/opensearch/ingest/AbstractBatchProcessorTests.java renamed to server/src/test/java/org/opensearch/ingest/AbstractBatchingProcessorTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
import static org.mockito.Mockito.times;
2727
import static org.mockito.Mockito.verify;
2828

29-
public class AbstractBatchProcessorTests extends OpenSearchTestCase {
29+
public class AbstractBatchingProcessorTests extends OpenSearchTestCase {
3030

3131
private static final String DESCRIPTION = "description";
3232
private static final String TAG = "tag";
@@ -108,7 +108,7 @@ public void testBatchExecute_defaultBatchSize() throws Exception {
108108
verify(processor, times(3)).execute(any(IngestDocument.class));
109109
}
110110

111-
static class DummyProcessor extends AbstractBatchProcessor {
111+
static class DummyProcessor extends AbstractBatchingProcessor {
112112

113113
protected DummyProcessor(String tag, String description, int batchSize) {
114114
super(tag, description, batchSize);

0 commit comments

Comments
 (0)