パッケージ nlp4j
クラス AbstractDocumentImporter
- java.lang.Object
-
- nlp4j.AbstractDocumentImporter
-
- すべての実装されたインタフェース:
DocumentImporter
- 直系の既知のサブクラス:
DefaultDocumentImporter
public abstract class AbstractDocumentImporter extends Object implements DocumentImporter
文書をインデックスにインポートするドキュメントインポーターの抽象クラスです。
Abstract class of document importer for indexing.- 導入されたバージョン:
- 1.0
- 作成者:
- Hiroki Oya
-
-
フィールドの概要
フィールド 修飾子とタイプ フィールド 説明 protected boolean
debug
protected Properties
props
-
コンストラクタの概要
コンストラクタ コンストラクタ 説明 AbstractDocumentImporter()
-
メソッドの概要
すべてのメソッド インスタンス・メソッド concreteメソッド 修飾子とタイプ メソッド 説明 void
debugPrint(Document doc)
Print document for debuggingvoid
importDocumentAndCommit(Document doc)
ドキュメントをインポートしてコミットします。void
importDocuments(List<Document> docs)
複数のドキュメントをインポートします。void
setProperties(Properties prop)
プロパティをセットします。void
setProperty(String key, String value)
プロパティをセットします。-
クラスから継承されたメソッド java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
インタフェースから継承されたメソッド nlp4j.DocumentImporter
close, commit, importDocument
-
-
-
-
フィールドの詳細
-
props
protected Properties props
-
debug
protected boolean debug
-
-
メソッドの詳細
-
importDocumentAndCommit
public void importDocumentAndCommit(Document doc) throws IOException
インタフェースからコピーされた説明:DocumentImporter
ドキュメントをインポートしてコミットします。
Import a document and commit.- 定義:
importDocumentAndCommit
インタフェース内DocumentImporter
- パラメータ:
doc
- インポート対象のドキュメント- 例外:
IOException
- 例外発生時にスローされる
-
importDocuments
public void importDocuments(List<Document> docs) throws IOException
インタフェースからコピーされた説明:DocumentImporter
複数のドキュメントをインポートします。
Import multiple documents.- 定義:
importDocuments
インタフェース内DocumentImporter
- パラメータ:
docs
- インポート対象のドキュメント- 例外:
IOException
- 例外発生時にスローされる
-
setProperties
public void setProperties(Properties prop)
インタフェースからコピーされた説明:DocumentImporter
プロパティをセットします。
Set properties.- 定義:
setProperties
インタフェース内DocumentImporter
- パラメータ:
prop
- プロパティ
-
setProperty
public void setProperty(String key, String value)
インタフェースからコピーされた説明:DocumentImporter
プロパティをセットします。
Set a property key and value.- 定義:
setProperty
インタフェース内DocumentImporter
- パラメータ:
key
- プロパティのキーvalue
- プロパティの値
-
debugPrint
public void debugPrint(Document doc)
Print document for debugging- パラメータ:
doc
- target Document to print debug
-
-