大きなスプレッドシートの読み込み中に java.lang.OutOfMemoryError を修正する方法

大きなスプレッドシートのロード中に java.lang.OutOfMemoryError を修正する方法

Aspose.Cells API は、スプレッドシートのロードおよび処理中のメモリ消費を最適化するためのメモリ設定を提供します。これらのオプションは、以下に示すように Workbook オブジェクトに巨大なデータ セットを含む大きなスプレッドシートを効率的に読み込むのにも役立ちます。

Java

 //Specify the LoadOptions

LoadOptions options = new LoadOptions();

//Set the memory preferences

options.setMemorySetting(MemorySetting.MEMORY_PREFERENCE);

//Instantiate the Workbook

//Load the Big Excel file having large Data set in it

Workbook book = new Workbook("sample.xlsx", options);