Class StandardReconConfig

java.lang.Object
com.google.refine.model.recon.ReconConfig
com.google.refine.model.recon.StandardReconConfig
Direct Known Subclasses:
DataExtensionReconConfig

public class StandardReconConfig extends ReconConfig
  • Field Details

    • service

      public final String service
    • identifierSpace

      public final String identifierSpace
    • schemaSpace

      public final String schemaSpace
    • typeID

      public final String typeID
    • typeName

      public final String typeName
    • autoMatch

      public final boolean autoMatch
    • batchSize

      public final int batchSize
    • columnDetails

      public final List<StandardReconConfig.ColumnDetail> columnDetails
    • s_stopWords

      protected static final Set<String> s_stopWords
  • Constructor Details

  • Method Details

    • reconstruct

      public static StandardReconConfig reconstruct(String json) throws IOException
      Throws:
      IOException
    • getReconType

      public ReconType getReconType()
    • getBatchSize

      public int getBatchSize(int rowCount)
      Specified by:
      getBatchSize in class ReconConfig
    • getBriefDescription

      public String getBriefDescription(Project project, String columnName)
      Specified by:
      getBriefDescription in class ReconConfig
    • createSimpleJob

      public ReconJob createSimpleJob(String query)
    • createJob

      public ReconJob createJob(Project project, int rowIndex, Row row, String columnName, Cell cell)
      Specified by:
      createJob in class ReconConfig
    • batchRecon

      public List<Recon> batchRecon(List<ReconJob> jobs, long historyEntryID)
      Specified by:
      batchRecon in class ReconConfig
    • createNewRecon

      public Recon createNewRecon(long historyEntryID)
      Specified by:
      createNewRecon in class ReconConfig
    • createReconServiceResults

      protected Recon createReconServiceResults(String text, com.fasterxml.jackson.databind.node.ArrayNode resultsList, long historyEntryID)
    • computeFeatures

      public void computeFeatures(Recon recon, String text)
      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

      protected static double wordDistance(String s1, String s2)
    • wordDistance

      protected static double wordDistance(Set<String> longWords, Set<String> shortWords)
    • breakWords

      protected static Set<String> breakWords(String s)
    • getMode

      public String getMode()
      Description copied from class: ReconConfig
      Returns 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:
      getMode in class ReconConfig