AbstractCommitter
@Deprecated public abstract class BatchableCommitter extends Object implements ICommitter
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_BATCH_SIZE
Deprecated.
Default batch size.
|
DEFAULT_DOCUMENT_REFERENCE
Constructor and Description |
---|
BatchableCommitter()
Deprecated.
Constructor.
|
BatchableCommitter(int batchSize)
Deprecated.
Creates a new instance initialized to the given batch size.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Deprecated.
|
int |
getBatchSize()
Deprecated.
Gets the batch size.
|
int |
hashCode()
Deprecated.
|
void |
queueAdd(String reference,
File document,
Properties metadata)
Deprecated.
Queues a new or modified document.
|
protected abstract void |
queueBatchableAdd(String reference,
File document,
Properties metadata)
Deprecated.
Queues a document to be added.
|
protected abstract void |
queueBatchableRemove(String reference,
File document,
Properties metadata)
Deprecated.
Queues a document to be deleted.
|
void |
queueRemove(String ref,
File document,
Properties metadata)
Deprecated.
Queues a document for removal.
|
void |
setBatchSize(int batchSize)
Deprecated.
Sets the batch size.
|
String |
toString()
Deprecated.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
commit
public static final int DEFAULT_BATCH_SIZE
public BatchableCommitter()
public BatchableCommitter(int batchSize)
batchSize
- batch sizepublic int getBatchSize()
public void setBatchSize(int batchSize)
batchSize
- batch sizepublic final void queueAdd(String reference, File document, Properties metadata)
ICommitter
queueAdd
in interface ICommitter
reference
- document reference (e.g. URL)document
- text documentmetadata
- document metadataprotected abstract void queueBatchableAdd(String reference, File document, Properties metadata)
reference
- document referencedocument
- document filemetadata
- document metadatapublic final void queueRemove(String ref, File document, Properties metadata)
ICommitter
queueRemove
in interface ICommitter
ref
- document reference (e.g. URL)document
- text documentmetadata
- document metadataprotected abstract void queueBatchableRemove(String reference, File document, Properties metadata)
reference
- document referencedocument
- document filemetadata
- document metadataCopyright © 2009-2014 Norconex Inc.. All Rights Reserved.