de.folt.test.testdata
Class TestDataReader

java.lang.Object
  extended by de.folt.test.testdata.TestDataReader

public class TestDataReader
extends java.lang.Object

Author:
klemens To change the template for this generated type comment go to Window - Preferences - Java - Code Generation - Code and Comments

Constructor Summary
TestDataReader()
           
 
Method Summary
static void main(java.lang.String[] args)
          main
static StringPartitionedFuzzyNodeTree<java.lang.String> readTestdata(java.lang.String fileName, int iKeyLen)
          readTestdata read the test data and compile them into a StringPartitionedFuzzyNodeTree
static void searchTestdata(java.lang.String fileName, int iKeyLen, int similarity, StringPartitionedFuzzyNodeTree<java.lang.String> root, int searchPercent)
          searchTestdata search the test data with similarity
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestDataReader

public TestDataReader()
Method Detail

main

public static void main(java.lang.String[] args)
main

Parameters:
args -

readTestdata

public static StringPartitionedFuzzyNodeTree<java.lang.String> readTestdata(java.lang.String fileName,
                                                                            int iKeyLen)
readTestdata read the test data and compile them into a StringPartitionedFuzzyNodeTree

Parameters:
fileName - file name to read
iKeyLen - key length for fuzzy node keys
Returns:
the root StringPartitionedFuzzyNodeTree

searchTestdata

public static void searchTestdata(java.lang.String fileName,
                                  int iKeyLen,
                                  int similarity,
                                  StringPartitionedFuzzyNodeTree<java.lang.String> root,
                                  int searchPercent)
searchTestdata search the test data with similarity

Parameters:
fileName - file name to read
iKeyLen - key length for fuzzy node keys
similarity - search similarity
searchPercent - % of segments to be searched from total records read