/// <summary> /// 线程参数 /// </summary> /// <param name="searcher">绑定结果池的分词搜索器</param> /// <param name="checkLessWord">未匹配分词自定义过滤处理</param> /// <param name="checkLess">未匹配分词自定义过滤处理</param> public ThreadParameter(StaticSearcher <keyType> searcher, CheckLessWord checkLessWord = null, CheckLess checkLess = null) { this.searcher = searcher; this.checkLessWord = checkLessWord; wordQuery = new WordQuery(searcher); queue = new Queue(searcher); }
/// <summary> /// 初始化添加数据 /// </summary> /// <param name="searcher">绑定结果池的分词搜索器</param> internal InitializeAdder(StaticSearcher <keyType> searcher) : base(searcher) { this.searcher = searcher; }
/// <summary> /// 初始化添加数据 /// </summary> /// <param name="searcher">绑定结果池的分词搜索器</param> internal Queue(StaticSearcher <keyType> searcher) : base(searcher) { this.searcher = searcher; }
/// <summary> /// 初始化添加数据 /// </summary> /// <param name="searcher">搜索器</param> protected WordSegmenterBase(StaticSearcher searcher) { this.searcher = searcher; charTypeData = searcher.trieGraph.CharTypeData.Byte; }
/// <summary> /// 数据分词处理 /// </summary> /// <param name="searcher">搜索器</param> protected WordSegmenter(StaticSearcher searcher) : base(searcher) { }
/// <summary> /// 初始化添加数据 /// </summary> /// <param name="searcher">绑定结果池的分词搜索器</param> internal WordQuery(StaticSearcher <keyType> searcher) : base(searcher) { this.searcher = searcher; }
/// <summary> /// 线程参数 /// </summary> /// <param name="searcher">绑定结果池的分词搜索器</param> public ThreadParameter(StaticSearcher <keyType> searcher) { this.searcher = searcher; wordQuery = new WordQuery(searcher); queue = new Queue(searcher); }