15 package com.cloudera.impala.catalog;
17 import org.apache.hadoop.fs.Path;
19 import com.cloudera.impala.thrift.TCatalogObjectType;
20 import com.cloudera.impala.thrift.TDataSource;
21 import com.google.common.base.Objects;
35 public DataSource(String dataSrcName, String location, String className,
36 String apiVersionString) {
44 return new DataSource(thrift.getName(), thrift.getHdfs_location(),
45 thrift.getClass_name(), thrift.getApi_version());
50 return TCatalogObjectType.DATA_SOURCE;
74 return Objects.toStringHelper(
this)
static String debugString(TDataSource thrift)
final String dataSrcName_
final String apiVersionString_
static final long INITIAL_CATALOG_VERSION
DataSource(String dataSrcName, String location, String className, String apiVersionString)
void setCatalogVersion(long newVersion)
static DataSource fromThrift(TDataSource thrift)
TCatalogObjectType getCatalogObjectType()