public void loadData(int k) throws IOException{
		RecordManager recmanOfPoints = RecordManagerFactory.createRecordManager(DataOfPointParser.filename);
		PrimaryTreeMap<Long, byte[]> btOfPoints = recmanOfPoints.treeMap("treemap");
		PrintWriter pw = new PrintWriter(new BufferedOutputStream(new FileOutputStream(new File(filename))));
		Set<Long> keys = btOfPoints.keySet();
		Queue<Long> qLongs = new LinkedList<Long>();
		int timeToCommit = 0, constk = k;
		for(Long key : keys){
		//for(Long key = (long) 4000; key <= 5000; key ++){
			pw.print(key);
			k = constk;
			DataOfPoint dataOfPoint = new DataOfPoint();
			byte[] byteData = btOfPoints.find(key);
			dataOfPoint.loadFromBytes(byteData);
			HashSet<Long> cnt = new HashSet<Long>();
			cnt.add(key);
			for(Long id : dataOfPoint.delaunayIds){
				qLongs.offer(id);
				cnt.add(id);
				k ++;
			}
			while(!qLongs.isEmpty() && k > 0 && constk >= 0){
				Long id = qLongs.poll();
				byteData = btOfPoints.find(id);
				DataOfPoint tmpDataOfPoint = new DataOfPoint();
				tmpDataOfPoint.loadFromBytes(byteData);
				//ids.add(id);
				//lines.add(new Line(dataOfPoint.p.doublePoint(), tmpDataOfPoint.p.doublePoint()));
				pw.print(" " + id + " " + dataOfPoint.p.doublePoint().x + " " + dataOfPoint.p.doublePoint().y + " " 
						+ tmpDataOfPoint.p.doublePoint().x + " " + tmpDataOfPoint.p.doublePoint().y);
				for(Long tmpLong : tmpDataOfPoint.delaunayIds){
					if(cnt.contains(tmpLong) || qLongs.size() >= k)continue;
					qLongs.offer(tmpLong);
					cnt.add(tmpLong);
				}
				k --;
			}
			pw.println();
			//byte[] testdata = newDataOfLine.writeToBytes();
			timeToCommit ++;
			qLongs.clear();
		}
		recmanOfPoints.close();
		pw.close();
	}