New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gh-2675: Add ToOpenCypherCsv Operation #2704
Conversation
core/data/src/main/java/uk/gov/gchq/gaffer/data/generator/OpenCypherCsvGenerator.java
Outdated
Show resolved
Hide resolved
…ElementGenerator
…t required, addded correspodning handler and test
Codecov Report
@@ Coverage Diff @@
## v2-alpha #2704 +/- ##
===========================================
Coverage ? 67.24%
Complexity ? 2277
===========================================
Files ? 678
Lines ? 21089
Branches ? 2467
===========================================
Hits ? 14181
Misses ? 5778
Partials ? 1130 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
As this is a work in progress, it might be better to set this as a draft PR. There are no tests for the changes to the |
core/data/src/test/java/uk/gov/gchq/gaffer/data/generator/OpenCypherCsvGeneratorTest.java
Outdated
Show resolved
Hide resolved
core/data/src/main/java/uk/gov/gchq/gaffer/data/generator/CsvGenerator.java
Outdated
Show resolved
Hide resolved
core/operation/src/main/java/uk/gov/gchq/gaffer/operation/impl/output/ToCsv.java
Show resolved
Hide resolved
It should be noted that this PR just provides a way to export a list of elements into lines of a csv. Another Operation will need to be added to save this to a file. |
core/data/src/main/java/uk/gov/gchq/gaffer/data/generator/OpenCypherCsvGenerator.java
Outdated
Show resolved
Hide resolved
core/data/src/main/java/uk/gov/gchq/gaffer/data/generator/OpenCypherCsvGenerator.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some broken asserts which do nothing need to be fixed.
core/data/src/test/java/uk/gov/gchq/gaffer/data/generator/OpenCypherCsvGeneratorTest.java
Outdated
Show resolved
Hide resolved
core/data/src/test/java/uk/gov/gchq/gaffer/data/generator/OpenCypherCsvGeneratorTest.java
Outdated
Show resolved
Hide resolved
core/data/src/test/java/uk/gov/gchq/gaffer/data/generator/OpenCypherCsvGeneratorTest.java
Outdated
Show resolved
Hide resolved
core/data/src/test/java/uk/gov/gchq/gaffer/data/generator/OpenCypherCsvGeneratorTest.java
Outdated
Show resolved
Hide resolved
core/data/src/test/java/uk/gov/gchq/gaffer/data/generator/OpenCypherCsvGeneratorTest.java
Outdated
Show resolved
Hide resolved
core/operation/src/test/java/uk/gov/gchq/gaffer/operation/impl/output/ToOpenCypherCsvTest.java
Outdated
Show resolved
Hide resolved
core/operation/src/test/java/uk/gov/gchq/gaffer/operation/impl/output/ToOpenCypherCsvTest.java
Show resolved
Hide resolved
.../test/java/uk/gov/gchq/gaffer/store/operation/handler/output/ToOpenCypherCsvHandlerTest.java
Outdated
Show resolved
Hide resolved
core/data/src/main/java/uk/gov/gchq/gaffer/data/generator/OpenCypherCsvGenerator.java
Outdated
Show resolved
Hide resolved
core/data/src/main/java/uk/gov/gchq/gaffer/data/generator/CsvGenerator.java
Outdated
Show resolved
Hide resolved
core/data/src/main/java/uk/gov/gchq/gaffer/data/generator/OpenCypherCsvGenerator.java
Outdated
Show resolved
Hide resolved
core/data/src/main/java/uk/gov/gchq/gaffer/data/generator/OpenCypherCsvGenerator.java
Outdated
Show resolved
Hide resolved
core/data/src/main/java/uk/gov/gchq/gaffer/data/generator/OpenCypherCsvGenerator.java
Outdated
Show resolved
Hide resolved
core/data/src/main/java/uk/gov/gchq/gaffer/data/generator/OpenCypherCsvGenerator.java
Show resolved
Hide resolved
.../test/java/uk/gov/gchq/gaffer/store/operation/handler/output/ToOpenCypherCsvHandlerTest.java
Outdated
Show resolved
Hide resolved
.../test/java/uk/gov/gchq/gaffer/store/operation/handler/output/ToOpenCypherCsvHandlerTest.java
Outdated
Show resolved
Hide resolved
.../src/main/java/uk/gov/gchq/gaffer/store/operation/handler/output/ToOpenCypherCsvHandler.java
Outdated
Show resolved
Hide resolved
.../src/main/java/uk/gov/gchq/gaffer/store/operation/handler/output/ToOpenCypherCsvHandler.java
Outdated
Show resolved
Hide resolved
.../src/main/java/uk/gov/gchq/gaffer/store/operation/handler/output/ToOpenCypherCsvHandler.java
Outdated
Show resolved
Hide resolved
//Then | ||
final List<String> resultList = Lists.newArrayList(results); | ||
final List<String> expected = Arrays.asList( | ||
":ID,:LABEL,:TYPE,:START_ID,:END_ID,count:Integer,DIRECTED:Boolean", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently this says Integer
rather than Int
, but it will be fixed by #2726
No description provided.