public class BaseSchema extends Object implements Schema, CsvAwareSchema
| Constructor and Description |
|---|
BaseSchema() |
| Modifier and Type | Method and Description |
|---|---|
void |
addExtractableField(String label,
String jsonPath)
Add a single field to the map of extractable fields.
|
BaseSchema |
addField(JsonBranch branch) |
BaseSchema |
addField(String fieldName) |
BaseSchema |
addFields(String... fields) |
List<Category> |
getCategories() |
List<JsonBranch> |
getCollectionPaths()
Return collection paths.
|
Map<String,String> |
getExtractableFields()
Get fields for which the values should be extracted from the records.
|
List<FieldGroup> |
getFieldGroups()
Field groups used in completeness sub-dimensions.
|
Format |
getFormat() |
List<String> |
getHeader() |
List<String> |
getNoLanguageFields()
List of field which can be skipped in the language extraction.
|
JsonBranch |
getPathByLabel(String label)
Returns a path by its label.
|
List<JsonBranch> |
getPaths()
The list of fields to investigate in most of the measurements.
|
List<JsonBranch> |
getRootChildrenPaths()
Return the paths of root's direct children.
|
List<RuleChecker> |
getRuleCheckers() |
Map<String,String> |
getSolrFields()
Map of fields covered in TF-IDF extraction.
|
void |
setExtractableFields(Map<String,String> extractableFields)
Set the extractable fields.
|
BaseSchema |
setFormat(Format format) |
String |
toString() |
public BaseSchema addField(JsonBranch branch)
public BaseSchema addField(String fieldName)
public BaseSchema addFields(String... fields)
public BaseSchema setFormat(Format format)
public List<JsonBranch> getCollectionPaths()
SchemagetCollectionPaths in interface Schemapublic List<JsonBranch> getRootChildrenPaths()
SchemagetRootChildrenPaths in interface Schemapublic List<JsonBranch> getPaths()
Schemapublic JsonBranch getPathByLabel(String label)
SchemagetPathByLabel in interface Schemalabel - The label to look for.public List<FieldGroup> getFieldGroups()
SchemagetFieldGroups in interface Schemapublic List<String> getNoLanguageFields()
SchemagetNoLanguageFields in interface Schemapublic Map<String,String> getSolrFields()
Schema
solrFields.put("Proxy/dc:title", "dc_title_txt");
getSolrFields in interface Schemapublic Map<String,String> getExtractableFields()
SchemagetExtractableFields in interface Schemapublic void setExtractableFields(Map<String,String> extractableFields)
SchemasetExtractableFields in interface SchemaextractableFields - The extractable fields.Schema.getExtractableFields()public void addExtractableField(String label, String jsonPath)
SchemaaddExtractableField in interface Schemalabel - The label of the field.jsonPath - JSON path expression.public List<Category> getCategories()
getCategories in interface Schemapublic List<RuleChecker> getRuleCheckers()
getRuleCheckers in interface Schemapublic List<String> getHeader()
getHeader in interface CsvAwareSchemaCopyright © 2020. All rights reserved.