パッケージ nlp4j.indexer
クラス SimpleDocumentIndex
- java.lang.Object
-
- nlp4j.indexer.AbstractDocumentIndexer
-
- nlp4j.indexer.SimpleDocumentIndex
-
- すべての実装されたインタフェース:
DocumentIndexer
public class SimpleDocumentIndex extends AbstractDocumentIndexer implements DocumentIndexer
シンプルなドキュメントインデックスのクラスです。
Simple document index.- 導入されたバージョン:
- 1.0
- 作成者:
- Hiroki Oya
-
-
フィールドの概要
フィールド 修飾子とタイプ フィールド 説明 static String
KEY_DATEFIELD
-
コンストラクタの概要
コンストラクタ コンストラクタ 説明 SimpleDocumentIndex()
-
メソッドの概要
すべてのメソッド インスタンス・メソッド concreteメソッド 修飾子とタイプ メソッド 説明 void
addDocument(Document doc)
インデックスにドキュメントを追加します。List<Keyword>
getDateCount(String unit)
List<Keyword>
getDateCountDay()
List<Keyword>
getDateCountMonth()
List<Keyword>
getDateCountYear()
int
getDocumentSize()
List<Keyword>
getItemCount(String facet)
List<Keyword>
getKeywords()
インデックスのキーワードを返します。List<Keyword>
getKeywords(String facet)
ファセットを指定してインデックスのキーワードを返します。List<Keyword>
getKeywords(String facet, String condition)
ファセットと条件を指定してインデックスのキーワードを返します。List<Keyword>
getKeywordsWithoutCount()
カウント無しキーワードのリストを返します。void
setProperty(String key, String value)
プロパティをセットします
Set PropertyString
toString()
-
クラスから継承されたメソッド nlp4j.indexer.AbstractDocumentIndexer
addDocuments, close, commit, setProperties
-
クラスから継承されたメソッド java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
インタフェースから継承されたメソッド nlp4j.indexer.DocumentIndexer
addDocuments, close, commit, setProperties
-
-
-
-
メソッドの詳細
-
addDocument
public void addDocument(Document doc)
インタフェースからコピーされた説明:DocumentIndexer
インデックスにドキュメントを追加します。
Add an document to Index.- 定義:
addDocument
インタフェース内DocumentIndexer
- パラメータ:
doc
- ドキュメント
-
getDocumentSize
public int getDocumentSize()
- 戻り値:
- count of documents
- 導入されたバージョン:
- 20220115
-
getKeywords
public List<Keyword> getKeywords()
インタフェースからコピーされた説明:DocumentIndexer
インデックスのキーワードを返します。
Return keywords of index.- 定義:
getKeywords
インタフェース内DocumentIndexer
- オーバーライド:
getKeywords
クラス内AbstractDocumentIndexer
- 戻り値:
- キーワード
-
getKeywords
public List<Keyword> getKeywords(String facet)
インタフェースからコピーされた説明:DocumentIndexer
ファセットを指定してインデックスのキーワードを返します。
Return facet keywords of index.- 定義:
getKeywords
インタフェース内DocumentIndexer
- オーバーライド:
getKeywords
クラス内AbstractDocumentIndexer
- パラメータ:
facet
- ファセット- 戻り値:
- キーワード
-
getKeywords
public List<Keyword> getKeywords(String facet, String condition)
インタフェースからコピーされた説明:DocumentIndexer
ファセットと条件を指定してインデックスのキーワードを返します。
Return facet keywords with a condition query.- 定義:
getKeywords
インタフェース内DocumentIndexer
- オーバーライド:
getKeywords
クラス内AbstractDocumentIndexer
- パラメータ:
facet
- ファセットIDcondition
- 条件- 戻り値:
- キーワード
-
getKeywordsWithoutCount
public List<Keyword> getKeywordsWithoutCount()
カウント無しキーワードのリストを返します。- 戻り値:
- Keywords
-
setProperty
public void setProperty(String key, String value)
インタフェースからコピーされた説明:DocumentIndexer
プロパティをセットします
Set Property- 定義:
setProperty
インタフェース内DocumentIndexer
- オーバーライド:
setProperty
クラス内AbstractDocumentIndexer
- パラメータ:
key
- Param Keyvalue
- Param Value
-
-