org.jactr.core.module.declarative.search.local
Class DefaultSearchSystem

java.lang.Object
  extended by org.jactr.core.module.declarative.search.local.DefaultSearchSystem
All Implemented Interfaces:
ISearchSystem

public class DefaultSearchSystem
extends java.lang.Object
implements ISearchSystem


Field Summary
static org.apache.commons.logging.Log LOGGER
          logger definition
 
Constructor Summary
DefaultSearchSystem(IDeclarativeModule module)
           
 
Method Summary
 void clear()
           
 java.util.Collection<IChunk> findExact(ChunkTypeRequest pattern, java.util.Comparator<IChunk> sortRule)
          this implementation fails fast
 java.util.Collection<IChunk> findFuzzy(ChunkTypeRequest pattern, java.util.Comparator<IChunk> sortRule)
          find all I that match this pattern somewhat
 void index(IChunk chunk)
          index this object
 void unindex(IChunk chunk)
          remove this object from the index
 void update(IChunk chunk, java.lang.String slotName, java.lang.Object oldValue, java.lang.Object newValue)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGGER

public static final org.apache.commons.logging.Log LOGGER
logger definition

Constructor Detail

DefaultSearchSystem

public DefaultSearchSystem(IDeclarativeModule module)
Method Detail

clear

public void clear()
Specified by:
clear in interface ISearchSystem

findExact

public java.util.Collection<IChunk> findExact(ChunkTypeRequest pattern,
                                              java.util.Comparator<IChunk> sortRule)
this implementation fails fast

Specified by:
findExact in interface ISearchSystem
sortRule - may be null
Returns:
See Also:
ISearchSystem.findExact(ChunkTypeRequest, java.util.Comparator)

findFuzzy

public java.util.Collection<IChunk> findFuzzy(ChunkTypeRequest pattern,
                                              java.util.Comparator<IChunk> sortRule)
Description copied from interface: ISearchSystem
find all I that match this pattern somewhat

Specified by:
findFuzzy in interface ISearchSystem
Returns:

index

public void index(IChunk chunk)
Description copied from interface: ISearchSystem
index this object

Specified by:
index in interface ISearchSystem

unindex

public void unindex(IChunk chunk)
Description copied from interface: ISearchSystem
remove this object from the index

Specified by:
unindex in interface ISearchSystem

update

public void update(IChunk chunk,
                   java.lang.String slotName,
                   java.lang.Object oldValue,
                   java.lang.Object newValue)
Specified by:
update in interface ISearchSystem