CompositePatternFrequencyAnalyzer extends AbstractFrequencyAnalyzer<PatternFrequencyStatistics> { Map<String, Locale> getValuePatternSet(String originalValue) { return getValuePatternSet(originalValue, null); } CompositePatternFrequencyAnalyzer();  CompositePatternFrequencyAnalyzer(DataTypeEnum[] types);  CompositePatternFrequencyAnalyzer(List<AbstractPatternRecognizer> analyzerList);  CompositePatternFrequencyAnalyzer(List<AbstractPatternRecognizer> analyzerList, DataTypeEnum[] types); @Override boolean analyze(String... record);  }
@Test public void testAsciiAndAsiaChars() { CompositePatternFrequencyAnalyzer analyzer = new CompositePatternFrequencyAnalyzer(); Map<String, Locale> patternString1 = analyzer.getValuePatternSet("abcd1234ｩゥェ中国"); Assert.assertEquals(Collections.singleton("aaaa9999kKKCC"), patternString1.keySet()); Map<String, Locale> patternString4 = analyzer.getValuePatternSet("2008-01-01"); Assert.assertEquals(new HashSet<>(Arrays.asList(new String[] { "yyyy-MM-dd" })), patternString4.keySet()); Map<String, Locale> patternString5 = analyzer.getValuePatternSet("2008-1月-01"); Assert.assertEquals(Collections.singleton("9999-9C-99"), patternString5.keySet()); }