Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
P parabix-devel
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 9
    • Issues 9
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • cameron
  • parabix-devel
  • Wiki
  • CSVediting

CSVediting · Changes

Page history
Update CSVediting authored Feb 20, 2023 by cameron's avatar cameron
Show whitespace changes
Inline Side-by-side
Showing with 15 additions and 3 deletions
+15 -3
  • CSVediting.md CSVediting.md +15 -3
  • No files found.
CSVediting.md
View page @ e189efb3
......@@ -157,10 +157,22 @@ parameter to the compileRE method of the RE compiler.
Marker compileRE(RE * re, Marker initialMarkers);
```
If the marker stream returned by the RE_compiler has a one bit anywhere
within the column, then a match is found.
within fields belonging to the column, then a match is found.
Matches within the fields of the column can then be moved to the field separator position of the column, using the ```MatchedLinesKernel``` as shown above, but substituting the field separator stream in place of ```mLineBreakStream```.
Call this stream ```FieldMatchMarks```.
Given the ```FieldMatchMarks``` stream, then a mask covering the entire
field can be produced using logic similar to that for masks selecting rows.
The first step is to compute a stream ```MatchesByField``` by using the
```FilterByMask``` function with the field separator stream as the mask and ```FieldMatchMarks``` as the data stream. The second step is to compute
a stream marking field starts using the ```LineStartsKernel``` as shown above,
but again substituting the field separator stream in place of ```mLineBreakStream```.
The third step is to compute matched field starts used ```SpreadByMask``` with the field starts stream as the mask applied to ```MatchesByField```. Finally, the mask
covering matched fields can be computed using the ```LineSpansKernel``` applied
to the matched field starts and ```FieldMatchMarks```.
## Combining Masks
If masks are computed to edit out both a column and a row, these can be combined with a Pablo
createAnd operation and then one FilterByMask can be applied.
\ No newline at end of file
Clone repository
  • Bracket Matching
  • CSV Validation
  • CSVediting
  • CSVparsing
  • Character Code Compilers
  • KernelLibrary
  • Pablo
  • ParabixTransform
  • Parallel Deletion
  • Parallel Hashing
  • Performance Testing Script
  • Shuffle Pattern Library
  • StaticCCC
  • String Insertion
  • UCD: Unicode Property Database and Compilers
View All Pages