AbstractRecordGrouping implements IRecordGrouping<TYPE> { public TSwooshGrouping<TYPE> getSwooshGrouping() { return this.swooshGrouping; }  @Override void setColumnDelimiter(String columnDelimiter); @Override void setIsLinkToPrevious(Boolean isLinkToPrevious); @Deprecated @Override void setAcceptableThreshold(float acceptableThreshold); boolean isOutputDistDetails(); Boolean getIsDisplayAttLabels(); @Override void setIsOutputDistDetails(boolean isOutputDistDetails); void setOrginalInputColumnSize(int originalInputColumnSize); @Deprecated @Override void setIsComputeGrpQuality(Boolean isComputeGrpQuality); int getOriginalInputColumnSize(); @Override void setIsDisplayAttLabels(Boolean isDisplayAttLabels); void setIsGIDStringType(Boolean isGIDStringType); @Override void setRecordLinkAlgorithm(RecordMatcherType algorithm); @Override void doGroup(TYPE[] inputRow); @Override void end(); @Deprecated @Override void add(Map<String, String> matchingColumn); @Override void addMatchRule(List<Map<String, String>> matchRule); @Override void setSurvivorShipAlgorithmParams(SurvivorShipAlgorithmParams survivorShipAlgorithmParams); List<List<Map<String, String>>> getMultiMatchRules(); void outputRichRecord(RichRecord row); @Override void initialize(); CombinedRecordMatcher getCombinedRecordMatcher(); @Override void setIsPassOriginalValue(Boolean isPassOriginal); void setIsStoreOndisk(Boolean isStoreOndisk); void setColumnDatePatternMap(Map<String, String> columnMap); Map<String, String> getColumnDatePatternMap(); TSwooshGrouping<TYPE> getSwooshGrouping(); static final float DEFAULT_THRESHOLD; }
@Test public void testGetSwooshGrouping() { recordGroup = new AbstractRecordGrouping<String>() { @Override protected void outputRow(String[] row) { groupingRecords.add(row); } @Override protected String incrementGroupSize(String oldGroupSize) { String newGroupSize = String.valueOf(Integer.parseInt(String.valueOf(oldGroupSize)) + 1); return newGroupSize; } @Override protected String castAsType(Object objectValue) { String column = String.valueOf(objectValue); return column; } @Override protected boolean isMaster(String col) { return "true".equals(col); } @Override protected String[] createTYPEArray(int size) { String[] arrays = new String[size]; return arrays; } @Override protected void outputRow(RichRecord row) { } }; Assert.assertNotNull("The attribute swooshGrouping should not be null", ((AbstractRecordGrouping<String>) recordGroup).getSwooshGrouping()); }