-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move rules and templates to plugin level
Signed-off-by: Srikanth Govindarajan <srigovs@amazon.com>
- Loading branch information
1 parent
9f02768
commit d7a0999
Showing
18 changed files
with
304 additions
and
366 deletions.
There are no files selected for viewing
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
33 changes: 0 additions & 33 deletions
33
...parser/src/main/java/org/opensearch/dataprepper/pipeline/parser/rule/RuleInputStream.java
This file was deleted.
Oops, something went wrong.
26 changes: 26 additions & 0 deletions
26
...line-parser/src/main/java/org/opensearch/dataprepper/pipeline/parser/rule/RuleStream.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,26 @@ | ||
package org.opensearch.dataprepper.pipeline.parser.rule; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
|
||
import java.io.IOException; | ||
import java.io.InputStream; | ||
|
||
@Data | ||
@AllArgsConstructor | ||
public class RuleStream { | ||
private String name; | ||
private InputStream ruleStream; | ||
|
||
|
||
public void close() { | ||
if (ruleStream != null) { | ||
try { | ||
ruleStream.close(); | ||
} catch (IOException e) { | ||
throw new RuntimeException(e); | ||
} | ||
} | ||
} | ||
} | ||
|
20 changes: 20 additions & 0 deletions
20
...-parser/src/main/java/org/opensearch/dataprepper/pipeline/parser/rule/TemplateStream.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,20 @@ | ||
package org.opensearch.dataprepper.pipeline.parser.rule; | ||
|
||
import java.io.IOException; | ||
import java.io.InputStream; | ||
|
||
public class TemplateStream { | ||
private String name; | ||
private InputStream templateStream; | ||
|
||
|
||
public void close() { | ||
if (templateStream != null) { | ||
try { | ||
templateStream.close(); | ||
} catch (IOException e) { | ||
throw new RuntimeException(e); | ||
} | ||
} | ||
} | ||
} |
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
Oops, something went wrong.