|
Textractor API textractor-720 (20091120123250) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttextractor.database.TextractorDBDocumentSequence
public class TextractorDBDocumentSequence
A document sequence that reads documents from the database.
| Field Summary | |
|---|---|
protected int |
chunkSize
|
protected DbManager |
dbm
|
| Constructor Summary | |
|---|---|
TextractorDBDocumentSequence(DbManager dbm,
DocumentFactory factory,
int chunkSize)
Construct the sequence with a database manager. |
|
TextractorDBDocumentSequence(DbManager dbm,
TextractorDocumentFactory factory,
int chunkSize,
SentenceFilter filter)
Construct the sequence with a database manager and a sentence filter. |
|
TextractorDBDocumentSequence(DocumentFactory factory,
int chunkSize)
Construct the sequence, creating a new database manager with default connection parameters. |
|
| Method Summary | |
|---|---|
void |
close()
Releases database resources. |
DocumentFactory |
factory()
|
DocumentIterator |
iterator()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected DbManager dbm
protected int chunkSize
| Constructor Detail |
|---|
public TextractorDBDocumentSequence(DbManager dbm,
DocumentFactory factory,
int chunkSize)
dbm - The database manager to connect to the textractor databasefactory - The document factory that should be used to create the documents returned by this sequence.chunkSize - Number of documents to retrieve from the database in on chunk.
public TextractorDBDocumentSequence(DocumentFactory factory,
int chunkSize)
throws TextractorDatabaseException
factory - The document factory that should be used to create the documents returned by this sequence.chunkSize - Number of documents to retrieve from the database in on chunk.
TextractorDatabaseException
public TextractorDBDocumentSequence(DbManager dbm,
TextractorDocumentFactory factory,
int chunkSize,
SentenceFilter filter)
dbm - The database manager to connect to the textractor databasefactory - The document factory that should be used to create the documents returned by this sequence.chunkSize - Number of documents to retrieve from the database in on chunk.filter - A filter to decide which sentences from the database should be returned by this sequence.| Method Detail |
|---|
public DocumentIterator iterator()
iterator in interface DocumentSequencepublic DocumentFactory factory()
factory in interface DocumentSequencepublic void close()
close in interface DocumentSequenceclose in interface Closeable
|
Textractor API textractor-720 (20091120123250) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||