亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? multifilter.java

?? 個人Blog java編寫的Blog可以直接使用!
?? JAVA
字號:
/**
 * MultiFilter.java
 *
 * Copyright (c) 2000 Douglass R. Cutting.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */

package com.liusoft.dlog4j.search;

import java.io.IOException;
import java.util.ArrayList;
import java.util.BitSet;
import java.util.List;

import org.apache.lucene.index.IndexReader;
import org.apache.lucene.search.Filter;

/**
 * A Filter that logically combines multiple other Filters. An arbitrary
 * number of Filter objects can be added to each MultiFilter. When a Query is
 * executed with a MultiFilter, each Document in the HitList must pass every
 * Filter in the MultiFilter filter list.<p>
 *
 * For example, consider a MultiFilter that is created with a FilterX filter
 * and FilterY filter. When a search is executed with the MultiFilter, in order
 * for Document A to appear in the results, it must pass both the FilterX
 * <b>and</b> FilterY filters.<p>
 *
 * If no Filter objects are added to a MultiFilter before it is used in a
 * search, this will have the affect of filtering out all search results.
 *
 * @author Matt Tucker (matt@coolservlets.com)
 */
public class MultiFilter extends org.apache.lucene.search.Filter {

	/**
     * An ArrayList to store the filters that are part of this MultiFilter. We
     * use an ArrayList instead of a Vector for increased performance. If you
     * require JDK1.1 support, change to a Vector.
     */
    private List filterList;

    /**
     * Creates a new MultiFilter.
     */
    public MultiFilter() {
        filterList = new ArrayList();
    }

    /**
     * Creates a new MultiFilter with the specified initial capacity. Providing
     * an initial capacity equal to the size of the eventual MultiFilter size
     * provides a slight performance advantage over letting the MultiFilter
     * grow automatically.
     *
     * @param initialCapacity an initial capacity size for the MultiFilter.
     */
    public MultiFilter(int initialCapacity) {
        filterList = new ArrayList(initialCapacity);
    }

    /**
     * Adds a filter to the MuliFilter filter list.
     *
     * @param filter a Filter to add to the MultiFilter filter list.
     */
    public void add(Filter filter) {
        filterList.add(filter);
    }

    public BitSet bits(IndexReader reader) throws IOException {
        //Iterate through list of filters and apply the boolean AND operation
        //on each bitSet. The AND operator has the affect that only documents
        //that are allowed by every single filter in the filter list will be
        //allowed by this MultiFilter.
        int filterListSize = filterList.size();
        if (filterListSize > 0) {
            BitSet bits = ((Filter)filterList.get(0)).bits(reader);
            for (int i=1; i<filterListSize; i++) {
                bits.and( ((Filter)filterList.get(i)).bits(reader) );
            }
            return bits;
        }
        //There are no filters defined. In this case, we return a new
        //BitSet that will filter out all documents. This is probably the most
        //consistent behavior with the Lucene API. It's also a lot more
        //efficient considering the BitSet implementation.
        else {
            return new BitSet(reader.maxDoc());
        }
    }
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲黄色录像片| 中文字幕乱码久久午夜不卡| 不卡视频一二三| 国产精品18久久久久久久网站| 三级不卡在线观看| 一区二区三区国产豹纹内裤在线 | 一区二区三区小说| 最新国产の精品合集bt伙计| 亚洲欧美综合色| 一区二区三区四区在线免费观看| 夜夜嗨av一区二区三区网页 | 国产一区二区三区电影在线观看| 日本不卡一二三| 国产综合色产在线精品| 国产.欧美.日韩| 一本一本大道香蕉久在线精品| 色呦呦国产精品| 4438x成人网最大色成网站| 欧美一区二区精美| 久久精品亚洲精品国产欧美| 国产精品免费久久| 亚洲电影中文字幕在线观看| 精品亚洲成a人| 99久久综合精品| 欧美日韩不卡一区| 精品国产sm最大网站免费看| 亚洲成av人在线观看| 亚洲图片一区二区| 国产黑丝在线一区二区三区| 色综合天天综合| 欧美成人video| 一区在线中文字幕| 久久精工是国产品牌吗| 99热这里都是精品| 欧美一级黄色录像| 亚洲黄色小视频| 久久精品国产一区二区三区免费看| 国产91综合网| 91精品福利在线一区二区三区| 国产精品久久久久久久久免费相片 | 不卡av电影在线播放| 欧美日韩在线播放一区| 国产欧美一区二区精品秋霞影院| 亚洲综合久久久| 国产成人a级片| 日韩网站在线看片你懂的| 中文字幕亚洲成人| 国内精品不卡在线| 4438x亚洲最大成人网| 亚洲欧洲成人自拍| 国产传媒欧美日韩成人| 日韩欧美一二三区| 亚洲成av人片一区二区梦乃| av不卡免费电影| 国产视频一区二区在线观看| 奇米色777欧美一区二区| 色婷婷国产精品久久包臀| 国产免费观看久久| 国模套图日韩精品一区二区| 91精品国产91久久综合桃花| 亚洲主播在线观看| 在线观看av一区二区| 亚洲天堂成人在线观看| 成人h精品动漫一区二区三区| 久久伊人蜜桃av一区二区| 日本不卡高清视频| 欧美精品丝袜中出| 日韩精品久久久久久| 欧美在线不卡视频| 一区二区三区四区乱视频| 91网页版在线| 玉米视频成人免费看| 色94色欧美sute亚洲线路一ni| 中文字幕在线播放不卡一区| 福利电影一区二区| 国产精品免费免费| 91蜜桃在线观看| 亚洲精品国产成人久久av盗摄 | 人人精品人人爱| 欧美日韩国产综合久久| 午夜在线成人av| 欧美一区二区女人| 麻豆91在线看| 久久久久一区二区三区四区| 大陆成人av片| 亚洲欧美一区二区三区久本道91| 一本一本大道香蕉久在线精品 | 91久久免费观看| 亚洲自拍偷拍av| 日韩一区二区三区四区| 狠狠色狠狠色综合系列| 久久久久九九视频| 97超碰欧美中文字幕| 亚洲自拍都市欧美小说| 欧美一区日韩一区| 国产精华液一区二区三区| 国产精品欧美一区二区三区| 色婷婷精品久久二区二区蜜臂av| 亚洲一二三区在线观看| 91精品国产日韩91久久久久久| 狠狠色丁香久久婷婷综合丁香| 久久久精品天堂| 色偷偷久久一区二区三区| 日本视频免费一区| 国产欧美一区二区三区鸳鸯浴| 色呦呦一区二区三区| 蜜桃精品视频在线| 亚洲丝袜另类动漫二区| 91精品在线一区二区| 丁香另类激情小说| 日韩电影一区二区三区四区| 2023国产精品自拍| 欧美在线不卡视频| 成人午夜免费电影| 日韩激情在线观看| 一区二区成人在线视频| 精品99999| 欧美中文字幕一区| 国产成人av影院| 视频一区欧美日韩| 亚洲欧美另类综合偷拍| 亚洲精品一区二区三区影院| 91国内精品野花午夜精品| 国产一区二区精品久久99| 亚洲成在人线免费| 中文字幕日韩精品一区| 26uuu国产日韩综合| 欧美日韩高清一区| 99re在线精品| 国产乱国产乱300精品| 日韩电影在线看| 亚洲地区一二三色| 一片黄亚洲嫩模| √…a在线天堂一区| 久久日一线二线三线suv| 欧美群妇大交群的观看方式| 91麻豆国产福利精品| 高清成人免费视频| 国产精品一区二区在线观看网站| 日韩成人一区二区| 亚洲一级二级三级| 亚洲国产欧美日韩另类综合 | 亚洲国产精品久久人人爱| 国产精品福利一区二区| 国产日韩高清在线| 日本一区二区三区dvd视频在线| 26uuuu精品一区二区| 精品久久久久久无| 日韩精品在线一区二区| 日韩美女一区二区三区| 日韩午夜激情av| 精品av综合导航| 久久精品人人做人人爽97| 久久这里只有精品首页| 久久综合精品国产一区二区三区| 精品久久久影院| 久久久久久一级片| 国产欧美精品一区二区色综合 | 激情五月激情综合网| 国内精品视频666| 国产一区二区三区在线观看精品| 国产一区二区三区四| 国产成人精品综合在线观看| 国产·精品毛片| 日本高清不卡在线观看| 欧美日韩亚洲国产综合| 91精品国产综合久久久蜜臀图片 | 国产精品一卡二| 成人精品鲁一区一区二区| 91在线国产福利| 91精品国产麻豆国产自产在线 | 国产精品免费久久久久| 一区二区三区国产精品| 日韩成人av影视| 国产a区久久久| 在线一区二区观看| 欧美一区二区三区免费| 夜夜嗨av一区二区三区四季av| 亚洲午夜日本在线观看| 美女视频一区二区| 国产不卡视频在线播放| 91福利在线观看| 日韩亚洲电影在线| 中文无字幕一区二区三区| 亚洲国产一区二区视频| 国产真实乱子伦精品视频| 91啦中文在线观看| 日韩欧美成人午夜| 亚洲欧美综合网| 奇米精品一区二区三区四区| 成人美女在线视频| 91麻豆精品国产综合久久久久久 | 91色九色蝌蚪| 日韩三级精品电影久久久 | 欧美影院一区二区| 国产清纯在线一区二区www| 视频一区在线播放| 成人av网站免费| 欧美精品一区二区久久婷婷| 亚洲五码中文字幕|