Package com.google.refine.model.recon
Class StandardReconConfig
java.lang.Object
com.google.refine.model.recon.ReconConfig
com.google.refine.model.recon.StandardReconConfig
- Direct Known Subclasses:
DataExtensionReconConfig
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classprotected static classprotected static classstatic classprotected static class -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal booleanfinal intfinal Stringfinal Stringfinal Stringfinal Stringfinal StringFields inherited from class com.google.refine.model.recon.ReconConfig
LOGGER, s_opClassToName, s_opNameToClass -
Constructor Summary
ConstructorsConstructorDescriptionStandardReconConfig(String service, String identifierSpace, String schemaSpace, ReconType type, boolean autoMatch, int batchSize, List<StandardReconConfig.ColumnDetail> columnDetails, int limit) StandardReconConfig(String service, String identifierSpace, String schemaSpace, String typeID, String typeName, boolean autoMatch, int batchSize, List<StandardReconConfig.ColumnDetail> columnDetails) StandardReconConfig(String service, String identifierSpace, String schemaSpace, String typeID, String typeName, boolean autoMatch, int batchSize, List<StandardReconConfig.ColumnDetail> columnDetails, int limit) -
Method Summary
Modifier and TypeMethodDescriptionbatchRecon(List<ReconJob> jobs, long historyEntryID) breakWords(String s) voidcomputeFeatures(Recon recon, String text) Recomputes the features associated with this reconciliation object (only if we have at least one candidate).createNewRecon(long historyEntryID) protected ReconcreateReconServiceResults(String text, com.fasterxml.jackson.databind.node.ArrayNode resultsList, long historyEntryID) createSimpleJob(String query) intgetBatchSize(int rowCount) getBriefDescription(Project project, String columnName) getMode()Returns the identifier for the reconciliation mode, as serialized in JSON.static StandardReconConfigreconstruct(String json) protected static doublewordDistance(String s1, String s2) protected static doublewordDistance(Set<String> longWords, Set<String> shortWords) Methods inherited from class com.google.refine.model.recon.ReconConfig
getClassFromMode, registerReconConfig, save
-
Field Details
-
service
-
identifierSpace
-
schemaSpace
-
typeID
-
typeName
-
autoMatch
public final boolean autoMatch -
batchSize
public final int batchSize -
columnDetails
-
s_stopWords
-
-
Constructor Details
-
StandardReconConfig
-
StandardReconConfig
-
StandardReconConfig
public StandardReconConfig(String service, String identifierSpace, String schemaSpace, String typeID, String typeName, boolean autoMatch, int batchSize, List<StandardReconConfig.ColumnDetail> columnDetails, int limit) - Parameters:
service-identifierSpace-schemaSpace-typeID-typeName-autoMatch-columnDetails-limit- maximum number of results to return (0 = default)
-
-
Method Details
-
reconstruct
- Throws:
IOException
-
getReconType
-
getBatchSize
public int getBatchSize(int rowCount) - Specified by:
getBatchSizein classReconConfig
-
getBriefDescription
- Specified by:
getBriefDescriptionin classReconConfig
-
createSimpleJob
-
createJob
- Specified by:
createJobin classReconConfig
-
batchRecon
- Specified by:
batchReconin classReconConfig
-
createNewRecon
- Specified by:
createNewReconin classReconConfig
-
createReconServiceResults
-
computeFeatures
Recomputes the features associated with this reconciliation object (only if we have at least one candidate).- Parameters:
text- the cell value to compare the reconciliation data to
-
wordDistance
-
wordDistance
-
breakWords
-
getMode
Description copied from class:ReconConfigReturns the identifier for the reconciliation mode, as serialized in JSON. This is the same identifier that was used to register the registration mode. Jackson already adds the mode during serialization hence the JsonIgnore here.- Specified by:
getModein classReconConfig
-