org.egothor.cache.apps
Class StaticFillerQueries

java.lang.Object
  extended by org.egothor.cache.apps.StaticFillerQueries

public class StaticFillerQueries
extends java.lang.Object

Console application that fills the static cache with query results until it is full.


Constructor Summary
StaticFillerQueries()
           
 
Method Summary
static void main(java.lang.String[] args)
          Prints to the console queries that are cached inside an query result cache.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaticFillerQueries

public StaticFillerQueries()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Prints to the console queries that are cached inside an query result cache. Takes four arguments - input file of queries, index location, page size for a query result page and the capacity of the static cache.

Input data file should have a format of tab separated fields of offset, page length and query.

Parameters:
args - the command line arguments
Throws:
java.lang.Exception - when a problem occurred