-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Opensearch Sink: refactor all index related operations into IndexMana…
…ger classes for easier future extension Signed-off-by: Han Jiang <[email protected]>
- Loading branch information
1 parent
3a669bf
commit c4207e3
Showing
20 changed files
with
1,092 additions
and
300 deletions.
There are no files selected for viewing
103 changes: 0 additions & 103 deletions
103
...ch/src/main/java/com/amazon/dataprepper/plugins/sink/opensearch/IndexStateManagement.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
...c/main/java/com/amazon/dataprepper/plugins/sink/opensearch/index/DefaultIndexManager.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.amazon.dataprepper.plugins.sink.opensearch.index; | ||
|
||
import com.amazon.dataprepper.plugins.sink.opensearch.OpenSearchSinkConfiguration; | ||
import org.opensearch.client.RestHighLevelClient; | ||
|
||
import java.io.IOException; | ||
import java.util.Optional; | ||
|
||
public class DefaultIndexManager extends IndexManager { | ||
|
||
public DefaultIndexManager(final RestHighLevelClient restHighLevelClient, | ||
final OpenSearchSinkConfiguration openSearchSinkConfiguration) { | ||
super(restHighLevelClient, openSearchSinkConfiguration); | ||
} | ||
|
||
@Override | ||
public Optional<String> checkAndCreatePolicy() throws IOException { | ||
return Optional.empty(); | ||
} | ||
|
||
} |
Oops, something went wrong.