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

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

?? indexreader.java

?? lucene-2.4.0 是一個全文收索的工具包
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
      throw new UnsupportedOperationException("This reader does not support this method.");      }  }  /**   * Returns the time the index in the named directory was last modified.   * Do not use this to check whether the reader is still up-to-date, use   * {@link #isCurrent()} instead.    * @throws CorruptIndexException if the index is corrupt   * @throws IOException if there is a low-level IO error   */  public static long lastModified(String directory) throws CorruptIndexException, IOException {    return lastModified(new File(directory));  }  /**   * Returns the time the index in the named directory was last modified.    * Do not use this to check whether the reader is still up-to-date, use   * {@link #isCurrent()} instead.    * @throws CorruptIndexException if the index is corrupt   * @throws IOException if there is a low-level IO error   */  public static long lastModified(File fileDirectory) throws CorruptIndexException, IOException {    return ((Long) new SegmentInfos.FindSegmentsFile(fileDirectory) {        public Object doBody(String segmentFileName) {          return new Long(FSDirectory.fileModified(fileDirectory, segmentFileName));        }      }.run()).longValue();  }  /**   * Returns the time the index in the named directory was last modified.    * Do not use this to check whether the reader is still up-to-date, use   * {@link #isCurrent()} instead.    * @throws CorruptIndexException if the index is corrupt   * @throws IOException if there is a low-level IO error   */  public static long lastModified(final Directory directory2) throws CorruptIndexException, IOException {    return ((Long) new SegmentInfos.FindSegmentsFile(directory2) {        public Object doBody(String segmentFileName) throws IOException {          return new Long(directory2.fileModified(segmentFileName));        }      }.run()).longValue();  }  /**   * Reads version number from segments files. The version number is   * initialized with a timestamp and then increased by one for each change of   * the index.   *    * @param directory where the index resides.   * @return version number.   * @throws CorruptIndexException if the index is corrupt   * @throws IOException if there is a low-level IO error   */  public static long getCurrentVersion(String directory) throws CorruptIndexException, IOException {    return getCurrentVersion(new File(directory));  }  /**   * Reads version number from segments files. The version number is   * initialized with a timestamp and then increased by one for each change of   * the index.   *    * @param directory where the index resides.   * @return version number.   * @throws CorruptIndexException if the index is corrupt   * @throws IOException if there is a low-level IO error   */  public static long getCurrentVersion(File directory) throws CorruptIndexException, IOException {    Directory dir = FSDirectory.getDirectory(directory);    long version = getCurrentVersion(dir);    dir.close();    return version;  }  /**   * Reads version number from segments files. The version number is   * initialized with a timestamp and then increased by one for each change of   * the index.   *    * @param directory where the index resides.   * @return version number.   * @throws CorruptIndexException if the index is corrupt   * @throws IOException if there is a low-level IO error   */  public static long getCurrentVersion(Directory directory) throws CorruptIndexException, IOException {    return SegmentInfos.readCurrentVersion(directory);  }  /**   * Version number when this IndexReader was opened. Not implemented in the IndexReader base class.   * @throws UnsupportedOperationException unless overridden in subclass   */  public long getVersion() {    throw new UnsupportedOperationException("This reader does not support this method.");  }  /**<p>For IndexReader implementations that use   * TermInfosReader to read terms, this sets the   * indexDivisor to subsample the number of indexed terms   * loaded into memory.  This has the same effect as {@link   * IndexWriter#setTermIndexInterval} except that setting   * must be done at indexing time while this setting can be   * set per reader.  When set to N, then one in every   * N*termIndexInterval terms in the index is loaded into   * memory.  By setting this to a value > 1 you can reduce   * memory usage, at the expense of higher latency when   * loading a TermInfo.  The default value is 1.</p>   *   * <b>NOTE:</b> you must call this before the term   * index is loaded.  If the index is already loaded,    * an IllegalStateException is thrown.   * @throws IllegalStateException if the term index has already been loaded into memory   */  public void setTermInfosIndexDivisor(int indexDivisor) throws IllegalStateException {    throw new UnsupportedOperationException("This reader does not support this method.");  }  /** <p>For IndexReader implementations that use   *  TermInfosReader to read terms, this returns the   *  current indexDivisor.   *  @see #setTermInfosIndexDivisor */  public int getTermInfosIndexDivisor() {    throw new UnsupportedOperationException("This reader does not support this method.");  }  /**   * Check whether this IndexReader is still using the   * current (i.e., most recently committed) version of the   * index.  If a writer has committed any changes to the   * index since this reader was opened, this will return   * <code>false</code>, in which case you must open a new   * IndexReader in order to see the changes.  See the   * description of the <a href="IndexWriter.html#autoCommit"><code>autoCommit</code></a>   * flag which controls when the {@link IndexWriter}   * actually commits changes to the index.   *    * <p>   * Not implemented in the IndexReader base class.   * </p>   * @throws CorruptIndexException if the index is corrupt   * @throws IOException if there is a low-level IO error   * @throws UnsupportedOperationException unless overridden in subclass   */  public boolean isCurrent() throws CorruptIndexException, IOException {    throw new UnsupportedOperationException("This reader does not support this method.");  }  /**   * Checks is the index is optimized (if it has a single segment and    * no deletions).  Not implemented in the IndexReader base class.   * @return <code>true</code> if the index is optimized; <code>false</code> otherwise   * @throws UnsupportedOperationException unless overridden in subclass   */  public boolean isOptimized() {    throw new UnsupportedOperationException("This reader does not support this method.");  }    /**   *  Return an array of term frequency vectors for the specified document.   *  The array contains a vector for each vectorized field in the document.   *  Each vector contains terms and frequencies for all terms in a given vectorized field.   *  If no such fields existed, the method returns null. The term vectors that are   * returned my either be of type TermFreqVector or of type TermPositionsVector if   * positions or offsets have been stored.   *    * @param docNumber document for which term frequency vectors are returned   * @return array of term frequency vectors. May be null if no term vectors have been   *  stored for the specified document.   * @throws IOException if index cannot be accessed   * @see org.apache.lucene.document.Field.TermVector   */  abstract public TermFreqVector[] getTermFreqVectors(int docNumber)          throws IOException;  /**   *  Return a term frequency vector for the specified document and field. The   *  returned vector contains terms and frequencies for the terms in   *  the specified field of this document, if the field had the storeTermVector   *  flag set. If termvectors had been stored with positions or offsets, a    *  TermPositionsVector is returned.   *    * @param docNumber document for which the term frequency vector is returned   * @param field field for which the term frequency vector is returned.   * @return term frequency vector May be null if field does not exist in the specified   * document or term vector was not stored.   * @throws IOException if index cannot be accessed   * @see org.apache.lucene.document.Field.TermVector   */  abstract public TermFreqVector getTermFreqVector(int docNumber, String field)          throws IOException;  /**   * Load the Term Vector into a user-defined data structure instead of relying on the parallel arrays of   * the {@link TermFreqVector}.   * @param docNumber The number of the document to load the vector for   * @param field The name of the field to load   * @param mapper The {@link TermVectorMapper} to process the vector.  Must not be null   * @throws IOException if term vectors cannot be accessed or if they do not exist on the field and doc. specified.   *    */  abstract public void getTermFreqVector(int docNumber, String field, TermVectorMapper mapper) throws IOException;  /**   * Map all the term vectors for all fields in a Document   * @param docNumber The number of the document to load the vector for   * @param mapper The {@link TermVectorMapper} to process the vector.  Must not be null   * @throws IOException if term vectors cannot be accessed or if they do not exist on the field and doc. specified.   */  abstract public void getTermFreqVector(int docNumber, TermVectorMapper mapper) throws IOException;  /**   * Returns <code>true</code> if an index exists at the specified directory.   * If the directory does not exist or if there is no index in it.   * <code>false</code> is returned.   * @param  directory the directory to check for an index   * @return <code>true</code> if an index exists; <code>false</code> otherwise   */  public static boolean indexExists(String directory) {    return indexExists(new File(directory));  }  /**   * Returns <code>true</code> if an index exists at the specified directory.   * If the directory does not exist or if there is no index in it.   * @param  directory the directory to check for an index   * @return <code>true</code> if an index exists; <code>false</code> otherwise   */  public static boolean indexExists(File directory) {    return SegmentInfos.getCurrentSegmentGeneration(directory.list()) != -1;  }  /**   * Returns <code>true</code> if an index exists at the specified directory.   * If the directory does not exist or if there is no index in it.   * @param  directory the directory to check for an index   * @return <code>true</code> if an index exists; <code>false</code> otherwise   * @throws IOException if there is a problem with accessing the index   */  public static boolean indexExists(Directory directory) throws IOException {    return SegmentInfos.getCurrentSegmentGeneration(directory) != -1;  }  /** Returns the number of documents in this index. */  public abstract int numDocs();  /** Returns one greater than the largest possible document number.   * This may be used to, e.g., determine how big to allocate an array which   * will have an element for every document number in an index.   */  public abstract int maxDoc();  /** Returns the number of deleted documents. */  public int numDeletedDocs() {    return maxDoc() - numDocs();  }  /** Returns the stored fields of the <code>n</code><sup>th</sup>   <code>Document</code> in this index.   * @throws CorruptIndexException if the index is corrupt   * @throws IOException if there is a low-level IO error   */  public Document document(int n) throws CorruptIndexException, IOException {    ensureOpen();    return document(n, null);  }  /**   * Get the {@link org.apache.lucene.document.Document} at the <code>n</code><sup>th</sup> position. The {@link org.apache.lucene.document.FieldSelector}   * may be used to determine what {@link org.apache.lucene.document.Field}s to load and how they should be loaded.   *    * <b>NOTE:</b> If this Reader (more specifically, the underlying <code>FieldsReader</code>) is closed before the lazy {@link org.apache.lucene.document.Field} is   * loaded an exception may be thrown.  If you want the value of a lazy {@link org.apache.lucene.document.Field} to be available after closing you must   * explicitly load it or fetch the Document again with a new loader.   *    *     * @param n Get the document at the <code>n</code><sup>th</sup> position   * @param fieldSelector The {@link org.apache.lucene.document.FieldSelector} to use to determine what Fields should be loaded on the Document.  May be null, in which case all Fields will be loaded.   * @return The stored fields of the {@link org.apache.lucene.document.Document} at the nth position   * @throws CorruptIndexException if the index is corrupt   * @throws IOException if there is a low-level IO error   *    * @see org.apache.lucene.document.Fieldable   * @see org.apache.lucene.document.FieldSelector   * @see org.apache.lucene.document.SetBasedFieldSelector   * @see org.apache.lucene.document.LoadFirstFieldSelector   */  //When we convert to JDK 1.5 make this Set<String>  public abstract Document document(int n, FieldSelector fieldSelector) throws CorruptIndexException, IOException;      /** Returns true if document <i>n</i> has been deleted */  public abstract boolean isDeleted(int n);  /** Returns true if any documents have been deleted */  public abstract boolean hasDeletions();  /** Returns true if there are norms stored for this field. */  public boolean hasNorms(String field) throws IOException {    // backward compatible implementation.    // SegmentReader has an efficient implementation.    ensureOpen();    return norms(field) != null;  }  /** Returns the byte-encoded normalization factor for the named field of   * every document.  This is used by the search code to score documents.   *   * @see org.apache.lucene.document.Field#setBoost(float)   */  public abstract byte[] norms(String field) throws IOException;  /** Reads the byte-encoded normalization factor for the named field of every   *  document.  This is used by the search code to score documents.   *   * @see org.apache.lucene.document.Field#setBoost(float)   */  public abstract void norms(String field, byte[] bytes, int offset)    throws IOException;  /** Expert: Resets the normalization factor for the named field of the named   * document.  The norm represents the product of the field's {@link   * org.apache.lucene.document.Fieldable#setBoost(float) boost} and its {@link Similarity#lengthNorm(String,   * int) length normalization}.  Thus, to preserve the length normalization   * values when resetting this, one should base the new value upon the old.   *   * @see #norms(String)   * @see Similarity#decodeNorm(byte)   * @throws StaleReaderException if the index has changed   *  since this reader was opened   * @throws CorruptIndexException if the index is corrupt   * @throws LockObtainFailedException if another writer   *  has this index open (<code>write.lock</code> could not   *  be obtained)   * @throws IOException if there is a low-level IO error   */  public synchronized  void setNorm(int doc, String field, byte value)          throws StaleReaderException, CorruptIndexException, LockObtainFailedException, IOException {    ensureOpen();    acquireWriteLock();    hasChanges = true;    doSetNorm(doc, field, value);  }  /** Implements setNorm in subclass.*/  protected abstract void doSetNorm(int doc, String field, byte value)          throws CorruptIndexException, IOException;  /** Expert: Resets the normalization factor for the named field of the named   * document.   *   * @see #norms(String)   * @see Similarity#decodeNorm(byte)   *    * @throws StaleReaderException if the index has changed   *  since this reader was opened   * @throws CorruptIndexException if the index is corrupt   * @throws LockObtainFailedException if another writer   *  has this index open (<code>write.lock</code> could not   *  be obtained)   * @throws IOException if there is a low-level IO error   */  public void setNorm(int doc, String field, float value)          throws StaleReaderException, CorruptIndexException, LockObtainFailedException, IOException {    ensureOpen();

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久久精品黄色| 欧美性猛交xxxx黑人交| 96av麻豆蜜桃一区二区| 欧美午夜精品理论片a级按摩| 91精品国产欧美日韩| 中文字幕不卡在线播放| 一区二区三区四区蜜桃| 美腿丝袜在线亚洲一区| 本田岬高潮一区二区三区| 欧美日韩国产综合一区二区| 国产亚洲成年网址在线观看| 亚洲综合色自拍一区| 精品一区二区三区视频| 91天堂素人约啪| 精品国产乱码久久久久久免费 | 青青草国产成人av片免费| 国产91丝袜在线18| 欧美日韩国产乱码电影| 中文字幕+乱码+中文字幕一区| 亚洲国产精品一区二区久久| 狠狠狠色丁香婷婷综合激情| 欧美在线视频不卡| 久久精品人人做| 午夜不卡av免费| 不卡av免费在线观看| 亚洲视频香蕉人妖| 久久精品噜噜噜成人av农村| 91视频在线看| 国产嫩草影院久久久久| 天天综合色天天| 色噜噜狠狠一区二区三区果冻| 欧美精品一区二区三| 亚洲午夜精品网| 波多野结衣亚洲| 精品国产91乱码一区二区三区| 亚洲天堂成人网| 国产美女一区二区| 91精品国产91综合久久蜜臀| 亚洲男人的天堂av| 国产成人精品网址| 日韩免费观看高清完整版 | 日本韩国欧美一区二区三区| 国产视频一区二区在线观看| 蜜桃一区二区三区在线观看| 欧美视频你懂的| 中文字幕亚洲精品在线观看| 国产精品亚洲午夜一区二区三区| 欧美一区二区三区免费| 亚洲成av人影院| 色视频成人在线观看免| 国产欧美一区二区精品性| 青青草原综合久久大伊人精品优势 | 在线观看一区二区视频| 亚洲视频在线一区| 成人av在线播放网址| 国产日韩欧美麻豆| 激情综合色播激情啊| 欧美一区二区观看视频| 午夜视频在线观看一区二区| 日本丰满少妇一区二区三区| 1000精品久久久久久久久| 岛国一区二区在线观看| 国产日韩精品一区二区三区| 国产高清不卡二三区| 久久久三级国产网站| 国产在线精品一区二区| 精品国产91亚洲一区二区三区婷婷| 免费成人小视频| 日韩你懂的电影在线观看| 男男成人高潮片免费网站| 日韩一区二区在线观看视频播放| 日韩精彩视频在线观看| 欧美视频一区二区在线观看| 亚洲一二三专区| 欧美日韩精品一区二区| 午夜在线成人av| 欧美精品久久99| 蜜桃视频在线观看一区| 精品99999| 成人中文字幕在线| 亚洲日本在线视频观看| 在线免费观看日本欧美| 午夜免费欧美电影| 日韩一区二区三| 精品无人区卡一卡二卡三乱码免费卡| 欧美成人乱码一区二区三区| 精品亚洲免费视频| 国产日韩欧美一区二区三区乱码 | 中文字幕精品在线不卡| 成人激情午夜影院| ...中文天堂在线一区| 91九色02白丝porn| 秋霞午夜鲁丝一区二区老狼| 精品久久人人做人人爰| 国产成人av影院| 亚洲日本在线a| 欧美精品丝袜久久久中文字幕| 男男成人高潮片免费网站| 久久久久久久久久电影| 99久久综合狠狠综合久久| 亚洲资源中文字幕| 日韩欧美一区二区在线视频| 国产精品亚洲视频| 一区二区三区高清在线| 欧美一区二区三区喷汁尤物| 国产高清久久久久| 一区二区三区在线免费| 日韩女同互慰一区二区| av一二三不卡影片| 日本不卡一二三| 国产欧美日产一区| 欧美日韩国产色站一区二区三区| 久久99精品国产| 亚洲女性喷水在线观看一区| 91精品国产综合久久久久久久久久 | 欧美日韩亚洲不卡| 国产精品66部| 亚洲国产你懂的| 久久久久久免费| 欧美伊人久久大香线蕉综合69| 久久99这里只有精品| 一区二区中文视频| 欧美一级二级三级蜜桃| 不卡av电影在线播放| 日韩精品电影一区亚洲| 国产精品国产三级国产aⅴ原创| 欧美精选一区二区| 成人美女视频在线观看18| 丝瓜av网站精品一区二区| 亚洲国产精品高清| 欧美一级片在线看| 91在线小视频| 国产一区二区不卡在线| 午夜电影久久久| 18欧美乱大交hd1984| 337p日本欧洲亚洲大胆色噜噜| 91久久线看在观草草青青| 国产精品一区二区在线播放| 午夜精品一区在线观看| 日本一区二区成人在线| 日韩三级精品电影久久久| 色婷婷亚洲精品| 国产精品亚洲一区二区三区妖精 | 欧美一区二区三区思思人| 91亚洲大成网污www| 韩国三级中文字幕hd久久精品| 亚洲激情网站免费观看| 国产亚洲视频系列| 日韩一区二区在线观看| 日本二三区不卡| 成人av第一页| 国产剧情一区在线| 久久精品国产99久久6| 亚洲电影欧美电影有声小说| 亚洲特级片在线| 中文字幕乱码亚洲精品一区| 精品久久久久久久久久久久久久久| 欧美视频精品在线| 日本道免费精品一区二区三区| 成人精品视频一区二区三区| 国产精品伊人色| 美女视频一区二区三区| 日韩电影在线观看电影| 亚洲成人一区二区在线观看| 亚洲欧美一区二区久久| 国产精品久久久久久福利一牛影视| 制服丝袜亚洲网站| 欧美蜜桃一区二区三区| 欧美综合天天夜夜久久| 色婷婷久久综合| 日本伦理一区二区| 91极品视觉盛宴| 欧美在线视频全部完| 日本精品裸体写真集在线观看| 91女神在线视频| 91猫先生在线| 色综合天天综合网国产成人综合天 | 666欧美在线视频| 欧美夫妻性生活| 在线播放日韩导航| 制服丝袜激情欧洲亚洲| 欧美军同video69gay| 3d动漫精品啪啪一区二区竹菊| 欧美日韩中文字幕一区二区| 欧美区在线观看| 日韩欧美国产综合在线一区二区三区| 欧美一区二区在线视频| 欧美一区二区三区视频免费播放| 欧美丰满美乳xxx高潮www| 欧美一区二区久久| 精品国产乱码久久久久久老虎| 精品国精品自拍自在线| 国产婷婷色一区二区三区四区| 久久久久久久综合| 中文成人综合网| 有码一区二区三区| 日韩电影免费一区| 麻豆精品蜜桃视频网站| 国产精品1024| 972aa.com艺术欧美|