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

com.gemstone.gemfire.internal.cache.ExternalTableMetaData Maven / Gradle / Ivy

There is a newer version: 2.0-BETA
Show newest version
/*
 * Copyright (c) 2018 SnappyData, Inc. 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. See the License for the specific language governing
 * permissions and limitations under the License. See accompanying
 * LICENSE file.
 */
package com.gemstone.gemfire.internal.cache;

import java.util.List;

public class ExternalTableMetaData {

  public ExternalTableMetaData(String entityName,
      Object schema,
      String tableType,
      Object externalStore,
      int columnBatchSize,
      int columnMaxDeltaRows,
      String compressionCodec,
      String baseTable,
      String dml,
      String[] dependents,
      String dataSourcePath,
      String driverClass) {
    this.entityName = entityName;
    this.schema = schema;
    this.tableType = tableType;
    this.externalStore = externalStore;
    this.columnBatchSize = columnBatchSize;
    this.columnMaxDeltaRows = columnMaxDeltaRows;
    this.compressionCodec = compressionCodec;
    this.baseTable = baseTable;
    this.dml = dml;
    this.dependents = dependents;
    this.dataSourcePath = dataSourcePath;
    this.driverClass = driverClass;
  }

  public String entityName;
  public Object schema;
  public String tableType;
  // No type specified as the class is in snappy core
  public Object externalStore;
  public int columnBatchSize;
  public int columnMaxDeltaRows;
  public String compressionCodec;
  public String baseTable;
  public String dml;
  public String[] dependents;
  public String provider;
  public String shortProvider;
  public String dataSourcePath;
  public String driverClass;
  public String viewText;
  // columns for metadata queries
  public List columns;

  public static final class Column {
    public final String name;
    public final int typeId;
    public final String typeName;
    public final int precision;
    public final int scale;
    public final int maxWidth;
    public final boolean nullable;

    public Column(String name, int typeId, String typeName, int precision,
        int scale, int maxWidth, boolean nullable) {
      this.name = name;
      this.typeId = typeId;
      this.typeName = typeName;
      this.precision = precision;
      this.scale = scale;
      this.maxWidth = maxWidth;
      this.nullable = nullable;
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy