What data structure should I use to process huge data

I am parsing huge xhtml files and trying to play around with the contents in it. Basically the words in it, their position, etc. I tried using HashMap, ArayList, etc. All of them return OutOfMemory after loading data 130347. What data structure can be used to store huge data in JAVA.

+3
source share
4 answers

Consider using a SAX parser; this is less memory intensive.

+2
source

, , . , , , .. (, , , , .)

SAX, , . , , xml, , , .

+1

. , , , - .

tomcat/eclipse, : Eclipse "Java Heap Space" " "

+1

. , , , . PostgreSQL, MySQL, HSQLDB, .

0

Source: https://habr.com/ru/post/1744217/


All Articles