org.mtzky.lucene
クラス LuceneIndexWriter<E>

java.lang.Object
  上位を拡張 org.apache.lucene.index.IndexWriter
      上位を拡張 org.mtzky.lucene.LuceneIndexWriter<E>
型パラメータ:
E - entity
すべての実装されたインタフェース:
Closeable, Closable

public class LuceneIndexWriter<E>
extends IndexWriter
implements Closable

作成者:
mtzky
関連項目:
IndexWriter

入れ子のクラスの概要
 
クラス org.apache.lucene.index.IndexWriter から継承された入れ子のクラス/インタフェース
IndexWriter.IndexReaderWarmer, IndexWriter.MaxFieldLength
 
フィールドの概要
 
クラス org.apache.lucene.index.IndexWriter から継承されたフィールド
DEFAULT_MAX_BUFFERED_DELETE_TERMS, DEFAULT_MAX_BUFFERED_DOCS, DEFAULT_MAX_FIELD_LENGTH, DEFAULT_RAM_BUFFER_SIZE_MB, DEFAULT_TERM_INDEX_INTERVAL, DISABLE_AUTO_FLUSH, MAX_TERM_LENGTH, WRITE_LOCK_NAME, WRITE_LOCK_TIMEOUT
 
コンストラクタの概要
LuceneIndexWriter(Directory d, LuceneDocumentDesc<E> desc)
           
 
メソッドの概要
 void addDocument(E entity)
           
 void close()
           
 void deleteDocument(E entity)
           Deletes Document by ID.
 void deleteDocumentById(Object value)
           Deletes Document by ID value.
 boolean isClosed()
           
 void updateDocument(E entity)
           Updates Document by ID.
 
クラス org.apache.lucene.index.IndexWriter から継承されたメソッド
addDocument, addDocument, addIndexes, addIndexes, addIndexesNoOptimize, close, commit, commit, deleteAll, deleteDocuments, deleteDocuments, deleteDocuments, deleteDocuments, deleteUnusedFiles, doAfterFlush, doBeforeFlush, ensureOpen, ensureOpen, expungeDeletes, expungeDeletes, flush, flush, getAnalyzer, getConfig, getDefaultInfoStream, getDefaultWriteLockTimeout, getDirectory, getInfoStream, getMaxBufferedDeleteTerms, getMaxBufferedDocs, getMaxFieldLength, getMaxMergeDocs, getMergedSegmentWarmer, getMergeFactor, getMergePolicy, getMergeScheduler, getPayloadProcessorProvider, getRAMBufferSizeMB, getReader, getReader, getReaderTermsIndexDivisor, getSimilarity, getTermIndexInterval, getUseCompoundFile, getWriteLockTimeout, hasDeletions, isLocked, maxDoc, maybeMerge, message, numDeletedDocs, numDocs, numRamDocs, optimize, optimize, optimize, optimize, prepareCommit, prepareCommit, ramSizeInBytes, rollback, segString, setDefaultInfoStream, setDefaultWriteLockTimeout, setInfoStream, setMaxBufferedDeleteTerms, setMaxBufferedDocs, setMaxFieldLength, setMaxMergeDocs, setMergedSegmentWarmer, setMergeFactor, setMergePolicy, setMergeScheduler, setPayloadProcessorProvider, setRAMBufferSizeMB, setReaderTermsIndexDivisor, setSimilarity, setTermIndexInterval, setUseCompoundFile, setWriteLockTimeout, unlock, updateDocument, updateDocument, verbose, waitForMerges
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

LuceneIndexWriter

public LuceneIndexWriter(Directory d,
                         LuceneDocumentDesc<E> desc)
                  throws CorruptIndexException,
                         LockObtainFailedException,
                         IOException
パラメータ:
d - Document
desc - LuceneDocumentDesc
例外:
CorruptIndexException
LockObtainFailedException
IOException
メソッドの詳細

addDocument

public void addDocument(E entity)
                 throws CorruptIndexException,
                        IOException
パラメータ:
entity -
例外:
CorruptIndexException
IOException
関連項目:
IndexWriter.addDocument(Document)

updateDocument

public void updateDocument(E entity)
                    throws CorruptIndexException,
                           IOException

Updates Document by ID.

パラメータ:
entity -
例外:
CorruptIndexException
IOException
関連項目:
IndexWriter.updateDocument(Term, Document)

deleteDocument

public void deleteDocument(E entity)
                    throws CorruptIndexException,
                           IOException

Deletes Document by ID.

パラメータ:
entity -
例外:
CorruptIndexException
IOException
関連項目:
IndexWriter.deleteDocuments(Term)

deleteDocumentById

public void deleteDocumentById(Object value)
                        throws CorruptIndexException,
                               IOException

Deletes Document by ID value.

パラメータ:
value -
例外:
CorruptIndexException
IOException
関連項目:
IndexWriter.deleteDocuments(Term)

isClosed

public boolean isClosed()
定義:
インタフェース Closable 内の isClosed

close

public void close()
           throws IOException
定義:
インタフェース Closeable 内の close
オーバーライド:
クラス IndexWriter 内の close
例外:
IOException


Copyright (C) 2010-2011 Mtzky. AllRights Reserved.