presto-main/src/main/java/io/prestosql/metadata/Metadata.java/Metadata/applySample
class Metadata:    Optional<TableHandle> applySample(Session session, TableHandle table, SampleType sampleType, double sampleRatio);