public interface PhraseHandler
Phrase
tree.
Custom traversal/modification of phrases can be created by implementing this interface and passing it to
Phrase.rewrite(PhraseHandler)
or Phrase.rewriteChildren(PhraseHandler)
.
Modifier and Type | Method and Description |
---|---|
Phrase |
handlePhrase(Phrase phrase)
Method called for handling an encountered
Phrase during traversal. |
Phrase handlePhrase(Phrase phrase)
Phrase
during traversal.
Return the passed in phrase
if modified in place or no modification to tree should be made.
Return a new Phrase
instance to replace the passed in phrase
in the query tree.
Return null
to remove the phrase from the tree.
NOTE: returning a new Phrase
instance or null
will result in stopping any recursive traversal.
Copyright © 2018 Attivio, Inc. All Rights Reserved.
PATENT NOTICE: Attivio, Inc. Software Related Patents. With respect to the Attivio software product(s) being used, the following patents apply: Querying Joined Data Within A Search Engine Index: United States Patent No.(s): 8,073,840. Ordered Processing of Groups of Messages: U.S. Patent No.(s) 8,495,656. Signal processing approach to sentiment analysis for entities in documents: U.S. Patent No.(s) 8,725,494. Other U.S. and International Patents Pending.