我有一个非常大的xlsx文件,其中包含大量数据,需要实现搜索选项。我已经使用了Apache POI jar和jxl jar来使行和列之间的搜索成为可能。但是,在大数据之间遍历需要花费很长时间,是否有任何jar文件或其他概念可用于更快地在Excel文件上进行搜索...
String searchValue="my_value_to_search";
for (int i = 0; i < sheet.getColumns(); i++) {
for (int j = 0; j < sheet.getRows(); j++) {
value = sheet.getCell(i, j);
valueType = value.getType();
String val=getCellType(valueType, value);
if (val != null&&val==searchValue) {
// To do manipulation.
}
}
}