-
- All Implemented Interfaces:
public interface TermIndexVisitorDesc: 基于词条倒排索引搜索的访问者 Mail: chk19940609@gmail.com Created by IceMimosa Date: 2017/1/12
-
-
Method Summary
Modifier and Type Method Description abstract UnitstartRound()开始一轮词条匹配。 abstract Booleanvisit(TermIndexEntry entry, String text, Integer pos)匹配到一个索引条目,由访问者确定是否是可接受的匹配项。 索引条目 entry 下的items一定包含一个或多个索引对象 abstract Integerposition()visit 接受某个索引项之后当前匹配的指针位置 abstract UnitendVisit(TermIndexEntry entry, String text, Integer pos)结束索引访问 abstract UnitendRound()结束一轮词条匹配。 abstract BooleanhasResult()是否匹配上了结果 abstract Divisiondevision()获取访问后最终匹配结果 abstract IntegermatchCount()abstract IntegerfullMatchCount()abstract IntegerendPosition()获取最终匹配结果的终止位置 abstract Unitreset()状态复位 -
-
Method Detail
-
startRound
abstract Unit startRound()
开始一轮词条匹配。
-
visit
abstract Boolean visit(TermIndexEntry entry, String text, Integer pos)
匹配到一个索引条目,由访问者确定是否是可接受的匹配项。 索引条目 entry 下的items一定包含一个或多个索引对象
-
endVisit
abstract Unit endVisit(TermIndexEntry entry, String text, Integer pos)
结束索引访问
-
matchCount
abstract Integer matchCount()
-
fullMatchCount
abstract Integer fullMatchCount()
-
endPosition
abstract Integer endPosition()
获取最终匹配结果的终止位置
-
-
-
-