org.jdmp.lucene
Class LuceneIndex

java.lang.Object
  extended by org.jdmp.core.AbstractCoreObject
      extended by org.jdmp.core.algorithm.AbstractAlgorithm
          extended by org.jdmp.core.algorithm.indexer.AbstractIndexer
              extended by org.jdmp.lucene.LuceneIndex
All Implemented Interfaces:
Closeable, Flushable, Serializable, Cloneable, org.jdmp.core.algorithm.Algorithm, org.jdmp.core.algorithm.HasAlgorithmMap, org.jdmp.core.algorithm.HasAlgorithms, org.jdmp.core.algorithm.indexer.Indexer, org.jdmp.core.CoreObject, org.jdmp.core.variable.HasVariableMap, org.jdmp.core.variable.HasVariables, Clearable, Erasable, HasDescription, HasGUIObject, HasLabel

public class LuceneIndex
extends org.jdmp.core.algorithm.indexer.AbstractIndexer
implements Flushable, Closeable, Erasable

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jdmp.core.algorithm.Algorithm
org.jdmp.core.algorithm.Algorithm.EdgeDirection
 
Field Summary
 
Fields inherited from class org.jdmp.core.AbstractCoreObject
ALL, COLUMN, logger, ROW, X, Y, Z
 
Fields inherited from interface org.jdmp.core.algorithm.indexer.Indexer
INPUT, SCORE
 
Fields inherited from interface org.jdmp.core.algorithm.Algorithm
ALGORITHMARRAY, DIMENSION, IGNORENAN, SOURCE, TARGET
 
Constructor Summary
LuceneIndex()
           
LuceneIndex(File path)
           
LuceneIndex(File path, boolean readOnly)
           
 
Method Summary
 void add(org.jdmp.core.sample.Sample sample)
           
 void close()
           
 void erase()
           
 void flush()
           
 org.jdmp.core.sample.Sample get(int index)
           
 int getSize()
           
 void optimize()
           
 org.jdmp.core.dataset.DataSet search(List<String> query)
           
 org.jdmp.core.dataset.DataSet search(List<String> query, int count)
           
 org.jdmp.core.dataset.DataSet search(org.apache.lucene.search.Query query, int count)
           
 org.jdmp.core.dataset.DataSet search(String query)
           
 org.jdmp.core.dataset.DataSet search(String query, int count)
           
 
Methods inherited from class org.jdmp.core.algorithm.indexer.AbstractIndexer
add, add
 
Methods inherited from class org.jdmp.core.algorithm.AbstractAlgorithm
addVariableKey, calculate, calculate, calculate, calculate, calculateObjects, calculateObjects, calculateObjects, clear, getAlgorithms, getAsString, getDescription, getEdgeDirection, getEdgeLabel, getGUIObject, getInputKeys, getLabel, getMatrix, getOutputKeys, getVariableKeys, getVariables, notifyGUIObject, setAlgorithm, setDescription, setEdgeDirection, setEdgeLabel, setLabel, setMatrix, setObject, setVariable, setVariables, setVariables, toString
 
Methods inherited from class org.jdmp.core.AbstractCoreObject
showGUI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.ujmp.core.interfaces.HasGUIObject
showGUI
 

Constructor Detail

LuceneIndex

public LuceneIndex()
            throws Exception
Throws:
Exception

LuceneIndex

public LuceneIndex(File path)
            throws Exception
Throws:
Exception

LuceneIndex

public LuceneIndex(File path,
                   boolean readOnly)
            throws Exception
Throws:
Exception
Method Detail

add

public void add(org.jdmp.core.sample.Sample sample)
         throws Exception
Specified by:
add in interface org.jdmp.core.algorithm.indexer.Indexer
Throws:
Exception

getSize

public int getSize()
Specified by:
getSize in interface org.jdmp.core.algorithm.indexer.Indexer

get

public org.jdmp.core.sample.Sample get(int index)
                                throws Exception
Throws:
Exception

search

public org.jdmp.core.dataset.DataSet search(List<String> query)
                                     throws Exception
Throws:
Exception

search

public org.jdmp.core.dataset.DataSet search(List<String> query,
                                            int count)
                                     throws Exception
Throws:
Exception

search

public org.jdmp.core.dataset.DataSet search(String query)
                                     throws Exception
Specified by:
search in interface org.jdmp.core.algorithm.indexer.Indexer
Throws:
Exception

search

public org.jdmp.core.dataset.DataSet search(String query,
                                            int count)
                                     throws Exception
Throws:
Exception

search

public org.jdmp.core.dataset.DataSet search(org.apache.lucene.search.Query query,
                                            int count)
                                     throws Exception
Throws:
Exception

flush

public void flush()
           throws IOException
Specified by:
flush in interface Flushable
Throws:
IOException

optimize

public void optimize()
              throws IOException
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Throws:
IOException

erase

public void erase()
           throws IOException
Specified by:
erase in interface Erasable
Throws:
IOException


Copyright © 2009. All Rights Reserved.