package org.apache.cloudberry.pxf.plugins.hive;

import java.util.List;
import java.util.Properties;

/**
 * HiveAccessor parses information during initialization, this metadata is then
 * shared with HiveResolver.
 */
public class HiveMetadata {
    private final Properties properties;
    private final List<HivePartition> partitions;
    private final List<Integer> hiveIndexes;

    public HiveMetadata(Properties properties, List<HivePartition> partitions, List<Integer> hiveIndexes) {
        this.properties = properties;
        this.partitions = partitions;
        this.hiveIndexes = hiveIndexes;
    }

    public List<HivePartition> getPartitions() {
        return partitions;
    }

    public Properties getProperties() {
        return properties;
    }

    public List<Integer> getHiveIndexes() {
        return hiveIndexes;
    }
}
