-
Notifications
You must be signed in to change notification settings - Fork 237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support functions with complex parameters #3356
base: master
Are you sure you want to change the base?
Support functions with complex parameters #3356
Conversation
We should handle the parameter validation inside |
String protocolObjectClassName = parameterValidationContext.protocolClassName; | ||
try | ||
{ | ||
Class<?> protocolObjectClass = ExecutionPlanJavaCompilerExtensionLoader.extensions().stream() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Class.forName(protocolObjectClassName)
{ | ||
return Lists.mutable.<Class<? extends ExecutionPlanJavaCompilerExtension>>empty() | ||
.with(MongoDBDocumentFormatJavaCompilerExtension.class) | ||
.with(IngestJavaCompilerExtension.class) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not needed
@@ -192,6 +192,11 @@ Class meta::pure::executionPlan::EnumValidationContext extends ParameterValidati | |||
validEnumValues: String[*]; | |||
} | |||
|
|||
Class meta::pure::executionPlan::ProtocolObjectValidationContext extends ParameterValidationContext | |||
{ | |||
protocolClassName: String[1]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
parameterClass: Class[1];
protocolClassName: String[0..1];
|
||
import java.util.Map; | ||
|
||
public class IngestJavaCompilerExtension implements ExecutionPlanJavaCompilerExtension |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We dont need this anymore
import meta::external::language::java::factory::*; | ||
import meta::external::language::java::transform::*; | ||
|
||
function meta::external::ingest::platformBinding::ingestLegendJavaPlatformBindingExtension(): meta::pure::executionPlan::platformBinding::legendJava::LegendJavaPlatformBindingExtension[1] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We dont need this anymore
What type of PR is this?
-> Improvement
What does this PR do / why is it needed ?
-> Add getter method generators to protocol generation
-> Support functions with complex parameters