public class AbstractDirectiveHandler extends AbstractWranglerHandler
AbstractWranglerHandler.NamespacedResponder<T>, AbstractWranglerHandler.NamespacedResponderRunnable| Modifier and Type | Field and Description |
|---|---|
protected static String |
COLUMN_NAME |
protected DirectiveRegistry |
composite |
protected static String |
DELIMITER_HEADER |
protected static String |
RECORD_DELIMITER_HEADER |
| Constructor and Description |
|---|
AbstractDirectiveHandler() |
| Modifier and Type | Method and Description |
|---|---|
static Row |
createUberRecord(List<Row> rows)
Creates a uber record after iterating through all rows.
|
void |
destroy()
Closes the resources help by the composite registry.
|
protected <E extends Exception> |
executeDirectives(String namespace,
List<String> directives,
List<Row> sample,
GrammarWalker.Visitor<E> grammarVisitor) |
protected DirectiveExecutionResponse |
generateExecutionResponse(List<Row> rows,
int limit)
Transform the rows to response that is user friendly.
|
protected WorkspaceValidationResult |
getWorkspaceSummary(List<Row> rows)
Get the summary for the workspace rows
|
void |
initialize(io.cdap.cdap.api.service.http.SystemHttpServiceContext context) |
getConnection, getValidatedConnection, getValidatedConnection, getWorkspace, respond, respond, respond, shouldCopyHeadercreateTableconfigure, configure, getConfigurer, getContext, setPropertiesusePlugin, usePlugin, usePluginClass, usePluginClassprotected static final String COLUMN_NAME
protected static final String RECORD_DELIMITER_HEADER
protected static final String DELIMITER_HEADER
protected DirectiveRegistry composite
public void initialize(io.cdap.cdap.api.service.http.SystemHttpServiceContext context)
throws Exception
initialize in interface io.cdap.cdap.api.ProgramLifecycle<io.cdap.cdap.api.service.http.SystemHttpServiceContext>initialize in interface io.cdap.cdap.api.service.http.HttpServiceHandler<io.cdap.cdap.api.service.http.SystemHttpServiceContext,io.cdap.cdap.api.service.http.SystemHttpServiceConfigurer>initialize in class io.cdap.cdap.api.service.http.AbstractHttpServiceHandler<io.cdap.cdap.api.service.http.SystemHttpServiceContext,io.cdap.cdap.api.service.http.SystemHttpServiceConfigurer>Exceptionpublic void destroy()
destroy in interface io.cdap.cdap.api.ProgramLifecycle<io.cdap.cdap.api.service.http.SystemHttpServiceContext>destroy in interface io.cdap.cdap.api.service.http.HttpServiceHandler<io.cdap.cdap.api.service.http.SystemHttpServiceContext,io.cdap.cdap.api.service.http.SystemHttpServiceConfigurer>destroy in class io.cdap.cdap.api.service.http.AbstractHttpServiceHandler<io.cdap.cdap.api.service.http.SystemHttpServiceContext,io.cdap.cdap.api.service.http.SystemHttpServiceConfigurer>protected <E extends Exception> List<Row> executeDirectives(String namespace, List<String> directives, List<Row> sample, GrammarWalker.Visitor<E> grammarVisitor) throws DirectiveParseException, E extends Exception
DirectiveParseExceptionE extends Exceptionprotected DirectiveExecutionResponse generateExecutionResponse(List<Row> rows, int limit) throws Exception
Exceptionprotected WorkspaceValidationResult getWorkspaceSummary(List<Row> rows) throws Exception
ExceptionCopyright © 2023 CDAP Licensed under the Apache License, Version 2.0.