@Override public void annotate(final InputRow row, final int distinctCount, final RowAnnotation annotation) { for (int i = 0; i < distinctCount; i++) { annotate(row, annotation); } }
@Override public boolean hasSampleRows(final RowAnnotation annotation) { final List<InputRow> sampleRows = getSampleRows(annotation); if (sampleRows == null || sampleRows.isEmpty()) { return false; } return true; } }
@Override public void resetAnnotation(final RowAnnotation annotation) { super.resetAnnotation(annotation); _storage.remove(annotation); }
@Override public void transferAnnotations(final RowAnnotation from, final RowAnnotation to) { super.transferAnnotations(from, to); final Collection<InputRow> fromCollection = _storage.get(from); if (fromCollection == null || fromCollection.isEmpty()) { return; } final Collection<InputRow> toCollection = getInputRowCollection(fromCollection.size(), to); addInputRowsToCollection(toCollection, fromCollection); _storage.remove(from); }
@Override public void annotate(final InputRow row, final RowAnnotation annotation) { super.annotate(row, annotation); final Collection<InputRow> rowCollection = getInputRowCollection(10, annotation); if (rowCollection != null) { synchronized (rowCollection) { if (rowCollection.size() >= _maxSampleRecords) { return; } rowCollection.add(row); } } }