net.obsearch.example
Class AbstractExampleGeneral

java.lang.Object
  extended by net.obsearch.example.AbstractExampleGeneral
Direct Known Subclasses:
AbstractGHSExample

public abstract class AbstractExampleGeneral
extends Object


Nested Class Summary
protected static class AbstractExampleGeneral.Mode
          things the program can do
 
Field Summary
protected  File database
           
protected  int databaseSize
          Database max size
protected  boolean help
          Help message
protected  File indexFolder
          Folder where the index will be stored
protected static Logger logger
          Logging provided by Java
protected  AbstractExampleGeneral.Mode mode
          Program mode
protected  File query
           
protected  int querySize
          Query count.
 
Constructor Summary
AbstractExampleGeneral(String[] args)
           
 
Method Summary
protected abstract  void create()
           
 void doIt(String[] args)
           
 void init()
           
protected abstract  void intrinsic()
           
protected  int read(byte[] buffer, InputStreamReader r)
           
protected abstract  void search()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

indexFolder

protected File indexFolder
Folder where the index will be stored


database

protected File database

query

protected File query

databaseSize

protected int databaseSize
Database max size


querySize

protected int querySize
Query count.


help

protected boolean help
Help message


mode

protected AbstractExampleGeneral.Mode mode
Program mode


logger

protected static Logger logger
Logging provided by Java

Constructor Detail

AbstractExampleGeneral

public AbstractExampleGeneral(String[] args)
                       throws IOException,
                              OBStorageException,
                              OBException,
                              IllegalAccessException,
                              InstantiationException,
                              PivotsUnavailableException
Throws:
IOException
OBStorageException
OBException
IllegalAccessException
InstantiationException
PivotsUnavailableException
Method Detail

init

public void init()
          throws IOException
Throws:
IOException

create

protected abstract void create()
                        throws FileNotFoundException,
                               OBStorageException,
                               OBException,
                               IOException,
                               IllegalAccessException,
                               InstantiationException,
                               PivotsUnavailableException
Throws:
FileNotFoundException
OBStorageException
OBException
IOException
IllegalAccessException
InstantiationException
PivotsUnavailableException

search

protected abstract void search()
                        throws FileNotFoundException,
                               OBStorageException,
                               NotFrozenException,
                               IllegalAccessException,
                               InstantiationException,
                               OBException,
                               IOException
Throws:
FileNotFoundException
OBStorageException
NotFrozenException
IllegalAccessException
InstantiationException
OBException
IOException

intrinsic

protected abstract void intrinsic()
                           throws IllegalIdException,
                                  IllegalAccessException,
                                  InstantiationException,
                                  OBException,
                                  FileNotFoundException,
                                  IOException
Throws:
IllegalIdException
IllegalAccessException
InstantiationException
OBException
FileNotFoundException
IOException

doIt

public void doIt(String[] args)
          throws IOException,
                 OBStorageException,
                 OBException,
                 IllegalAccessException,
                 InstantiationException,
                 PivotsUnavailableException
Throws:
IOException
OBStorageException
OBException
IllegalAccessException
InstantiationException
PivotsUnavailableException

read

protected int read(byte[] buffer,
                   InputStreamReader r)
            throws IOException
Throws:
IOException


Copyright © 2007-2011 Arnoldo Jose Muller Molina. All Rights Reserved.