gobblin.source.extractor.schema.Schema Maven / Gradle / Ivy
                 Go to download
                
        
                    Show more of this group  Show more artifacts with this name
Show all versions of gobblin-core Show documentation
                Show all versions of gobblin-core Show documentation
Gobblin Ingestion Framework
                
            /*
 * Copyright (C) 2014-2016 LinkedIn Corp. All rights reserved.
 *
 * Licensed 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.
 */
package gobblin.source.extractor.schema;
import com.google.gson.JsonObject;
/**
 * Schema from extractor
 */
public class Schema {
  private String columnName;
  private JsonObject dataType;
  private boolean isWaterMark;
  private int primaryKey;
  private long length;
  private int precision;
  private int scale;
  private boolean isNullable;
  private String format;
  private String comment;
  private String defaultValue;
  private boolean isUnique;
  public String getColumnName() {
    return columnName;
  }
  public void setColumnName(String columnName) {
    this.columnName = columnName;
  }
  public JsonObject getDataType() {
    return dataType;
  }
  public void setDataType(JsonObject dataType) {
    this.dataType = dataType;
  }
  public int getPrimaryKey() {
    return primaryKey;
  }
  public void setPrimaryKey(int primaryKey) {
    this.primaryKey = primaryKey;
  }
  public long getLength() {
    return length;
  }
  public void setLength(long length) {
    this.length = length;
  }
  public int getPrecision() {
    return precision;
  }
  public void setPrecision(int precision) {
    this.precision = precision;
  }
  public int getScale() {
    return scale;
  }
  public void setScale(int scale) {
    this.scale = scale;
  }
  public String getFormat() {
    return format;
  }
  public void setFormat(String format) {
    this.format = format;
  }
  public String getComment() {
    return comment;
  }
  public void setComment(String comment) {
    this.comment = comment;
  }
  public String getDefaultValue() {
    return defaultValue;
  }
  public void setDefaultValue(String defaultValue) {
    this.defaultValue = defaultValue;
  }
  public boolean isWaterMark() {
    return isWaterMark;
  }
  public void setWaterMark(boolean isWaterMark) {
    this.isWaterMark = isWaterMark;
  }
  public boolean isNullable() {
    return isNullable;
  }
  public void setNullable(boolean isNullable) {
    this.isNullable = isNullable;
  }
  public boolean isUnique() {
    return isUnique;
  }
  public void setUnique(boolean isUnique) {
    this.isUnique = isUnique;
  }
}
    © 2015 - 2025 Weber Informatics LLC | Privacy Policy