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

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

?? sortfield.java

?? lucene-2.4.0 是一個全文收索的工具包
?? JAVA
字號:
package org.apache.lucene.search;/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements.  See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License.  You may obtain a copy of the License at * *     http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */import java.io.Serializable;import java.util.Locale;/** * Stores information about how to sort documents by terms in an individual * field.  Fields must be indexed in order to sort by them. * * <p>Created: Feb 11, 2004 1:25:29 PM * * @since   lucene 1.4 * @version $Id: SortField.java 695514 2008-09-15 15:42:11Z otis $ * @see Sort */public class SortFieldimplements Serializable {  /** Sort by document score (relevancy).  Sort values are Float and higher   * values are at the front. */  public static final int SCORE = 0;  /** Sort by document number (index order).  Sort values are Integer and lower   * values are at the front. */  public static final int DOC = 1;  /** Guess type of sort based on field contents.  A regular expression is used   * to look at the first term indexed for the field and determine if it   * represents an integer number, a floating point number, or just arbitrary   * string characters. */  public static final int AUTO = 2;  /** Sort using term values as Strings.  Sort values are String and lower   * values are at the front. */  public static final int STRING = 3;  /** Sort using term values as encoded Integers.  Sort values are Integer and   * lower values are at the front. */  public static final int INT = 4;  /** Sort using term values as encoded Floats.  Sort values are Float and   * lower values are at the front. */  public static final int FLOAT = 5;  /** Sort using term values as encoded Longs.  Sort values are Long and   * lower values are at the front. */  public static final int LONG = 6;  /** Sort using term values as encoded Doubles.  Sort values are Double and   * lower values are at the front. */  public static final int DOUBLE = 7;    /**   * Sort using term values as encoded Shorts.  Sort values are shorts and lower values are at the front   */  public static final int SHORT = 8;  /** Sort using a custom Comparator.  Sort values are any Comparable and   * sorting is done according to natural order. */  public static final int CUSTOM = 9;  /**   * Sort using term values as encoded bytes.  Sort values are bytes and lower values are at the front   */  public static final int BYTE = 10;  // IMPLEMENTATION NOTE: the FieldCache.STRING_INDEX is in the same "namespace"  // as the above static int values.  Any new values must not have the same value  // as FieldCache.STRING_INDEX.  /** Represents sorting by document score (relevancy). */  public static final SortField FIELD_SCORE = new SortField (null, SCORE);  /** Represents sorting by document number (index order). */  public static final SortField FIELD_DOC = new SortField (null, DOC);  private String field;  private int type = AUTO;  // defaults to determining type dynamically  private Locale locale;    // defaults to "natural order" (no Locale)  boolean reverse = false;  // defaults to natural order  private SortComparatorSource factory;  /** Creates a sort by terms in the given field where the type of term value   * is determined dynamically ({@link #AUTO AUTO}).   * @param field Name of field to sort by, cannot be <code>null</code>.   */  public SortField (String field) {    this.field = field.intern();  }  /** Creates a sort, possibly in reverse, by terms in the given field where   * the type of term value is determined dynamically ({@link #AUTO AUTO}).   * @param field Name of field to sort by, cannot be <code>null</code>.   * @param reverse True if natural order should be reversed.   */  public SortField (String field, boolean reverse) {    this.field = field.intern();    this.reverse = reverse;  }  /** Creates a sort by terms in the given field with the type of term   * values explicitly given.   * @param field  Name of field to sort by.  Can be <code>null</code> if   *               <code>type</code> is SCORE or DOC.   * @param type   Type of values in the terms.   */  public SortField (String field, int type) {    this.field = (field != null) ? field.intern() : field;    this.type = type;  }  /** Creates a sort, possibly in reverse, by terms in the given field with the   * type of term values explicitly given.   * @param field  Name of field to sort by.  Can be <code>null</code> if   *               <code>type</code> is SCORE or DOC.   * @param type   Type of values in the terms.   * @param reverse True if natural order should be reversed.   */  public SortField (String field, int type, boolean reverse) {    this.field = (field != null) ? field.intern() : field;    this.type = type;    this.reverse = reverse;  }  /** Creates a sort by terms in the given field sorted   * according to the given locale.   * @param field  Name of field to sort by, cannot be <code>null</code>.   * @param locale Locale of values in the field.   */  public SortField (String field, Locale locale) {    this.field = field.intern();    this.type = STRING;    this.locale = locale;  }  /** Creates a sort, possibly in reverse, by terms in the given field sorted   * according to the given locale.   * @param field  Name of field to sort by, cannot be <code>null</code>.   * @param locale Locale of values in the field.   */  public SortField (String field, Locale locale, boolean reverse) {    this.field = field.intern();    this.type = STRING;    this.locale = locale;    this.reverse = reverse;  }  /** Creates a sort with a custom comparison function.   * @param field Name of field to sort by; cannot be <code>null</code>.   * @param comparator Returns a comparator for sorting hits.   */  public SortField (String field, SortComparatorSource comparator) {    this.field = (field != null) ? field.intern() : field;    this.type = CUSTOM;    this.factory = comparator;  }  /** Creates a sort, possibly in reverse, with a custom comparison function.   * @param field Name of field to sort by; cannot be <code>null</code>.   * @param comparator Returns a comparator for sorting hits.   * @param reverse True if natural order should be reversed.   */  public SortField (String field, SortComparatorSource comparator, boolean reverse) {    this.field = (field != null) ? field.intern() : field;    this.type = CUSTOM;    this.reverse = reverse;    this.factory = comparator;  }  /** Returns the name of the field.  Could return <code>null</code>   * if the sort is by SCORE or DOC.   * @return Name of field, possibly <code>null</code>.   */  public String getField() {    return field;  }  /** Returns the type of contents in the field.   * @return One of the constants SCORE, DOC, AUTO, STRING, INT or FLOAT.   */  public int getType() {    return type;  }  /** Returns the Locale by which term values are interpreted.   * May return <code>null</code> if no Locale was specified.   * @return Locale, or <code>null</code>.   */  public Locale getLocale() {    return locale;  }  /** Returns whether the sort should be reversed.   * @return  True if natural order should be reversed.   */  public boolean getReverse() {    return reverse;  }  public SortComparatorSource getFactory() {    return factory;  }  public String toString() {    StringBuffer buffer = new StringBuffer();    switch (type) {      case SCORE: buffer.append("<score>");                  break;      case DOC: buffer.append("<doc>");                break;      case CUSTOM:                buffer.append("<custom:\"").append(field).append("\": ").append(factory).append('>');                break;      default:               buffer.append('\"').append(field).append('\"');               break;    }    if (locale != null) buffer.append('(').append(locale).append(')');    if (reverse) buffer.append('!');    return buffer.toString();  }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
理论片日本一区| 欧美色综合久久| 欧美成人aa大片| 日本一区二区三区dvd视频在线| 亚洲男人的天堂一区二区| 久久激情五月激情| 欧美视频精品在线| 中文字幕日本不卡| 国产传媒日韩欧美成人| 欧美一区二区视频观看视频| 亚洲色图在线播放| 成人av影院在线| www精品美女久久久tv| 午夜亚洲福利老司机| 91在线视频在线| 亚洲国产高清在线| 国产精品一二一区| 欧美精品一区二区三区视频| 日本亚洲电影天堂| 欧美老年两性高潮| 亚洲国产日韩一区二区| 色综合久久九月婷婷色综合| 亚洲国产高清aⅴ视频| 国产在线精品一区二区不卡了| 欧美日韩成人在线一区| 一区二区理论电影在线观看| 99re热视频这里只精品| 国产精品国产三级国产专播品爱网| 极品少妇一区二区| 精品国产91洋老外米糕| 麻豆久久久久久| 亚洲男同性恋视频| 97se亚洲国产综合自在线| 亚洲视频一区在线| 欧美自拍偷拍一区| 亚洲成人午夜电影| 欧美一区二区在线观看| 蜜桃传媒麻豆第一区在线观看| 欧美一级日韩免费不卡| 久久国产精品露脸对白| www国产精品av| 成人高清视频免费观看| 一区二区在线观看视频| 欧美日韩成人激情| 毛片av一区二区| 久久久久青草大香线综合精品| 国产综合色视频| 国产精品成人午夜| 欧美亚洲一区二区在线| 日本视频一区二区三区| 久久综合丝袜日本网| 成人性生交大片免费看视频在线| 国产精品久久福利| 欧美日韩视频在线第一区| 免费在线观看一区| 国产精品美女久久久久aⅴ国产馆 国产精品美女久久久久av爽李琼 国产精品美女久久久久高潮 | 欧美一级黄色片| 精品一区二区三区欧美| 国产精品理伦片| 欧美美女一区二区在线观看| 久久精品国产秦先生| 亚洲国产精品黑人久久久| 欧美日韩在线综合| 国产一区二区在线视频| 亚洲男人的天堂在线aⅴ视频| 3d成人动漫网站| 9色porny自拍视频一区二区| 亚洲va欧美va国产va天堂影院| 精品日韩欧美一区二区| 91免费版在线| 国产在线精品免费av| 亚洲理论在线观看| 26uuu另类欧美亚洲曰本| 日本韩国视频一区二区| 寂寞少妇一区二区三区| 国产精品综合一区二区| 一区二区三区日韩欧美精品| 日韩天堂在线观看| 91精彩视频在线| 国产最新精品精品你懂的| 一区二区激情视频| 中文字幕 久热精品 视频在线 | 亚洲最新在线观看| 久久久久9999亚洲精品| 欧美日韩不卡一区| 91亚洲资源网| 国产福利一区在线| 丝袜脚交一区二区| 夜夜嗨av一区二区三区网页| 中文字幕av资源一区| 日韩一区二区三区四区| 欧美日韩美女一区二区| 日本韩国欧美在线| 99国产精品久久久久| 福利一区二区在线| 激情综合网av| 蜜桃视频一区二区三区在线观看| 一区二区三区欧美亚洲| 一区二区在线观看视频| 中文字幕永久在线不卡| 国产精品色在线| 国产精品视频免费看| 久久久久久久网| 久久久久久97三级| 国产亚洲成av人在线观看导航| 欧美α欧美αv大片| 日韩一区二区免费视频| 日韩一区二区在线免费观看| 欧美一区二区三区婷婷月色| 7777精品伊人久久久大香线蕉最新版| 一本一道久久a久久精品| 成人av影院在线| 91在线观看一区二区| 99精品视频一区| 91黄视频在线观看| 欧美曰成人黄网| 欧美日韩综合不卡| 884aa四虎影成人精品一区| 欧美日韩精品一区二区三区四区| 欧美三级视频在线| 91.com视频| 日韩久久免费av| 久久亚洲精品国产精品紫薇| 久久这里只有精品视频网| 日本一区二区三区在线观看| 中文av一区二区| 亚洲激情网站免费观看| 香蕉乱码成人久久天堂爱免费| 日韩高清一区在线| 国产精品中文字幕日韩精品| 高清beeg欧美| 91同城在线观看| 欧美高清视频一二三区| 精品久久国产字幕高潮| 国产视频911| 亚洲午夜精品久久久久久久久| 日韩制服丝袜先锋影音| 国产福利一区二区三区| 色综合天天综合网国产成人综合天| 欧美综合欧美视频| 久久中文字幕电影| 亚洲精品videosex极品| 毛片av一区二区三区| 岛国一区二区三区| 欧美日韩国产系列| 久久久久久久久久久久久夜| 亚洲欧美日韩久久| 精品一区二区三区在线播放视频 | 91网站最新地址| 9191成人精品久久| 国产欧美日韩亚州综合| 亚洲一区自拍偷拍| 国产精品一区二区在线观看不卡| 99精品1区2区| 久久婷婷色综合| 亚洲在线成人精品| 福利一区福利二区| 欧美日韩一区三区| 中文字幕在线视频一区| 免费国产亚洲视频| 欧美亚洲国产一区在线观看网站| 日韩色在线观看| 亚洲精品少妇30p| 国产91精品露脸国语对白| 欧美精品第1页| 亚洲乱码日产精品bd| 国产一区二区三区久久久 | 亚洲福利一区二区| 成人福利视频网站| 精品不卡在线视频| 三级一区在线视频先锋 | 天堂影院一区二区| 91在线观看成人| 欧美极品aⅴ影院| 国产在线播精品第三| 555夜色666亚洲国产免| 一区二区三区在线观看欧美| 成人黄页在线观看| 欧美精品一区二区三区在线播放 | 自拍av一区二区三区| 国产精品18久久久久久久久久久久 | 亚洲444eee在线观看| 99久久国产综合色|国产精品| 久久综合久久综合亚洲| 久久精品国产亚洲a| 欧美一区二区精品| 日韩成人精品视频| 欧美丰满少妇xxxbbb| 一区二区三区日韩精品视频| 91麻豆国产福利精品| 亚洲国产精品t66y| 成人一区二区三区视频| 国产午夜精品久久| 成人精品小蝌蚪| 中文字幕制服丝袜成人av | 国产精品综合久久| 欧美精品一区二区在线观看| 国产一区在线观看麻豆| 欧美精品一区二区三区在线播放| 国精产品一区一区三区mba桃花|