@@ -0,0 +1,1475 @@
+package com.jasongj.spark.model;%0A%0Aimport java.io.Serializable;%0Aimport java.net.URI;%0Aimport java.util.HashMap;%0Aimport java.util.List;%0Aimport java.util.Map;%0A%0Aimport lombok.Getter;%0Aimport lombok.Setter;%0Aimport org.apache.hadoop.fs.Path;%0Aimport org.apache.hadoop.hive.metastore.api.FieldSchema;%0A%0Aimport javax.validation.constraints.NotNull;%0A%0A%0A/**%0A * Created by Jason Guo (jason.guo.vip@gmail.com)%0A */%0Apublic class TableMetaData implements Serializable%7B%0A    @Setter @Getter @NotNull private String database;%0A    @Setter @Getter @NotNull private String table;%0A    @Setter @Getter @NotNull private List%3CFieldSchema%3E fields;%0A    @Setter @Getter private List%3CInteger%3E bucketColumns;%0A    @Setter @Getter private List%3CInteger%3E sortColumns;%0A    @Setter @Getter @NotNull private URI location;%0A    @Setter @Getter @NotNull private int bucketNum;%0A    @Setter @Getter private char fieldDelimiter;%0A    @Setter @Getter private char lineDelimiter;%0A    @Setter @Getter private Map%3CInteger, Bucket%3E buckets = new HashMap%3CInteger, Bucket%3E();%0A%0A    public TableMetaData() %7B%7D%0A%0A    public TableMetaData(String database, String table, List%3CFieldSchema%3E fields, List%3CInteger%3E bucketColumns, List%3CInteger%3E sortColumns, URI location, int bucketNum) %7B%0A        this.database = database;%0A        this.table = table;%0A        this.fields = fields;%0A        this.bucketColumns = bucketColumns;%0A        this.sortColumns = sortColumns;%0A        this.location = location;%0A        this.bucketNum = bucketNum;%0A    %7D%0A%7D%0A

Create TableMetaData