Package io.trino.plugin.hive
Class HiveTableProperties
- java.lang.Object
-
- io.trino.plugin.hive.HiveTableProperties
-
public class HiveTableProperties extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringANALYZE_COLUMNS_PROPERTYstatic StringAVRO_SCHEMA_URLstatic StringBUCKET_COUNT_PROPERTYstatic StringBUCKETED_BY_PROPERTYstatic StringBUCKETING_VERSIONstatic StringCSV_ESCAPEstatic StringCSV_QUOTEstatic StringCSV_SEPARATORstatic StringEXTERNAL_LOCATION_PROPERTYstatic StringNULL_FORMAT_PROPERTYstatic StringORC_BLOOM_FILTER_COLUMNSstatic StringORC_BLOOM_FILTER_FPPstatic StringPARTITIONED_BY_PROPERTYstatic StringSKIP_FOOTER_LINE_COUNTstatic StringSKIP_HEADER_LINE_COUNTstatic StringSORTED_BY_PROPERTYstatic StringSTORAGE_FORMAT_PROPERTYstatic StringTEXTFILE_FIELD_SEPARATORstatic StringTEXTFILE_FIELD_SEPARATOR_ESCAPEstatic StringTRANSACTIONAL
-
Constructor Summary
Constructors Constructor Description HiveTableProperties(HiveConfig config, OrcWriterConfig orcWriterConfig)
-
Method Summary
-
-
-
Field Detail
-
EXTERNAL_LOCATION_PROPERTY
public static final String EXTERNAL_LOCATION_PROPERTY
- See Also:
- Constant Field Values
-
STORAGE_FORMAT_PROPERTY
public static final String STORAGE_FORMAT_PROPERTY
- See Also:
- Constant Field Values
-
PARTITIONED_BY_PROPERTY
public static final String PARTITIONED_BY_PROPERTY
- See Also:
- Constant Field Values
-
BUCKETED_BY_PROPERTY
public static final String BUCKETED_BY_PROPERTY
- See Also:
- Constant Field Values
-
BUCKETING_VERSION
public static final String BUCKETING_VERSION
- See Also:
- Constant Field Values
-
BUCKET_COUNT_PROPERTY
public static final String BUCKET_COUNT_PROPERTY
- See Also:
- Constant Field Values
-
SORTED_BY_PROPERTY
public static final String SORTED_BY_PROPERTY
- See Also:
- Constant Field Values
-
ANALYZE_COLUMNS_PROPERTY
public static final String ANALYZE_COLUMNS_PROPERTY
- See Also:
- Constant Field Values
-
ORC_BLOOM_FILTER_COLUMNS
public static final String ORC_BLOOM_FILTER_COLUMNS
- See Also:
- Constant Field Values
-
ORC_BLOOM_FILTER_FPP
public static final String ORC_BLOOM_FILTER_FPP
- See Also:
- Constant Field Values
-
AVRO_SCHEMA_URL
public static final String AVRO_SCHEMA_URL
- See Also:
- Constant Field Values
-
TEXTFILE_FIELD_SEPARATOR
public static final String TEXTFILE_FIELD_SEPARATOR
- See Also:
- Constant Field Values
-
TEXTFILE_FIELD_SEPARATOR_ESCAPE
public static final String TEXTFILE_FIELD_SEPARATOR_ESCAPE
- See Also:
- Constant Field Values
-
NULL_FORMAT_PROPERTY
public static final String NULL_FORMAT_PROPERTY
- See Also:
- Constant Field Values
-
SKIP_HEADER_LINE_COUNT
public static final String SKIP_HEADER_LINE_COUNT
- See Also:
- Constant Field Values
-
SKIP_FOOTER_LINE_COUNT
public static final String SKIP_FOOTER_LINE_COUNT
- See Also:
- Constant Field Values
-
CSV_SEPARATOR
public static final String CSV_SEPARATOR
- See Also:
- Constant Field Values
-
CSV_QUOTE
public static final String CSV_QUOTE
- See Also:
- Constant Field Values
-
CSV_ESCAPE
public static final String CSV_ESCAPE
- See Also:
- Constant Field Values
-
TRANSACTIONAL
public static final String TRANSACTIONAL
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
HiveTableProperties
@Inject public HiveTableProperties(HiveConfig config, OrcWriterConfig orcWriterConfig)
-
-
Method Detail
-
getTableProperties
public List<PropertyMetadata<?>> getTableProperties()
-
getHeaderSkipCount
public static Optional<Integer> getHeaderSkipCount(Map<String,Object> tableProperties)
-
getFooterSkipCount
public static Optional<Integer> getFooterSkipCount(Map<String,Object> tableProperties)
-
getHiveStorageFormat
public static HiveStorageFormat getHiveStorageFormat(Map<String,Object> tableProperties)
-
getAnalyzeColumns
public static Optional<Set<String>> getAnalyzeColumns(Map<String,Object> tableProperties)
-
getBucketProperty
public static Optional<HiveBucketProperty> getBucketProperty(Map<String,Object> tableProperties)
-
getBucketingVersion
public static HiveBucketing.BucketingVersion getBucketingVersion(Map<String,Object> tableProperties)
-
getOrcBloomFilterColumns
public static List<String> getOrcBloomFilterColumns(Map<String,Object> tableProperties)
-
getOrcBloomFilterFpp
public static Double getOrcBloomFilterFpp(Map<String,Object> tableProperties)
-
getSingleCharacterProperty
public static Optional<Character> getSingleCharacterProperty(Map<String,Object> tableProperties, String key)
-
-