Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
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 MTable {
   
   private String tableName;
   private MDatabase database;
   private MStorageDescriptor sd;
   private String owner;
   private int createTime;
   private int lastAccessTime;
   private int retention;
   private Map<StringStringparameters;
   private String viewOriginalText;
   private String viewExpandedText;
   private String tableType;
 
   public MTable() {}

  

Parameters:
tableName
database
sd
owner
createTime
lastAccessTime
retention
partitionKeys
parameters
viewOriginalText
viewExpandedText
tableType
 
   public MTable(String tableNameMDatabase databaseMStorageDescriptor sdString owner,
       int createTimeint lastAccessTimeint retentionList<MFieldSchemapartitionKeys,
       Map<StringStringparameters,
       String viewOriginalTextString viewExpandedTextString tableType) {
     this. = tableName;
     this. = database;
     this. = sd;
     this. = owner;
     this. = createTime;
     this.setLastAccessTime(lastAccessTime);
     this. = retention;
     this. = partitionKeys;
     this. = parameters;
     this. = viewOriginalText;
     this. = viewExpandedText;
     this. = tableType;
   }

  

Returns:
the tableName
 
   public String getTableName() {
     return ;
   }

  

Parameters:
tableName the tableName to set
 
   public void setTableName(String tableName) {
     this. = tableName;
   }

  

Returns:
the sd
 
   public MStorageDescriptor getSd() {
     return ;
   }

  

Parameters:
sd the sd to set
 
   public void setSd(MStorageDescriptor sd) {
     this. = sd;
   }

  

Returns:
the partKeys
    return ;
  }

  

Parameters:
partKeys the partKeys to set
  public void setPartitionKeys(List<MFieldSchemapartKeys) {
    this. = partKeys;
  }

  

Returns:
the parameters
  public Map<StringStringgetParameters() {
    return ;
  }

  

Parameters:
parameters the parameters to set
  public void setParameters(Map<StringStringparameters) {
    this. = parameters;
  }

  

Returns:
the original view text, or null if this table is not a view
  public String getViewOriginalText() {
    return ;
  }

  

Parameters:
viewOriginalText the original view text to set
  public void setViewOriginalText(String viewOriginalText) {
    this. = viewOriginalText;
  }

  

Returns:
the expanded view text, or null if this table is not a view
  public String getViewExpandedText() {
    return ;
  }

  

Parameters:
viewExpandedText the expanded view text to set
  public void setViewExpandedText(String viewExpandedText) {
    this. = viewExpandedText;
  }

  

Returns:
the owner
  public String getOwner() {
    return ;
  }

  

Parameters:
owner the owner to set
  public void setOwner(String owner) {
    this. = owner;
  }

  

Returns:
the createTime
  public int getCreateTime() {
    return ;
  }

  

Parameters:
createTime the createTime to set
  public void setCreateTime(int createTime) {
    this. = createTime;
  }

  

Returns:
the database
  public MDatabase getDatabase() {
    return ;
  }

  

Parameters:
database the database to set
  public void setDatabase(MDatabase database) {
    this. = database;
  }

  

Returns:
the retention
  public int getRetention() {
    return ;
  }

  

Parameters:
retention the retention to set
  public void setRetention(int retention) {
    this. = retention;
  }

  

Parameters:
lastAccessTime the lastAccessTime to set
  public void setLastAccessTime(int lastAccessTime) {
    this. = lastAccessTime;
  }

  

Returns:
the lastAccessTime
  public int getLastAccessTime() {
    return ;
  }

  

Parameters:
tableType the tableType to set
  public void setTableType(String tableType) {
    this. = tableType;
  }

  

Returns:
the tableType
  public String getTableType() {
    return ;
  }
New to GrepCode? Check out our FAQ X