Lucene2CSV

Class Lucene2CSV


public class Lucene2CSV
extends java.lang.Object

This class is used to write Lucene Indexed Data to the CSV file which can be used by any database or as for requirement of the user

Author:
rahul & sudipto

Field Summary

(package private) static String
file
(package private) static String
indexDir
(package private) String
str
(package private) Document
thisDoc
(package private) String
tmpStr
(package private) String
tmpStrNew

Constructor Summary

Lucene2CSV(String indexName, String fileName)
Constructor of the class to initialize indexName & fileName And call method to process on Lucene Index

Method Summary

void
processCSV()
method to process data present in the Lucene Index And reterive data from the index write in the file given By the user

Field Details

file

(package private) static String file


indexDir

(package private) static String indexDir


str

(package private)  String str


thisDoc

(package private)  Document thisDoc


tmpStr

(package private)  String tmpStr


tmpStrNew

(package private)  String tmpStrNew

Constructor Details

Lucene2CSV

public Lucene2CSV(String indexName,
                  String fileName)
            throws Exception
Constructor of the class to initialize indexName & fileName And call method to process on Lucene Index

Parameters:
indexName -
fileName -

Method Details

processCSV

public void processCSV()
            throws Exception
method to process data present in the Lucene Index And reterive data from the index write in the file given By the user