com.exasol.adapter.document.mapping.TableKeyFetcher 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 Show documentation
Show all versions of virtual-schema-common-document Show documentation
Common module of Exasol Virtual Schema Adapters for Document Data Sources.
The newest version!
package com.exasol.adapter.document.mapping;
import java.util.List;
/**
* This interfaces tries to fetch a global key for a remote table.
*/
public interface TableKeyFetcher {
/**
* This method tries to build a global key from given column mappings.
*
* @param tableName name of the remote table
* @param mappedColumns available column mappings
* @return global key columns
* @throws NoKeyFoundException if no fitting key was found
*/
List fetchKeyForTable(String tableName, List mappedColumns)
throws NoKeyFoundException;
/**
* {@link TableKeyFetcher}s throw this exception if they did not find a fitting key.
*/
class NoKeyFoundException extends Exception {
private static final long serialVersionUID = 7924854713502228769L;
}
}