-
Notifications
You must be signed in to change notification settings - Fork 86
#786 Make Cobol processor return the number of records processed. #787
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
Conversation
WalkthroughThe processor API now returns a Long record count. CobolProcessor.process and StreamProcessor.processStream signatures changed from Unit to Long. StreamProcessor counts processed records and returns the total. Tests were updated to capture and assert the count. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor Client
participant CP as CobolProcessor
participant SP as StreamProcessor
participant OS as OutputStream
Client->>CP: process(inputStream, outputStream)
CP->>SP: processStream(..., outputStream): Long
rect rgb(230,245,255)
note right of SP: Loop per record
loop For each record
SP->>SP: extract + transform
SP->>OS: write(record)
SP->>SP: recordCount += 1
end
end
SP-->>CP: return recordCount: Long
CP-->>Client: return recordCount: Long
note over Client,CP: Caller can use total processed count
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (3)
🧰 Additional context used🧬 Code graph analysis (1)cobol-parser/src/test/scala/za/co/absa/cobrix/cobol/processor/CobolProcessorBuilderSuite.scala (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (5)
🔇 Additional comments (5)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
JaCoCo code coverage report - 'cobol-parser'
|
JaCoCo code coverage report - 'spark-cobol'
|
Closes #786
Summary by CodeRabbit