public JsonDatastore(String name, Resource resource, SchemaBuilder schemaBuilder) { super(name); _resourceRef = new SerializableRef<Resource>(resource); _schemaBuilderRef = new SerializableRef<SchemaBuilder>(schemaBuilder); }
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; }
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; }
public ExcelDatastore(String name, Resource resource, String filename) { super(name); _resourceRef = new SerializableRef<Resource>(resource); _filename = filename; }
public AnnotatedRowsResult(RowAnnotation annotation, RowAnnotationFactory annotationFactory, InputColumn<?>... highlightedColumns) { _annotationFactoryRef = new SerializableRef<RowAnnotationFactory>(annotationFactory); _annotation = annotation; _highlightedColumns = highlightedColumns; }
public CategorizationResult(final RowAnnotationFactory annotationFactory, final Map<String, RowAnnotation> categories) { _annotationFactoryRef = new SerializableRef<>(annotationFactory); _categories = categories; }
public AnnotatedRowsResult(final RowAnnotation annotation, final RowAnnotationFactory annotationFactory, final InputColumn<?>... highlightedColumns) { _annotationFactoryRef = new SerializableRef<>(annotationFactory); _annotation = annotation; _highlightedColumns = highlightedColumns; }
public JsonDatastore(final String name, final Resource resource, final SchemaBuilder schemaBuilder) { super(name); _resourceRef = new SerializableRef<>(resource); _schemaBuilderRef = new SerializableRef<>(schemaBuilder); }
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; }
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; }
public SingleValueDistributionResult(final String groupName, final ValueCountList topValues, final ValueCountList bottomValues, final Collection<String> uniqueValues, final int uniqueValueCount, final int distinctCount, final int totalCount, final Map<String, RowAnnotation> annotations, final RowAnnotation nullValueAnnotation, final RowAnnotationFactory annotationFactory, final InputColumn<?>[] highlightedColumns) { _groupName = groupName; _topValues = topValues; _bottomValues = bottomValues; _uniqueValues = uniqueValues; _uniqueValueCount = uniqueValueCount; _totalCount = totalCount; _distinctCount = distinctCount; _nullValueAnnotation = nullValueAnnotation; _annotations = annotations; _annotationFactoryRef = new SerializableRef<>(annotationFactory); _highlightedColumns = highlightedColumns; _nullCount = 0; }
public CategorizationResult(final RowAnnotationFactory annotationFactory, final Collection<Entry<String, RowAnnotation>> categories) { _annotationFactoryRef = new SerializableRef<>(annotationFactory); _categories = new LinkedHashMap<>(); for (final Entry<String, RowAnnotation> entry : categories) { _categories.put(entry.getKey(), entry.getValue()); } }
protected void attachResultProducer(ResultProducer resultProducer, String[] categories) throws IllegalArgumentException, NullPointerException { String key = getKey(categories); if (resultProducer == null) { resultProducers.remove(key); } else { Ref<ResultProducer> resultProducerRef = new SerializableRef<ResultProducer>(resultProducer); resultProducers.put(key, resultProducerRef); } }
/** * Constructs a {@link RepositoryFileResource} based on a * {@link RepositoryFile}. * * @param file */ public RepositoryFileResource(final RepositoryFile file) { _fileRef = new SerializableRef<>(file); _qualifiedPath = file.getQualifiedPath(); }
protected void attachResultProducer(final ResultProducer resultProducer, final String[] categories) throws IllegalArgumentException, NullPointerException { final String key = getKey(categories); if (resultProducer == null) { resultProducers.remove(key); } else { final Supplier<ResultProducer> resultProducerRef = new SerializableRef<>(resultProducer); resultProducers.put(key, resultProducerRef); } }
/** * Constructs a {@link RepositoryFileResource} based on a {@link Repository} * and a qualified path for the file * * @param repo * @param qualifiedPath */ public RepositoryFileResource(final Repository repo, final String qualifiedPath) { _qualifiedPath = qualifiedPath; final RepositoryFile file = (RepositoryFile) repo.getRepositoryNode(qualifiedPath); if (file == null) { logger.warn("Repository node did not exist: {}", qualifiedPath); } _fileRef = new SerializableRef<>(file); }
public FixedWidthDatastore(final String name, Resource resource, final String filename, final String encoding, final int fixedValueWidth, final boolean failOnInconsistencies, final boolean skipEbcdicHeader, final boolean eolPresent, final int headerLineNumber) { super(name); _filename = filename; if (resource == null) { resource = new FileResource(filename); } _resourceRef = new SerializableRef<>(resource); _encoding = encoding; _fixedValueWidth = fixedValueWidth; _valueWidths = new int[0]; _failOnInconsistencies = failOnInconsistencies; _skipEbcdicHeader = skipEbcdicHeader; _eolPresent = eolPresent; _headerLineNumber = headerLineNumber; _customColumnNames = null; }
public FixedWidthDatastore(final String name, Resource resource, final String filename, final String encoding, final int[] valueWidths, final boolean failOnInconsistencies, final boolean skipEbcdicHeader, final boolean eolPresent, final int headerLineNumber, final List<String> customColumnNames) { super(name); _filename = filename; if (resource == null) { resource = new FileResource(filename); } _resourceRef = new SerializableRef<>(resource); _encoding = encoding; _fixedValueWidth = -1; _valueWidths = valueWidths; _failOnInconsistencies = failOnInconsistencies; _skipEbcdicHeader = skipEbcdicHeader; _eolPresent = eolPresent; _headerLineNumber = headerLineNumber; _customColumnNames = customColumnNames; }
public CsvDatastore(String name, Resource resource, String filename, Character quoteChar, Character separatorChar, Character escapeChar, String encoding, boolean failOnInconsistencies, boolean multilineValues, int headerLineNumber) { super(name); _filename = filename; if (resource == null) { resource = new FileResource(filename); } _resourceRef = new SerializableRef<Resource>(resource); _quoteChar = quoteChar; _separatorChar = separatorChar; _escapeChar = escapeChar; _encoding = encoding; _failOnInconsistencies = failOnInconsistencies; _multilineValues = multilineValues; if (headerLineNumber < 0) { headerLineNumber = CsvConfiguration.NO_COLUMN_NAME_LINE; } _headerLineNumber = headerLineNumber; }
private void readObject(final ObjectInputStream stream) throws IOException, ClassNotFoundException { final ReadObjectBuilder.Adaptor adaptor = (getField, serializable) -> { final String filename = (String) getField.get("_filename", ""); final Field field = FixedWidthDatastore.class.getDeclaredField("_resourceRef"); field.setAccessible(true); final FileResource fileResource = new FileResource(filename); final SerializableRef<Resource> resourceRef = new SerializableRef<>(fileResource); field.set(serializable, resourceRef); }; ReadObjectBuilder.create(this, FixedWidthDatastore.class).readObject(stream, adaptor); }