public ValueMatchAnalyzerResult(final InputColumn<?> column, final RowAnnotationFactory rowAnnotationFactory, final Map<String, RowAnnotation> valueAnnotations, final RowAnnotation nullAnnotation, final RowAnnotation nonMatchingValuesAnnotation, final int totalCount) { _column = column; _rowAnnotationFactoryRef = new SerializableRef<>(rowAnnotationFactory); _valueAnnotations = valueAnnotations; _nullAnnotation = nullAnnotation; _nonMatchingValuesAnnotation = nonMatchingValuesAnnotation; _totalCount = totalCount; }
@Override public Resource getResource() { if (_resourceRef == null) { return null; } return _resourceRef.get(); }
public ExcelDatastore(final String name, final Resource resource, final String filename, final List<String> customColumnNames) { super(name); _resourceRef = new SerializableRef<>(resource); _filename = filename; _customColumnNames = customColumnNames; }
@Override public Resource getResource() { if (_resourceRef == null) { return null; } return _resourceRef.get(); }
public JsonDatastore(String name, Resource resource, SchemaBuilder schemaBuilder) { super(name); _resourceRef = new SerializableRef<Resource>(resource); _schemaBuilderRef = new SerializableRef<SchemaBuilder>(schemaBuilder); }
@Override public Resource getResource() { if (_resourceRef == null) { return null; } return _resourceRef.get(); }
public ExcelDatastore(String name, Resource resource, String filename) { super(name); _resourceRef = new SerializableRef<Resource>(resource); _filename = filename; }
@Override public Resource getResource() { if (_resourceRef == null) { return null; } return _resourceRef.get(); }
public AnnotatedRowsResult(RowAnnotation annotation, RowAnnotationFactory annotationFactory, InputColumn<?>... highlightedColumns) { _annotationFactoryRef = new SerializableRef<RowAnnotationFactory>(annotationFactory); _annotation = annotation; _highlightedColumns = highlightedColumns; }
public SchemaBuilder getSchemaBuilder() { return _schemaBuilderRef.get(); }
public CategorizationResult(final RowAnnotationFactory annotationFactory, final Map<String, RowAnnotation> categories) { _annotationFactoryRef = new SerializableRef<>(annotationFactory); _categories = categories; }
@Override public Resource getResource() { if (_resourceRef == null) { return null; } return _resourceRef.get(); }
public AnnotatedRowsResult(final RowAnnotation annotation, final RowAnnotationFactory annotationFactory, final InputColumn<?>... highlightedColumns) { _annotationFactoryRef = new SerializableRef<>(annotationFactory); _annotation = annotation; _highlightedColumns = highlightedColumns; }
@Override public Resource getResource() { return _resourceRef.get(); }
public JsonDatastore(final String name, final Resource resource, final SchemaBuilder schemaBuilder) { super(name); _resourceRef = new SerializableRef<>(resource); _schemaBuilderRef = new SerializableRef<>(schemaBuilder); }
@Override public Resource getResource() { return _resourceRef.get(); }
public ValueMatchAnalyzerResult(InputColumn<?> column, RowAnnotationFactory rowAnnotationFactory, Map<String, RowAnnotation> valueAnnotations, RowAnnotation nullAnnotation, RowAnnotation nonMatchingValuesAnnotation, int totalCount) { _column = column; _rowAnnotationFactoryRef = new SerializableRef<RowAnnotationFactory>(rowAnnotationFactory); _valueAnnotations = valueAnnotations; _nullAnnotation = nullAnnotation; _nonMatchingValuesAnnotation = nonMatchingValuesAnnotation; _totalCount = totalCount; }
@Override public boolean hasAnnotatedRows(String value) { if (_rowAnnotationFactoryRef.get() == null) { return false; } if (value == null) { return true; } if (LabelUtils.UNEXPECTED_LABEL.equals(value)) { return true; } return _valueAnnotations.containsKey(value); } }
public SingleValueDistributionResult(String groupName, ValueCountList topValues, ValueCountList bottomValues, Collection<String> uniqueValues, int uniqueValueCount, int distinctCount, int totalCount, Map<String, RowAnnotation> annotations, RowAnnotation nullValueAnnotation, RowAnnotationFactory annotationFactory, InputColumn<?>[] highlightedColumns) { _groupName = groupName; _topValues = topValues; _bottomValues = bottomValues; _uniqueValues = uniqueValues; _uniqueValueCount = uniqueValueCount; _totalCount = totalCount; _distinctCount = distinctCount; _nullValueAnnotation = nullValueAnnotation; _annotations = annotations; _annotationFactoryRef = new SerializableRef<RowAnnotationFactory>(annotationFactory); _highlightedColumns = highlightedColumns; _nullCount = 0; }
/** * Gets the underlying {@link RepositoryFile}. * * @return */ public RepositoryFile getRepositoryFile() throws ResourceException { if (_fileRef == null || _fileRef.get() == null) { throw new ResourceException(this, "RepositoryFile '" + _qualifiedPath + "' is not available since it was not serializable. The RepositoryFileResource instance can " + "be recreated using a live repository and the qualified path of the file."); } return _fileRef.get(); }