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

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

?? indexreader.java

?? lucene-2.4.0 是一個全文收索的工具包
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
    setNorm(doc, field, Similarity.encodeNorm(value));  }  /** Returns an enumeration of all the terms in the index. The   * enumeration is ordered by Term.compareTo(). Each term is greater   * than all that precede it in the enumeration. Note that after   * calling terms(), {@link TermEnum#next()} must be called   * on the resulting enumeration before calling other methods such as   * {@link TermEnum#term()}.   * @throws IOException if there is a low-level IO error   */  public abstract TermEnum terms() throws IOException;  /** Returns an enumeration of all terms starting at a given term. If   * the given term does not exist, the enumeration is positioned at the   * first term greater than the supplied term. The enumeration is   * ordered by Term.compareTo(). Each term is greater than all that   * precede it in the enumeration.   * @throws IOException if there is a low-level IO error   */  public abstract TermEnum terms(Term t) throws IOException;  /** Returns the number of documents containing the term <code>t</code>.   * @throws IOException if there is a low-level IO error   */  public abstract int docFreq(Term t) throws IOException;  /** Returns an enumeration of all the documents which contain   * <code>term</code>. For each document, the document number, the frequency of   * the term in that document is also provided, for use in search scoring.   * Thus, this method implements the mapping:   * <p><ul>   * Term &nbsp;&nbsp; =&gt; &nbsp;&nbsp; &lt;docNum, freq&gt;<sup>*</sup>   * </ul>   * <p>The enumeration is ordered by document number.  Each document number   * is greater than all that precede it in the enumeration.   * @throws IOException if there is a low-level IO error   */  public TermDocs termDocs(Term term) throws IOException {    ensureOpen();    TermDocs termDocs = termDocs();    termDocs.seek(term);    return termDocs;  }  /** Returns an unpositioned {@link TermDocs} enumerator.   * @throws IOException if there is a low-level IO error   */  public abstract TermDocs termDocs() throws IOException;  /** Returns an enumeration of all the documents which contain   * <code>term</code>.  For each document, in addition to the document number   * and frequency of the term in that document, a list of all of the ordinal   * positions of the term in the document is available.  Thus, this method   * implements the mapping:   *   * <p><ul>   * Term &nbsp;&nbsp; =&gt; &nbsp;&nbsp; &lt;docNum, freq,   * &lt;pos<sub>1</sub>, pos<sub>2</sub>, ...   * pos<sub>freq-1</sub>&gt;   * &gt;<sup>*</sup>   * </ul>   * <p> This positional information facilitates phrase and proximity searching.   * <p>The enumeration is ordered by document number.  Each document number is   * greater than all that precede it in the enumeration.   * @throws IOException if there is a low-level IO error   */  public TermPositions termPositions(Term term) throws IOException {    ensureOpen();    TermPositions termPositions = termPositions();    termPositions.seek(term);    return termPositions;  }  /** Returns an unpositioned {@link TermPositions} enumerator.   * @throws IOException if there is a low-level IO error   */  public abstract TermPositions termPositions() throws IOException;  /** Deletes the document numbered <code>docNum</code>.  Once a document is   * deleted it will not appear in TermDocs or TermPostitions enumerations.   * Attempts to read its field with the {@link #document}   * method will result in an error.  The presence of this document may still be   * reflected in the {@link #docFreq} statistic, though   * this will be corrected eventually as the index is further modified.   *   * @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 deleteDocument(int docNum) throws StaleReaderException, CorruptIndexException, LockObtainFailedException, IOException {    ensureOpen();    acquireWriteLock();    hasChanges = true;    doDelete(docNum);  }  /** Implements deletion of the document numbered <code>docNum</code>.   * Applications should call {@link #deleteDocument(int)} or {@link #deleteDocuments(Term)}.   */  protected abstract void doDelete(int docNum) throws CorruptIndexException, IOException;  /** Deletes all documents that have a given <code>term</code> indexed.   * This is useful if one uses a document field to hold a unique ID string for   * the document.  Then to delete such a document, one merely constructs a   * term with the appropriate field and the unique ID string as its text and   * passes it to this method.   * See {@link #deleteDocument(int)} for information about when this deletion will    * become effective.   *   * @return the number of documents deleted   * @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 int deleteDocuments(Term term) throws StaleReaderException, CorruptIndexException, LockObtainFailedException, IOException {    ensureOpen();    TermDocs docs = termDocs(term);    if (docs == null) return 0;    int n = 0;    try {      while (docs.next()) {        deleteDocument(docs.doc());        n++;      }    } finally {      docs.close();    }    return n;  }  /** Undeletes all documents currently marked as deleted in this index.   *   * @throws StaleReaderException if the index has changed   *  since this reader was opened   * @throws LockObtainFailedException if another writer   *  has this index open (<code>write.lock</code> could not   *  be obtained)   * @throws CorruptIndexException if the index is corrupt   * @throws IOException if there is a low-level IO error   */  public synchronized void undeleteAll() throws StaleReaderException, CorruptIndexException, LockObtainFailedException, IOException {    ensureOpen();    acquireWriteLock();    hasChanges = true;    doUndeleteAll();  }  /** Implements actual undeleteAll() in subclass. */  protected abstract void doUndeleteAll() throws CorruptIndexException, IOException;  /** Does nothing by default. Subclasses that require a write lock for   *  index modifications must implement this method. */  protected synchronized void acquireWriteLock() throws IOException {    /* NOOP */  }    /**   *    * @throws IOException   */  public final synchronized void flush() throws IOException {    ensureOpen();    commit();  }  /**   * Commit changes resulting from delete, undeleteAll, or   * setNorm operations   *   * If an exception is hit, then either no changes or all   * changes will have been committed to the index   * (transactional semantics).   * @throws IOException if there is a low-level IO error   */  protected final synchronized void commit() throws IOException {    if(hasChanges){      doCommit();    }    hasChanges = false;  }  /** Implements commit. */  protected abstract void doCommit() throws IOException;  /**   * Closes files associated with this index.   * Also saves any new deletions to disk.   * No other methods should be called after this has been called.   * @throws IOException if there is a low-level IO error   */  public final synchronized void close() throws IOException {    if (!closed) {      decRef();      closed = true;    }  }    /** Implements close. */  protected abstract void doClose() throws IOException;  /**   * Get a list of unique field names that exist in this index and have the specified   * field option information.   * @param fldOption specifies which field option should be available for the returned fields   * @return Collection of Strings indicating the names of the fields.   * @see IndexReader.FieldOption   */  public abstract Collection getFieldNames(FieldOption fldOption);  /**   * Returns <code>true</code> iff the index in the named directory is   * currently locked.   * @param directory the directory to check for a lock   * @throws IOException if there is a low-level IO error   * @deprecated Please use {@link IndexWriter#isLocked(Directory)} instead   */  public static boolean isLocked(Directory directory) throws IOException {    return      directory.makeLock(IndexWriter.WRITE_LOCK_NAME).isLocked();  }  /**   * Returns <code>true</code> iff the index in the named directory is   * currently locked.   * @param directory the directory to check for a lock   * @throws IOException if there is a low-level IO error   * @deprecated Please use {@link IndexWriter#isLocked(String)} instead   */  public static boolean isLocked(String directory) throws IOException {    Directory dir = FSDirectory.getDirectory(directory);    boolean result = isLocked(dir);    dir.close();    return result;  }  /**   * Forcibly unlocks the index in the named directory.   * <P>   * Caution: this should only be used by failure recovery code,   * when it is known that no other process nor thread is in fact   * currently accessing this index.   * @deprecated Please use {@link IndexWriter#unlock(Directory)} instead   */  public static void unlock(Directory directory) throws IOException {    directory.makeLock(IndexWriter.WRITE_LOCK_NAME).release();  }  /**   * Expert: return the IndexCommit that this reader has   * opened.  This method is only implemented by those   * readers that correspond to a Directory with its own   * segments_N file.   *   * <p><b>WARNING</b>: this API is new and experimental and   * may suddenly change.</p>   */  public IndexCommit getIndexCommit() throws IOException {    throw new UnsupportedOperationException("This reader does not support this method.");  }    /**   * Prints the filename and size of each file within a given compound file.   * Add the -extract flag to extract files to the current working directory.   * In order to make the extracted version of the index work, you have to copy   * the segments file from the compound index into the directory where the extracted files are stored.   * @param args Usage: org.apache.lucene.index.IndexReader [-extract] &lt;cfsfile&gt;   */  public static void main(String [] args) {    String filename = null;    boolean extract = false;    for (int i = 0; i < args.length; ++i) {      if (args[i].equals("-extract")) {        extract = true;      } else if (filename == null) {        filename = args[i];      }    }    if (filename == null) {      System.out.println("Usage: org.apache.lucene.index.IndexReader [-extract] <cfsfile>");      return;    }    Directory dir = null;    CompoundFileReader cfr = null;    try {      File file = new File(filename);      String dirname = file.getAbsoluteFile().getParent();      filename = file.getName();      dir = FSDirectory.getDirectory(dirname);      cfr = new CompoundFileReader(dir, filename);      String [] files = cfr.list();      Arrays.sort(files);   // sort the array of filename so that the output is more readable      for (int i = 0; i < files.length; ++i) {        long len = cfr.fileLength(files[i]);        if (extract) {          System.out.println("extract " + files[i] + " with " + len + " bytes to local directory...");          IndexInput ii = cfr.openInput(files[i]);          FileOutputStream f = new FileOutputStream(files[i]);          // read and write with a small buffer, which is more effectiv than reading byte by byte          byte[] buffer = new byte[1024];          int chunk = buffer.length;          while(len > 0) {            final int bufLen = (int) Math.min(chunk, len);            ii.readBytes(buffer, 0, bufLen);            f.write(buffer, 0, bufLen);            len -= bufLen;          }          f.close();          ii.close();        }        else          System.out.println(files[i] + ": " + len + " bytes");      }    } catch (IOException ioe) {      ioe.printStackTrace();    }    finally {      try {        if (dir != null)          dir.close();        if (cfr != null)          cfr.close();      }      catch (IOException ioe) {        ioe.printStackTrace();      }    }  }  /** Returns all commit points that exist in the Directory.   *  Normally, because the default is {@link   *  KeepOnlyLastCommitDeletionPolicy}, there would be only   *  one commit point.  But if you're using a custom {@link   *  IndexDeletionPolicy} then there could be many commits.   *  Once you have a given commit, you can open a reader on   *  it by calling {@link IndexReader#open(IndexCommit)}   *  There must be at least one commit in   *  the Directory, else this method throws {@link   *  java.io.IOException}.  Note that if a commit is in   *  progress while this method is running, that commit   *  may or may not be returned array.  */  public static Collection listCommits(Directory dir) throws IOException {    return DirectoryIndexReader.listCommits(dir);  }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩欧美一级在线播放| 亚洲人xxxx| 99久久精品免费观看| 一区二区三区精品视频| 精品免费视频.| 欧美亚洲丝袜传媒另类| 大尺度一区二区| 日韩和欧美的一区| 亚洲精品久久久蜜桃| 一区二区三区在线观看国产 | 91久久精品一区二区三区| 日本美女视频一区二区| 一区二区三区在线看| 国产欧美日韩三区| 日韩三级免费观看| 欧美日韩久久一区二区| 97久久超碰国产精品电影| 国产成人精品www牛牛影视| 亚洲桃色在线一区| 欧美韩国日本不卡| 久久综合九色综合久久久精品综合| 日本高清不卡在线观看| 成人免费毛片aaaaa**| 国产一区亚洲一区| 美女一区二区三区| 视频一区视频二区中文字幕| 亚洲激情五月婷婷| 亚洲欧洲精品一区二区精品久久久 | 国产盗摄视频一区二区三区| 日韩精品视频网站| 亚洲成av人**亚洲成av**| 日韩毛片视频在线看| 中文久久乱码一区二区| 久久蜜桃av一区二区天堂| 欧美tickling挠脚心丨vk| 5月丁香婷婷综合| 欧美丰满一区二区免费视频| 欧美精品久久一区| 欧美日精品一区视频| 欧美视频第二页| 欧美性色黄大片手机版| 在线视频综合导航| 欧美日韩色综合| 欧美日韩免费观看一区三区| 欧美日韩一级二级三级| 在线播放欧美女士性生活| 欧美调教femdomvk| 欧美一区在线视频| 日韩三级电影网址| 精品少妇一区二区三区日产乱码| 精品福利一区二区三区免费视频| 精品国产免费一区二区三区四区| 国产亚洲精品精华液| 国产精品久久影院| 亚洲精品欧美在线| 调教+趴+乳夹+国产+精品| 日韩极品在线观看| 国产一区二区三区久久悠悠色av| 国产一区不卡视频| av一二三不卡影片| 欧美午夜精品久久久| 欧美一区二区三区在线视频| 精品国产伦一区二区三区观看方式| 久久嫩草精品久久久久| 国产精品日日摸夜夜摸av| 亚洲精品成人精品456| 亚洲成人av在线电影| 免费在线观看成人| 国产精品一区久久久久| 色综合久久中文字幕综合网| 欧美日韩一级二级| 久久免费美女视频| 一区二区三区精品在线观看| 免费成人在线视频观看| 国产一区视频在线看| 91福利精品视频| 欧美va亚洲va香蕉在线| 日韩毛片高清在线播放| 偷偷要91色婷婷| 成人小视频免费在线观看| 在线精品视频一区二区| 亚洲精品在线电影| 亚洲精品成人a在线观看| 九九精品视频在线看| 99久久精品国产观看| 日韩免费高清电影| 亚洲美女少妇撒尿| 国产一区二区三区免费在线观看| 色就色 综合激情| 久久亚洲一区二区三区明星换脸| 成人欧美一区二区三区白人| 午夜欧美电影在线观看| 成人免费视频视频| 日韩欧美你懂的| 亚洲黄色在线视频| 国产精品小仙女| 欧美一二三四在线| 亚洲精品高清视频在线观看| 国产一区二区在线影院| 欧美三级电影网| 国产精品久久网站| 国产伦精一区二区三区| 欧美日韩一卡二卡三卡| 亚洲天堂a在线| 国产精品一区免费在线观看| 欧美精品一二三| 亚洲日本免费电影| 国产在线视频精品一区| 欧美一级片在线看| 一区二区三区四区国产精品| 国产精品1024| 精品国产乱码久久久久久牛牛| 亚洲国产视频直播| 91丨九色丨黑人外教| 久久精品视频网| 玖玖九九国产精品| 777奇米成人网| 午夜不卡av在线| 在线一区二区视频| 18欧美乱大交hd1984| 高清国产一区二区三区| 久久人人爽人人爽| 国产一区二区三区久久悠悠色av | 日本高清不卡视频| 综合久久久久久久| 波多野结衣视频一区| 国产精品免费久久| 国产成人免费视频网站高清观看视频 | 欧美日韩成人综合天天影院| 亚洲色图欧美偷拍| 成人精品免费网站| 中文字幕av在线一区二区三区| 国产黄色成人av| 亚洲国产精品av| www.日韩精品| 一区视频在线播放| av亚洲精华国产精华| 亚洲色大成网站www久久九九| 91同城在线观看| 亚洲第一搞黄网站| 欧美一区中文字幕| 狠狠色伊人亚洲综合成人| 欧美草草影院在线视频| 国产伦精品一区二区三区视频青涩 | 精品国产一区二区三区忘忧草| 久久99久国产精品黄毛片色诱| 欧美v日韩v国产v| 国产精品12区| 亚洲另类中文字| 欧美色图片你懂的| 日本欧美一区二区| 精品久久久久久久久久久久包黑料| 国产综合色产在线精品| 国产亚洲欧美激情| 91免费国产在线| 午夜激情久久久| 精品入口麻豆88视频| 国产91在线|亚洲| 亚洲免费观看高清完整版在线| 欧美中文字幕一区| 免费看日韩a级影片| 国产欧美日韩另类视频免费观看| 99久免费精品视频在线观看| 一区二区三区国产精品| 3d动漫精品啪啪一区二区竹菊| 国产在线精品一区二区三区不卡| 国产精品久久久久久久久搜平片| 色诱视频网站一区| 美日韩一区二区三区| 国产日产欧美一区| 一本色道久久综合亚洲91| 午夜精品123| 国产女人18毛片水真多成人如厕 | 国产麻豆成人精品| 亚洲美腿欧美偷拍| 精品日韩在线观看| 91视频在线观看| 美女mm1313爽爽久久久蜜臀| 国产日韩精品久久久| 欧日韩精品视频| 国产乱码字幕精品高清av| 亚洲欧美另类久久久精品| 日韩一区二区三区精品视频| 国产精品一区二区在线看| 亚洲成人你懂的| 国产精品你懂的在线| 在线观看视频一区| 国产乱子伦视频一区二区三区| 亚洲理论在线观看| 久久综合av免费| 欧美日韩成人综合在线一区二区 | 91国产免费看| 国产在线不卡一区| 肉色丝袜一区二区| 中文字幕一区二区三| 精品91自产拍在线观看一区| 欧美视频一区在线| 成人精品视频网站| 精品亚洲国产成人av制服丝袜| 亚洲综合图片区|