@Override public int getNullCount() { if (_nullValueAnnotation == null) { return _nullCount; } return _nullValueAnnotation.getRowCount(); }
public Integer getNumBlank() { return _blankAnnotation.getRowCount(); } }
public int getNullCount() { return _nullAnnotation.getRowCount(); }
public int getObservationCount() { return _rowAnnotation.getRowCount(); }
public int getNumNull() { return _nullAnnotation.getRowCount(); }
public int getObservationCount() { return _rowAnnotation.getRowCount(); }
public int getNumNull() { return _nullAnnotation.getRowCount(); }
public int getNullCount() { return _nullAnnotation.getRowCount(); }
@Override public Integer getCount(final String value) { final RowAnnotation annotation = _valueAnnotations.get(value); if (annotation == null) { return null; } return annotation.getRowCount(); }
@Metric(value = "Unexpected value count") @Override public Integer getUnexpectedValueCount() { return _nonMatchingValuesAnnotation.getRowCount(); }
@Metric("Null count") @Override public int getNullCount() { return _nullAnnotation.getRowCount(); }
public int getAnnotatedRowCount() { return getAnnotation().getRowCount(); } }
public int getCategoryCount(final String category) { final RowAnnotation annotation = getCategoryRowAnnotation(category); return annotation.getRowCount(); }
@Metric(order = 3, value = "Invalid row count") public int getInvalidRowCount() { return getAnnotation().getRowCount(); } }
@Override public Collection<ValueFrequency> getValueCounts() { final Set<ValueFrequency> result = new TreeSet<>(); for (final Entry<String, RowAnnotation> entry : _valueAnnotations.entrySet()) { result.add(new SingleValueFrequency(entry.getKey(), entry.getValue().getRowCount())); } final int nullCount = getNullCount(); if (nullCount > 0) { result.add(new SingleValueFrequency(null, nullCount)); } final Integer unexpectedCount = getUnexpectedValueCount(); if (unexpectedCount > 0) { result.add(new CompositeValueFrequency(LabelUtils.UNEXPECTED_LABEL, unexpectedCount)); } return result; }
final int count = annotation.getRowCount(); uniqueCount = countValue(recordUniqueValues, topValues, uniqueValues, uniqueCount, value, count); i++; if (_nullValueAnnotation.getRowCount() > 0) { distinctCount = 1 + entryCount; } else {
private Crosstab<Serializable> createCrosstab(final DefaultPatternFinder patternFinder) { final Crosstab<Serializable> crosstab = createCrosstab(); final Set<Entry<TokenPattern, RowAnnotation>> entrySet = patternFinder.getAnnotations().entrySet(); // sort the entries so that the ones with the highest amount of // matches are at the top final Set<Entry<TokenPattern, RowAnnotation>> sortedEntrySet = new TreeSet<>((o1, o2) -> { int result = o2.getValue().getRowCount() - o1.getValue().getRowCount(); if (result == 0) { result = o1.getKey().toSymbolicString().compareTo(o2.getKey().toSymbolicString()); } return result; }); sortedEntrySet.addAll(entrySet); for (final Entry<TokenPattern, RowAnnotation> entry : sortedEntrySet) { final TokenPattern pattern = entry.getKey(); final CrosstabNavigator<Serializable> nav = crosstab.navigate(); nav.where(DIMENSION_NAME_PATTERN, pattern.toSymbolicString()); nav.where(DIMENSION_NAME_MEASURES, MEASURE_MATCH_COUNT); final RowAnnotation annotation = entry.getValue(); final int size = annotation.getRowCount(); nav.put(size, true); nav.attach(AnnotatedRowsResult.createIfSampleRowsAvailable(annotation, _rowAnnotationFactory, column)); nav.where(DIMENSION_NAME_MEASURES, MEASURE_SAMPLE); nav.put(pattern.getSampleString(), true); } return crosstab; }
final int rowCount = annotation.getRowCount(); nav.where(measureDimension, name).put(rowCount); if (rowCount > 0) {
final int annotatedRowCount = result.getAnnotation().getRowCount(); final DCLabel label = DCLabel.dark(descriptionText + " (" + result.getAnnotatedRowCount() + ")"); label.setFont(WidgetUtils.FONT_HEADER1);
nav.where(measureDimension, MEASURE_HIGHEST_DATE).put(toString(maxDate)); RowAnnotation annotation = delegate.getMaxDateAnnotation(); if (annotation.getRowCount() > 0) { nav.attach(AnnotatedRowsResult.createIfSampleRowsAvailable(annotation, _annotationFactory, column)); nav.where(measureDimension, MEASURE_LOWEST_DATE).put(toString(minDate)); annotation = delegate.getMinDateAnnotation(); if (annotation.getRowCount() > 0) { nav.attach(AnnotatedRowsResult.createIfSampleRowsAvailable(annotation, _annotationFactory, column)); nav.where(measureDimension, MEASURE_HIGHEST_TIME).put(toString(maxTime)); annotation = delegate.getMaxTimeAnnotation(); if (annotation.getRowCount() > 0) { nav.attach(AnnotatedRowsResult.createIfSampleRowsAvailable(annotation, _annotationFactory, column)); nav.where(measureDimension, MEASURE_LOWEST_TIME).put(toString(minTime)); annotation = delegate.getMinTimeAnnotation(); if (annotation.getRowCount() > 0) { nav.attach(AnnotatedRowsResult.createIfSampleRowsAvailable(annotation, _annotationFactory, column));