public abstract class org.apache.drill.metastore.iceberg.IcebergBaseTest extends org.apache.drill.test.BaseTest
{
public static org.junit.rules.TemporaryFolder defaultFolder;
public org.junit.rules.ExpectedException thrown;
public void <init>()
{
org.junit.rules.ExpectedException v;
org.apache.drill.metastore.iceberg.IcebergBaseTest v;
v := @this: org.apache.drill.metastore.iceberg.IcebergBaseTest;
specialinvoke v.<org.apache.drill.test.BaseTest: void <init>()>();
v = staticinvoke <org.junit.rules.ExpectedException: org.junit.rules.ExpectedException none()>();
v.<org.apache.drill.metastore.iceberg.IcebergBaseTest: org.junit.rules.ExpectedException thrown> = v;
return;
}
protected static org.apache.hadoop.conf.Configuration baseHadoopConfig()
{
org.apache.hadoop.conf.Configuration v;
v = new org.apache.hadoop.conf.Configuration;
specialinvoke v.<org.apache.hadoop.conf.Configuration: void <init>()>();
virtualinvoke v.<org.apache.hadoop.conf.Configuration: void set(java.lang.String,java.lang.String)>("fs.defaultFS", "file:///");
return v;
}
public static com.typesafe.config.Config baseIcebergConfig(java.io.File)
{
java.lang.Object[] v;
org.apache.hadoop.fs.Path v;
java.lang.String v, v, v;
java.net.URI v, v;
com.typesafe.config.Config v, v, v, v, v;
com.typesafe.config.ConfigValue v, v, v, v, v;
java.io.File v;
org.apache.drill.common.config.DrillConfig v;
v := @parameter: java.io.File;
v = staticinvoke <org.apache.drill.common.config.DrillConfig: org.apache.drill.common.config.DrillConfig create()>();
v = new org.apache.hadoop.fs.Path;
v = virtualinvoke v.<java.io.File: java.net.URI toURI()>();
v = virtualinvoke v.<java.net.URI: java.lang.String getPath()>();
specialinvoke v.<org.apache.hadoop.fs.Path: void <init>(java.lang.String)>(v);
v = virtualinvoke v.<org.apache.hadoop.fs.Path: java.net.URI toUri()>();
v = virtualinvoke v.<java.net.URI: java.lang.String getPath()>();
v = staticinvoke <com.typesafe.config.ConfigValueFactory: com.typesafe.config.ConfigValue fromAnyRef(java.lang.Object)>(v);
v = virtualinvoke v.<org.apache.drill.common.config.DrillConfig: com.typesafe.config.Config withValue(java.lang.String,com.typesafe.config.ConfigValue)>("drill.metastore.iceberg.location.base_path", v);
v = staticinvoke <com.typesafe.config.ConfigValueFactory: com.typesafe.config.ConfigValue fromAnyRef(java.lang.Object)>("drill/metastore/iceberg");
v = interfaceinvoke v.<com.typesafe.config.Config: com.typesafe.config.Config withValue(java.lang.String,com.typesafe.config.ConfigValue)>("drill.metastore.iceberg.location.relative_path", v);
v = newarray (java.lang.Object)[2];
v[0] = "drill.metastore.iceberg.config.properties";
v[1] = "fs.defaultFS";
v = staticinvoke <java.lang.String: java.lang.String format(java.lang.String,java.lang.Object[])>("%s.%s", v);
v = staticinvoke <com.typesafe.config.ConfigValueFactory: com.typesafe.config.ConfigValue fromAnyRef(java.lang.Object)>("file:///");
v = interfaceinvoke v.<com.typesafe.config.Config: com.typesafe.config.Config withValue(java.lang.String,com.typesafe.config.ConfigValue)>(v, v);
v = staticinvoke <com.typesafe.config.ConfigValueFactory: com.typesafe.config.ConfigValue fromAnyRef(java.lang.Object)>("tables");
v = interfaceinvoke v.<com.typesafe.config.Config: com.typesafe.config.Config withValue(java.lang.String,com.typesafe.config.ConfigValue)>("drill.metastore.iceberg.components.tables.location", v);
v = staticinvoke <com.typesafe.config.ConfigValueFactory: com.typesafe.config.ConfigValue fromAnyRef(java.lang.Object)>("views");
v = interfaceinvoke v.<com.typesafe.config.Config: com.typesafe.config.Config withValue(java.lang.String,com.typesafe.config.ConfigValue)>("drill.metastore.iceberg.components.location", v);
return v;
}
static void <clinit>()
{
org.junit.rules.TemporaryFolder v;
v = new org.junit.rules.TemporaryFolder;
specialinvoke v.<org.junit.rules.TemporaryFolder: void <init>()>();
<org.apache.drill.metastore.iceberg.IcebergBaseTest: org.junit.rules.TemporaryFolder defaultFolder> = v;
return;
}
}