All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.hudi.org.apache.hadoop_hive.metastore.model.MPartition Maven / Gradle / Ivy

The newest version!
/**
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.apache.hadoop.hive.metastore.model;

import java.util.List;
import java.util.Map;

public class MPartition {

  private String partitionName; // partitionname ==>  (key=value/)*(key=value)
  private MTable table; 
  private List values;
  private int createTime;
  private int lastAccessTime;
  private MStorageDescriptor sd;
  private Map parameters;
  
  
  public MPartition() {}
  
  /**
   * @param partitionName
   * @param table
   * @param values
   * @param createTime
   * @param lastAccessTime
   * @param sd
   * @param parameters
   */
  public MPartition(String partitionName, MTable table, List values, int createTime,
      int lastAccessTime, MStorageDescriptor sd, Map parameters) {
    this.partitionName = partitionName;
    this.table = table;
    this.values = values;
    this.createTime = createTime;
    this.lastAccessTime = lastAccessTime;
    this.sd = sd;
    this.parameters = parameters;
  }

  /**
   * @return the lastAccessTime
   */
  public int getLastAccessTime() {
    return lastAccessTime;
  }

  /**
   * @param lastAccessTime the lastAccessTime to set
   */
  public void setLastAccessTime(int lastAccessTime) {
    this.lastAccessTime = lastAccessTime;
  }

  /**
   * @return the values
   */
  public List getValues() {
    return values;
  }

  /**
   * @param values the values to set
   */
  public void setValues(List values) {
    this.values = values;
  }

  /**
   * @return the table
   */
  public MTable getTable() {
    return table;
  }

  /**
   * @param table the table to set
   */
  public void setTable(MTable table) {
    this.table = table;
  }

  /**
   * @return the sd
   */
  public MStorageDescriptor getSd() {
    return sd;
  }

  /**
   * @param sd the sd to set
   */
  public void setSd(MStorageDescriptor sd) {
    this.sd = sd;
  }

  /**
   * @return the parameters
   */
  public Map getParameters() {
    return parameters;
  }

  /**
   * @param parameters the parameters to set
   */
  public void setParameters(Map parameters) {
    this.parameters = parameters;
  }

  /**
   * @return the partitionName
   */
  public String getPartitionName() {
    return partitionName;
  }

  /**
   * @param partitionName the partitionName to set
   */
  public void setPartitionName(String partitionName) {
    this.partitionName = partitionName;
  }

  /**
   * @return the createTime
   */
  public int getCreateTime() {
    return createTime;
  }

  /**
   * @param createTime the createTime to set
   */
  public void setCreateTime(int createTime) {
    this.createTime = createTime;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy