Class DefaultParserConfig
java.lang.Object
com.norconex.importer.handler.BaseLabelableConfig
com.norconex.importer.handler.BaseDocHandlerConfig
com.norconex.importer.handler.parser.impl.DefaultParserConfig
- All Implemented Interfaces:
Labelable
Parser class when no other handlers are specified.
The importer uses Apache Tika parser in its own way with default
settings common for most senarios.
If you want to use and configure Tika yourself, use
TikaParser.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanboolean@NonNull EmbeddedConfigintMaximum number of top-level documents this handler parses at once.JVM-wide reusable SAX parser and DOM builder pool size.inthashCode()setErrorsSaveDir(Path errorsSaveDir) setPoolSize(int poolSize) setXmlParserPoolSize(Integer size) toString()Methods inherited from class com.norconex.importer.handler.BaseLabelableConfig
getLabel, setLabel
-
Constructor Details
-
DefaultParserConfig
public DefaultParserConfig()
-
-
Method Details
-
setXmlParserPoolSize
-
setPoolSize
-
getPoolSize
public int getPoolSize()Maximum number of top-level documents this handler parses at once. Zero (the default) sets no limit. All documents share the same Tika parser either way; a limit only makes the extra ones wait. -
getXmlParserPoolSize
JVM-wide reusable SAX parser and DOM builder pool size. Null leaves Tika's size as it is (10 by default). Must be positive when specified. The pool being shared by the JVM, the largest size asked for by any handler wins. -
getErrorsSaveDir
-
getOcrConfig
-
getEmbeddedConfig
-
getGrobidConfig
-
setErrorsSaveDir
- Returns:
this.
-
equals
- Overrides:
equalsin classBaseLabelableConfig
-
canEqual
- Overrides:
canEqualin classBaseLabelableConfig
-
hashCode
public int hashCode()- Overrides:
hashCodein classBaseLabelableConfig
-
toString
- Overrides:
toStringin classBaseLabelableConfig
-