Package io.trino.plugin.hive.s3select
Class S3SelectPushdown
java.lang.Object
io.trino.plugin.hive.s3select.S3SelectPushdown
S3SelectPushdown uses Amazon S3 Select to push down queries to Amazon S3. This allows Presto to retrieve only a
subset of data rather than retrieving the full S3 object thus improving Presto query performance.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisCompressionCodecSupported(org.apache.hadoop.mapred.InputFormat<?, ?> inputFormat, String path) static booleanisSplittable(boolean s3SelectPushdownEnabled, Properties schema, org.apache.hadoop.mapred.InputFormat<?, ?> inputFormat, String path) static booleanshouldEnablePushdownForTable(ConnectorSession session, Table table, String path, Optional<Partition> optionalPartition)
-
Method Details
-
isCompressionCodecSupported
public static boolean isCompressionCodecSupported(org.apache.hadoop.mapred.InputFormat<?, ?> inputFormat, String path) -
isSplittable
public static boolean isSplittable(boolean s3SelectPushdownEnabled, Properties schema, org.apache.hadoop.mapred.InputFormat<?, ?> inputFormat, String path) -
shouldEnablePushdownForTable
public static boolean shouldEnablePushdownForTable(ConnectorSession session, Table table, String path, Optional<Partition> optionalPartition)
-