Commit Graph

487 Commits

Author SHA1 Message Date
Aldrin Piri e6ebaa4ced Adding licensing and notice information for JsonPath 2015-03-01 21:42:56 -05:00
Aldrin Piri 4618f46f27 Adding JsonPathExpressionValidator to perform an exception free validation of JsonPath expressions. This is used as a screen before attempting a compile. 2015-03-01 21:23:01 -05:00
Aldrin Piri 973b493386 Adjusting handling of map to cache data items on an instance basis. 2015-03-01 16:31:32 -05:00
Aldrin Piri 484687a67b Adjusting onRemoved methods for both JsonPath processors to clean up entries on exit. 2015-03-01 14:16:22 -05:00
Aldrin Piri 5a2a8fc6be Adding notes about JsonPath loading contents into memory for both JsonPath processors. 2015-03-01 13:37:29 -05:00
Aldrin Piri 84602ca3e9 Removing extraneous logging statement. 2015-03-01 13:27:40 -05:00
Aldrin Piri 4d3cff3592 Removing JsonUtils as all functionality was migrated into AbstractJsonPathProcessor given its limited utility outside of those classes. Adjusting validation approach for JsonPath processors to accomodate caching of expressions. 2015-03-01 13:26:03 -05:00
Aldrin Piri b1f971335a Adding processor documentation for EvaluateJsonPath and SplitJson 2015-03-01 00:13:22 -05:00
Aldrin Piri 162f02b12f Removing the separate reads for validation preferring to do the read once and handle any exceptions. 2015-02-28 21:24:25 -05:00
Aldrin Piri 57aa5dd63f Providing provenance fork event for the created segments generated by SplitJson. 2015-02-28 16:04:43 -05:00
Aldrin Piri 6a89745ec8 Adding a provenance event for EvaluateJsonPath when content is overwritten with selected expression. 2015-02-28 15:54:52 -05:00
Aldrin Piri caed7f8468 Adding missing subject property on the JsonPath validator. 2015-02-28 12:36:30 -05:00
Aldrin Piri d6948601cd Adjusting scope of methods as they are specific to the JsonPath related processors 2015-02-23 22:51:37 -05:00
Aldrin Piri 46bf048b24 Adding an abstract class to serve as a base class for JsonPath related processors and preferring this for much of the functionality present in JsonUtils. 2015-02-21 20:26:58 -05:00
Aldrin Piri 81234f3a6d Removing the batched get of flowfiles to utilize the framework provided batching support 2015-02-20 16:05:16 -05:00
joewitt 2862771235 NIFI-360 providing review feedback on github PR 2015-02-17 23:29:16 -05:00
joewitt f05cc9383c Merge branch 'json-processors' of https://github.com/apiri/incubator-nifi into NIFI-360 2015-02-17 22:17:05 -05:00
Aldrin Piri 9a5b6d5ba2 Encapsulating the rendering of a JsonPath result within JsonUtils 2015-02-17 21:29:40 -05:00
Aldrin Piri c88b427e82 Removing extraneous comment block that was replaced by method Javadoc 2015-02-17 18:42:05 -05:00
Aldrin Piri 5f647aa465 Adding missing apostrophe for description of SplitJson 2015-02-17 18:40:12 -05:00
Aldrin Piri 408f636361 Preferring the constant empty string for clarity instead of quotes. 2015-02-17 17:01:06 -05:00
Aldrin Piri a058fd0460 Adding license terms for asm dependency introduced via JsonPath -> Json-Smart 2015-02-17 16:58:04 -05:00
Aldrin Piri 627bd91fa7 Adding an auto return type for EvaluateJsonPath to match the semantics of the EvaluateXPath processor. 2015-02-17 16:15:33 -05:00
Aldrin Piri 1a746212bf Removing unnessecary local variable 2015-02-17 16:04:21 -05:00
Aldrin Piri 7a74dd9420 Adding a test case for SplitJson where the specified path cannot be found. Adjusting documentation for additional detail. 2015-02-17 15:50:42 -05:00
Aldrin Piri 2e05dcbbfd Providing a SplitJson processor which will break JSON Arrays into their individual elements. Refactored supporting JsonUtils code and EvaluateJsonPath to reuse common functionality. 2015-02-17 15:17:12 -05:00
Aldrin Piri 59ad194851 Refactoring common JSON/JsonPath functionality into JsonUtils 2015-02-17 10:26:18 -05:00
Aldrin Piri 5a81f19b25 Moving the JsonPath Validator to the JsonPathUtil class so that it can be reused by other processors. 2015-02-17 09:44:30 -05:00
joewitt dde5fd51a4 Merge branch 'NIFI-356' of https://github.com/apiri/incubator-nifi into develop 2015-02-17 00:24:58 -05:00
Aldrin Piri 24be4a1dfd Correcting the capability description which states that the property is ignored when destination is flowfile attribute instead of content. This closes NIFI-356. 2015-02-17 00:20:23 -05:00
joewitt fa5a4f26ce NIFI-355 removed all extraneous version references 2015-02-16 23:55:36 -05:00
Aldrin Piri 0a19ada0a3 Adjusting comments and providing a test to ensure a non-scalar value for a specified scalar return type is routed to failure. 2015-02-16 23:26:45 -05:00
Aldrin Piri bcebba6632 Refining logic of how errors are handled on a per destination basis. Adding supporting tests to ensure contract is met. 2015-02-16 22:44:06 -05:00
Aldrin Piri 5b145e10e8 Adjusting error where the return type of string was omitted from the possible selections 2015-02-16 18:34:23 -05:00
Aldrin Piri 7e581307b7 Adding tests for indefinite results with and without the usage of operators. 2015-02-16 18:33:48 -05:00
Aldrin Piri 6897090771 Adding a test for a destination of attributes and only one JsonPath expression evaluates to a found result. 2015-02-16 18:26:35 -05:00
Aldrin Piri d4a94c37ee Adding a test for multiple attributes where neither evaluates to a found path. 2015-02-16 18:24:57 -05:00
Aldrin Piri 78ad0a3147 Adding a test for multiple attribute paths 2015-02-16 18:20:31 -05:00
Aldrin Piri 974617d44e Adding a test to verify the placement of a JSON path expression with a content destination. 2015-02-16 18:09:22 -05:00
Aldrin Piri b3328490c6 Completing initial functionality of EvaluateJsonPath and associated tests. 2015-02-16 18:03:24 -05:00
Aldrin Piri c3c4d36944 Providing validation of the input FlowFile as JSON 2015-02-16 10:56:06 -05:00
Aldrin Piri 40da65f193 Adjusting filename of EvaluateJsonPath 2015-02-15 15:25:22 -05:00
Aldrin Piri da6b55f34c Adding an implementation of validation for JsonPath, providing a sample JSON file, and creating an associated test class. 2015-02-14 14:13:49 -05:00
Aldrin Piri e75213eead Adding EvaluateJsonPath to the Processor services file 2015-02-14 13:35:53 -05:00
Aldrin Piri ec669e5b42 Stubbing out validator, setting up relationships and properties. 2015-02-14 13:26:08 -05:00
Aldrin Piri 5f03fb11d9 Creating stub for an EvaluateJSONPath processor and providing configuration akin to EvaluateXPath 2015-02-14 12:56:19 -05:00
Aldrin Piri 446fc2ef80 Adding JSONPath as a managed dependency and including it in the standard processor pom 2015-02-13 23:42:40 -05:00
Matt Gilman b8ade5b129 NIFI-325:
- Allowing the processor/label color to be entered by hand.
- Allowing the color of multiple processors or labels to be configured at the same time.
2015-02-13 10:41:05 -05:00
Matt Gilman 4ec9548e2c NIFI-351: Fixing description. 2015-02-13 08:40:36 -05:00
Matt Gilman 5c0ed559b5 NIFI-350:
- Updating the default sort direction where appropriate.
2015-02-13 08:29:24 -05:00