You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a developer, I need to create a new version of the CsvReader component with improved memory management. It can be called BufferedCsvReader
This new component should be able to read a specified number of rows at a time and indicate if there are more rows to read, preventing the entire file from being loaded into memory at once. Consider creating an interface to swap implementations so the new component can seamlessly replace the old one
Consider that the actual CvsReader is created using this code:
// Save the incoming file into a temp location then.. StringfilePath = "path/to/your/large/file.txt";
intbufferSize = 8192;
try (BufferedReaderreader = newBufferedReader(newInputStreamReader(newFileInputStream(filePath), Charset.forName("UTF-8")), bufferSize)) {
Stringline;
while ((line = reader.readLine()) != null) {
// Process each line as it is readSystem.out.println(line);
}
} catch (IOExceptione) {
e.printStackTrace();
}
Proposed Objective
Core Features
Proposed Priority
Priority 2 - Important
Acceptance Criteria
BufferedCsvReader: Implement a new BufferedCsvReader component that can read a specified number of rows from a CSV file at a time.
Memory Efficiency: Verify that the component does not load the entire file into memory.
External Links... Slack Conversations, Support Tickets, Figma Designs, etc.
No response
Assumptions & Initiation Needs
No response
Quality Assurance Notes & Workarounds
No response
Sub-Tasks & Estimates
No response
The text was updated successfully, but these errors were encountered:
Parent Issue
#29482
Task
As a developer, I need to create a new version of the CsvReader component with improved memory management. It can be called BufferedCsvReader
This new component should be able to read a specified number of rows at a time and indicate if there are more rows to read, preventing the entire file from being loaded into memory at once. Consider creating an interface to swap implementations so the new component can seamlessly replace the old one
Consider that the actual CvsReader is created using this code:
Consider replacing it with this:
Proposed Objective
Core Features
Proposed Priority
Priority 2 - Important
Acceptance Criteria
External Links... Slack Conversations, Support Tickets, Figma Designs, etc.
No response
Assumptions & Initiation Needs
No response
Quality Assurance Notes & Workarounds
No response
Sub-Tasks & Estimates
No response
The text was updated successfully, but these errors were encountered: