Class LogicalTypeCountryEN

    • Constructor Detail

      • LogicalTypeCountryEN

        public LogicalTypeCountryEN​(PluginDefinition plugin)
                             throws java.io.FileNotFoundException
        Throws:
        java.io.FileNotFoundException
    • Method Detail

      • isValidSet

        public java.lang.String isValidSet​(AnalyzerContext context,
                                           long matchCount,
                                           long realSamples,
                                           java.lang.String currentRegExp,
                                           FactsTypeBased facts,
                                           java.util.Map<java.lang.String,​java.lang.Long> cardinality,
                                           java.util.Map<java.lang.String,​java.lang.Long> outliers,
                                           Shapes shapes,
                                           AnalysisConfig analysisConfig)
        Description copied from class: LogicalType
        Given the data to date as embodied by the arguments return null if we think this is an instance of this logical type, if not return a new suitable pattern.
        Overrides:
        isValidSet in class LogicalTypeFiniteSimple
        Parameters:
        context - The context used to interpret the Data Stream (for example, stream name, date resolution mode, etc)
        matchCount - Number of samples that match so far (as determined by isValid()
        realSamples - Number of real (i.e. non-blank and non-null) samples that we have processed so far.
        currentRegExp - The current Regular Expression that we matched against
        facts - Facts (min, max, sum) for the analysis to date (optional - i.e. maybe null)
        cardinality - Cardinality set, up to the maximum maintained
        outliers - Outlier set, up to the maximum maintained
        shapes - Shapes observed
        analysisConfig - The Configuration of the current analysis
        Returns:
        Null if we think this is an instance of this logical type (backout pattern otherwise)