Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
The Cells class has exposed setMemorySetting and getMemorySetting methods, which can be used to optimize the memory usage for cell data, and hence decrease the overall memory cost. The following example shows how to write large data to a worksheet in optimized mode.
Java
//Instantiate a new Workbook
Workbook book = new Workbook();
//Set the memory preferences
book.getSettings().setMemorySetting(MemorySetting.MEMORY_PREFERENCE);
//To change the memory setting of existing sheets, please change memory setting for them manually:
Cells cells = book.getWorksheets().get(0).getCells();
cells.setMemorySetting(MemorySetting.MEMORY_PREFERENCE);
//Input large dataset into the cells of the worksheet.
//Your code goes here
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.