All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.exasol.adapter.document.documentfetcher.files.segmentation.SegmentMatcher Maven / Gradle / Ivy

There is a newer version: 8.1.3
Show newest version
package com.exasol.adapter.document.documentfetcher.files.segmentation;

import java.util.List;

import com.exasol.adapter.document.documentfetcher.files.RemoteFile;

/**
 * Interface for classes that separates a set of files into multiple segments.
 */
public interface SegmentMatcher {
    /**
     * Matches files that belong to the {@link SegmentDescription} passed to the constructor.
     *
     * @param remoteFile file to match
     * @return List of segments of that file that matched. Empty list if file did not match.
     */
    List getMatchingSegmentsFor(RemoteFile remoteFile);

    /**
     * Get if a given file contains any relevant segment.
     * 
     * @param remoteFile file to match
     * @return {@code true} if the file contains at least one relevant segment
     */
    boolean matchesFile(final RemoteFile remoteFile);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy