Class FsQueueConfig
java.lang.Object
com.norconex.committer.core.batch.queue.impl.FsQueueConfig
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanintThe number of documents to be queued in a batch on disk before consuming that batch.intThe maximum number of files to be queued on disk in a given folders.Establishes how to handle commit failures.inthashCode()booleanDuring initialization, whether to attempt committing any leftover files in the committer queue from a previous crawl session.setBatchSize(int batchSize) The number of documents to be queued in a batch on disk before consuming that batch.setCommitLeftoversOnInit(boolean commitLeftoversOnInit) During initialization, whether to attempt committing any leftover files in the committer queue from a previous crawl session.setMaxPerFolder(int maxPerFolder) The maximum number of files to be queued on disk in a given folders.toString()
-
Field Details
-
DEFAULT_BATCH_SIZE
public static final int DEFAULT_BATCH_SIZE- See Also:
-
DEFAULT_MAX_PER_FOLDER
public static final int DEFAULT_MAX_PER_FOLDER- See Also:
-
-
Constructor Details
-
FsQueueConfig
public FsQueueConfig()
-
-
Method Details
-
getBatchSize
public int getBatchSize()The number of documents to be queued in a batch on disk before consuming that batch. Default is 20. -
getMaxPerFolder
public int getMaxPerFolder()The maximum number of files to be queued on disk in a given folders. A batch size can sometimes be too big for some file systems to handle efficiently. Having this number lower than the batch size allows to have large batches without having too many files in a single directory. Default is 500. -
isCommitLeftoversOnInit
public boolean isCommitLeftoversOnInit()During initialization, whether to attempt committing any leftover files in the committer queue from a previous crawl session. Leftovers are typically associated with an abnormal termination (E.g., prematurely ended). -
getOnCommitFailure
Establishes how to handle commit failures. -
setBatchSize
The number of documents to be queued in a batch on disk before consuming that batch. Default is 20.- Returns:
this.
-
setMaxPerFolder
The maximum number of files to be queued on disk in a given folders. A batch size can sometimes be too big for some file systems to handle efficiently. Having this number lower than the batch size allows to have large batches without having too many files in a single directory. Default is 500.- Returns:
this.
-
setCommitLeftoversOnInit
During initialization, whether to attempt committing any leftover files in the committer queue from a previous crawl session. Leftovers are typically associated with an abnormal termination (E.g., prematurely ended).- Returns:
this.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-