Class FieldReportTransformerConfig
- All Implemented Interfaces:
Labelable
A utility tagger that reports in a CSV file the fields discovered in a crawl session, captured at the point of your choice in the importing process. If you use this class to report on all fields discovered, make sure you use it as a post-parse handler, before you are limiting which fields you want to keep.
The report will list one field per row, along with a few sample values (3 by default). The samples will be the first ones encountered.
This handler does not impact the data being imported at all (it only reads it). It also do not store the "content" as a field.
When not specified with setFile(Path), a file called
"field-report.csv" will be created in the working directory.
Can be used both as a pre-parse or post-parse handler.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleangetFile()intintinthashCode()booleanbooleansetMaxSamples(int maxSamples) setTruncateSamplesAt(int truncateSamplesAt) setWithHeaders(boolean withHeaders) setWithOccurences(boolean withOccurences) toString()Methods inherited from class com.norconex.importer.handler.BaseLabelableConfig
getLabel, setLabel
-
Field Details
-
DEFAULT_MAX_SAMPLES
public static final int DEFAULT_MAX_SAMPLES- See Also:
-
DEFAULT_FILE
-
-
Constructor Details
-
FieldReportTransformerConfig
public FieldReportTransformerConfig()
-
-
Method Details
-
getMaxSamples
public int getMaxSamples() -
getFile
-
isWithHeaders
public boolean isWithHeaders() -
isWithOccurences
public boolean isWithOccurences() -
getTruncateSamplesAt
public int getTruncateSamplesAt() -
setMaxSamples
- Returns:
this.
-
setFile
- Returns:
this.
-
setWithHeaders
- Returns:
this.
-
setWithOccurences
- Returns:
this.
-
setTruncateSamplesAt
- Returns:
this.
-
equals
- Overrides:
equalsin classBaseLabelableConfig
-
canEqual
- Overrides:
canEqualin classBaseLabelableConfig
-
hashCode
public int hashCode()- Overrides:
hashCodein classBaseLabelableConfig
-
toString
- Overrides:
toStringin classBaseLabelableConfig
-