public class DefaultPartitionExpressionProxy extends Object implements PartitionExpressionProxy
| Constructor and Description |
|---|
DefaultPartitionExpressionProxy() |
| Modifier and Type | Method and Description |
|---|---|
String |
convertExprToFilter(byte[] expr)
Converts serialized Hive expression into filter in the format suitable for Filter.g.
|
org.apache.hadoop.hive.ql.io.sarg.SearchArgument |
createSarg(byte[] expr)
Creates SARG from serialized representation.
|
boolean |
filterPartitionsByExpr(List<org.apache.hadoop.hive.metastore.api.FieldSchema> partColumns,
byte[] expr,
String defaultPartitionName,
List<String> partitionNames)
Filters the partition names via serialized Hive expression.
|
FileFormatProxy |
getFileFormatProxy(org.apache.hadoop.hive.metastore.api.FileMetadataExprType type)
Gets a separate proxy that can be used to call file-format-specific methods.
|
org.apache.hadoop.hive.metastore.api.FileMetadataExprType |
getMetadataType(String inputFormat)
Determines the file metadata type from input format of the source table or partition.
|
public String convertExprToFilter(byte[] expr) throws org.apache.hadoop.hive.metastore.api.MetaException
PartitionExpressionProxyconvertExprToFilter in interface PartitionExpressionProxyexpr - Serialized expression.org.apache.hadoop.hive.metastore.api.MetaExceptionpublic boolean filterPartitionsByExpr(List<org.apache.hadoop.hive.metastore.api.FieldSchema> partColumns, byte[] expr, String defaultPartitionName, List<String> partitionNames) throws org.apache.hadoop.hive.metastore.api.MetaException
PartitionExpressionProxyfilterPartitionsByExpr in interface PartitionExpressionProxypartColumns - Partition columns in the underlying table.expr - Serialized expression.defaultPartitionName - Default partition name from job or server configuration.partitionNames - Partition names; the list is modified in place.org.apache.hadoop.hive.metastore.api.MetaExceptionpublic org.apache.hadoop.hive.metastore.api.FileMetadataExprType getMetadataType(String inputFormat)
PartitionExpressionProxygetMetadataType in interface PartitionExpressionProxyinputFormat - Input format name.public FileFormatProxy getFileFormatProxy(org.apache.hadoop.hive.metastore.api.FileMetadataExprType type)
PartitionExpressionProxygetFileFormatProxy in interface PartitionExpressionProxytype - The file metadata type.public org.apache.hadoop.hive.ql.io.sarg.SearchArgument createSarg(byte[] expr)
PartitionExpressionProxycreateSarg in interface PartitionExpressionProxyexpr - SARG, serialized as Kryo.Copyright © 2019 The Apache Software Foundation. All Rights Reserved.