Skip to content

Commit f5de2ff

Browse files
committed
WIP
1 parent ef2751f commit f5de2ff

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

exec/java-exec/src/main/java/org/apache/drill/exec/ops/QueryContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ public RemoteFunctionRegistry getRemoteFunctionRegistry() {
319319
}
320320

321321
public DaffodilSchemaRegistry getDaffodilSchemaRegistry() {
322-
return drillbitContext.getDaffodilSchemaRegistry();
322+
return drillbitContext.getDaffodilSchemaProvider();
323323
}
324324

325325
@Override
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Daffodil Schema Providers
2+
The classes in this package implement a persistent store for Apache Daffodil schemata. These files create a store which Drill will use to track schemata. When the files are installed via SQL commands, the store will copy them from the staging directory and propagate them to every node in the Drill cluster.
3+

exec/java-exec/src/main/java/org/apache/drill/exec/server/DrillbitContext.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
import org.apache.drill.exec.rpc.user.UserServer;
4343
import org.apache.drill.exec.rpc.user.UserServer.BitToUserConnection;
4444
import org.apache.drill.exec.rpc.user.UserServer.BitToUserConnectionConfig;
45-
import org.apache.drill.exec.schema.daffodil.DaffodilSchemaRegistry;
45+
import org.apache.drill.exec.schema.daffodil.DaffodilSchemaProvider;
4646
import org.apache.drill.exec.server.options.SystemOptionManager;
4747
import org.apache.drill.exec.store.SchemaFactory;
4848
import org.apache.drill.exec.store.StoragePluginRegistry;
@@ -83,7 +83,7 @@ public class DrillbitContext implements AutoCloseable {
8383
private ResourceManager resourceManager;
8484
private final MetastoreRegistry metastoreRegistry;
8585
private final DrillCounters counters;
86-
private final DaffodilSchemaRegistry daffodilSchemaRegistry;
86+
private final DaffodilSchemaProvider daffodilSchemaProvider;
8787

8888
public DrillbitContext(
8989
DrillbitEndpoint endpoint,
@@ -136,7 +136,7 @@ public DrillbitContext(
136136
this.oAuthTokenProvider = new OAuthTokenProvider(this);
137137

138138
// TODO Start here and complete the initialization process
139-
this.daffodilSchemaRegistry = new DaffodilSchemaRegistry(config, classpathScan, systemOptions);
139+
this.daffodilSchemaProvider = new DaffodilSchemaProvider(config, classpathScan, systemOptions);
140140

141141
this.counters = DrillCounters.getInstance();
142142
}
@@ -289,8 +289,8 @@ public RemoteFunctionRegistry getRemoteFunctionRegistry() {
289289
return functionRegistry.getRemoteFunctionRegistry();
290290
}
291291

292-
public DaffodilSchemaRegistry getDaffodilSchemaRegistry() {
293-
return daffodilSchemaRegistry;
292+
public DaffodilSchemaProvider getDaffodilSchemaProvider() {
293+
return daffodilSchemaProvider;
294294
}
295295

296296
/**
@@ -327,6 +327,7 @@ public void close() throws Exception {
327327
getMetastoreRegistry().close();
328328
getAliasRegistryProvider().close();
329329
getOauthTokenProvider().close();
330+
getDaffodilSchemaProvider().close();
330331
}
331332

332333
public ResourceManager getResourceManager() {

0 commit comments

Comments
 (0)