com.exasol.adapter.document.documentfetcher.files.segmentation.SegmentMatcher Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of virtual-schema-common-document-files Show documentation
Show all versions of virtual-schema-common-document-files Show documentation
Adapter for document data access from files.
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);
}