Search in sources :

Example 1 with Type

use of org.talend.sdk.component.api.service.schema.Type in project component-runtime by Talend.

the class Generator method generatedConstraints.

private static void generatedConstraints(final File generatedDir) throws Exception {
    final File file = new File(generatedDir, "generated_constraints.adoc");
    try (final PrintStream stream = new PrintStream(new WriteIfDifferentStream(file))) {
        stream.println("");
        stream.println("[role=\"table-striped table-hover table-ordered\",options=\"header,autowidth\"]");
        stream.println("|====");
        stream.println("|API|Name|Parameter Type|Description|Supported Types|Metadata sample");
        final File api = jarLocation(Validation.class);
        final ClassLoader loader = Thread.currentThread().getContextClassLoader();
        final AnnotationFinder finder = new AnnotationFinder(api.isDirectory() ? new FileArchive(loader, api) : new JarArchive(loader, api.toURI().toURL()));
        final ValidationParameterEnricher enricher = new ValidationParameterEnricher();
        final Mapper mapper = new MapperBuilder().build();
        Stream.concat(finder.findAnnotatedClasses(Validation.class).stream().map(validation -> {
            final Validation val = validation.getAnnotation(Validation.class);
            return createConstraint(validation, val);
        }), finder.findAnnotatedClasses(Validations.class).stream().flatMap(validations -> Stream.of(validations.getAnnotation(Validations.class).value()).map(validation -> createConstraint(validations, validation)))).sorted((o1, o2) -> {
            final int types = Stream.of(o1.types).map(Class::getName).collect(joining("/")).compareTo(Stream.of(o2.types).map(Class::getName).collect(joining("/")));
            if (types == 0) {
                return o1.name.compareTo(o2.name);
            }
            return types;
        }).forEach(constraint -> stream.println("|@" + constraint.marker.getName() + "|" + constraint.name + "|" + sanitizeType(constraint.paramType) + "|" + constraint.description + "|" + Stream.of(constraint.types).map(Class::getName).map(Generator::sanitizeType).collect(joining(", ")) + "|" + mapper.writeObjectAsString(enricher.onParameterAnnotation("test", constraint.types[0], generateAnnotation(constraint.marker))).replace("tcomp::", "")));
        stream.println("|====");
        stream.println();
    }
}
Also used : Validation(org.talend.sdk.component.api.configuration.constraint.meta.Validation) Condition(org.talend.sdk.component.api.configuration.condition.meta.Condition) RequiredArgsConstructor(lombok.RequiredArgsConstructor) AnnotationFinder(org.apache.xbean.finder.AnnotationFinder) ConfigurationTypeParameterEnricher(org.talend.sdk.component.runtime.manager.reflect.parameterenricher.ConfigurationTypeParameterEnricher) Type(org.talend.sdk.component.api.service.schema.Type) Collectors.toMap(java.util.stream.Collectors.toMap) Pair(org.apache.commons.lang3.tuple.Pair) Map(java.util.Map) Defaults(org.talend.sdk.component.runtime.reflect.Defaults) ENGLISH(java.util.Locale.ENGLISH) UiParameterEnricher(org.talend.sdk.component.runtime.manager.reflect.parameterenricher.UiParameterEnricher) Collectors.toSet(java.util.stream.Collectors.toSet) Validations(org.talend.sdk.component.api.configuration.constraint.meta.Validations) JsonbBuilder(javax.json.bind.JsonbBuilder) ActiveIf(org.talend.sdk.component.api.configuration.condition.ActiveIf) Collection(java.util.Collection) Ui(org.talend.sdk.component.api.configuration.ui.meta.Ui) Mapper(org.apache.johnzon.mapper.Mapper) Set(java.util.Set) FilterOutputStream(java.io.FilterOutputStream) PropertyOrderStrategy(javax.json.bind.config.PropertyOrderStrategy) Collectors.joining(java.util.stream.Collectors.joining) StandardCharsets(java.nio.charset.StandardCharsets) InvocationTargetException(java.lang.reflect.InvocationTargetException) GenericType(javax.ws.rs.core.GenericType) Base64(java.util.Base64) List(java.util.List) Slf4j(lombok.extern.slf4j.Slf4j) Stream(java.util.stream.Stream) Documentation(org.talend.sdk.component.api.meta.Documentation) Modifier(java.lang.reflect.Modifier) Annotation(java.lang.annotation.Annotation) Configuration(org.apache.deltaspike.core.api.config.Configuration) PRIVATE(lombok.AccessLevel.PRIVATE) MapperBuilder(org.apache.johnzon.mapper.MapperBuilder) Proxy(java.lang.reflect.Proxy) ByteArrayOutputStream(java.io.ByteArrayOutputStream) Collectors.groupingBy(java.util.stream.Collectors.groupingBy) Client(javax.ws.rs.client.Client) Collectors.collectingAndThen(java.util.stream.Collectors.collectingAndThen) Function(java.util.function.Function) Supplier(java.util.function.Supplier) JsonbConfig(javax.json.bind.JsonbConfig) AutoLayout(org.talend.sdk.component.api.configuration.ui.layout.AutoLayout) Schema(org.talend.sdk.component.api.service.schema.Schema) ValidationParameterEnricher(org.talend.sdk.component.runtime.manager.reflect.parameterenricher.ValidationParameterEnricher) ConfigProperty(org.apache.deltaspike.core.api.config.ConfigProperty) FileArchive(org.apache.xbean.finder.archive.FileArchive) ArrayList(java.util.ArrayList) ClientBuilder(javax.ws.rs.client.ClientBuilder) ComponentServerConfiguration(org.talend.sdk.component.server.configuration.ComponentServerConfiguration) Collectors.mapping(java.util.stream.Collectors.mapping) Validation(org.talend.sdk.component.api.configuration.constraint.meta.Validation) ConfigurationType(org.talend.sdk.component.api.configuration.type.meta.ConfigurationType) GridLayout(org.talend.sdk.component.api.configuration.ui.layout.GridLayout) Comparator.comparing(java.util.Comparator.comparing) JsonbJaxrsProvider(org.apache.johnzon.jaxrs.jsonb.jaxrs.JsonbJaxrsProvider) ValidationResult(org.talend.sdk.component.api.service.asyncvalidation.ValidationResult) ConditionParameterEnricher(org.talend.sdk.component.runtime.manager.reflect.parameterenricher.ConditionParameterEnricher) OutputStream(java.io.OutputStream) PrintStream(java.io.PrintStream) BaseEnvironmentProvider(org.talend.sdk.component.junit.environment.BaseEnvironmentProvider) ParameterExtensionEnricher(org.talend.sdk.component.spi.parameter.ParameterExtensionEnricher) MalformedURLException(java.net.MalformedURLException) Files(java.nio.file.Files) JarArchive(org.apache.xbean.finder.archive.JarArchive) Values(org.talend.sdk.component.api.service.completion.Values) Optional.ofNullable(java.util.Optional.ofNullable) FileOutputStream(java.io.FileOutputStream) IOException(java.io.IOException) File(java.io.File) Collectors.toList(java.util.stream.Collectors.toList) TreeMap(java.util.TreeMap) HealthCheckStatus(org.talend.sdk.component.api.service.healthcheck.HealthCheckStatus) JarLocation.jarLocation(org.apache.ziplock.JarLocation.jarLocation) Data(lombok.Data) APPLICATION_JSON_TYPE(javax.ws.rs.core.MediaType.APPLICATION_JSON_TYPE) Jsonb(javax.json.bind.Jsonb) WebTarget(javax.ws.rs.client.WebTarget) Comparator(java.util.Comparator) ActionType(org.talend.sdk.component.api.service.ActionType) NoArgsConstructor(lombok.NoArgsConstructor) PrintStream(java.io.PrintStream) ValidationParameterEnricher(org.talend.sdk.component.runtime.manager.reflect.parameterenricher.ValidationParameterEnricher) MapperBuilder(org.apache.johnzon.mapper.MapperBuilder) Mapper(org.apache.johnzon.mapper.Mapper) Validations(org.talend.sdk.component.api.configuration.constraint.meta.Validations) JarArchive(org.apache.xbean.finder.archive.JarArchive) FileArchive(org.apache.xbean.finder.archive.FileArchive) File(java.io.File) AnnotationFinder(org.apache.xbean.finder.AnnotationFinder)

Example 2 with Type

use of org.talend.sdk.component.api.service.schema.Type in project component-runtime by Talend.

the class Generator method generatedUi.

private static void generatedUi(final File generatedDir) throws Exception {
    final File file = new File(generatedDir, "generated_ui.adoc");
    try (final PrintStream stream = new PrintStream(new WriteIfDifferentStream(file))) {
        stream.println("");
        stream.println("[role=\"table-striped table-hover table-ordered\",options=\"header,autowidth\"]");
        stream.println("|====");
        stream.println("|API|Description|Generated property metadata");
        final File api = jarLocation(Ui.class);
        final ClassLoader loader = Thread.currentThread().getContextClassLoader();
        final AnnotationFinder finder = new AnnotationFinder(api.isDirectory() ? new FileArchive(loader, api) : new JarArchive(loader, api.toURI().toURL()));
        final ParameterExtensionEnricher enricher = new UiParameterEnricher();
        final Mapper mapper = new MapperBuilder().build();
        finder.findAnnotatedClasses(Ui.class).stream().sorted(Comparator.comparing(Class::getName)).forEach(type -> {
            final Map<String, String> meta = enricher.onParameterAnnotation("theparameter", Object.class, generateAnnotation(type)).entrySet().stream().collect(toMap(e -> e.getKey().replace("tcomp::", ""), Map.Entry::getValue));
            stream.println("|@" + type.getName() + "|" + extractDoc(type) + "|" + mapper.writeObjectAsString(meta).replace("|", "\\|"));
        });
        stream.println("|====");
        stream.println();
    }
}
Also used : Condition(org.talend.sdk.component.api.configuration.condition.meta.Condition) RequiredArgsConstructor(lombok.RequiredArgsConstructor) AnnotationFinder(org.apache.xbean.finder.AnnotationFinder) ConfigurationTypeParameterEnricher(org.talend.sdk.component.runtime.manager.reflect.parameterenricher.ConfigurationTypeParameterEnricher) Type(org.talend.sdk.component.api.service.schema.Type) Collectors.toMap(java.util.stream.Collectors.toMap) Pair(org.apache.commons.lang3.tuple.Pair) Map(java.util.Map) Defaults(org.talend.sdk.component.runtime.reflect.Defaults) ENGLISH(java.util.Locale.ENGLISH) UiParameterEnricher(org.talend.sdk.component.runtime.manager.reflect.parameterenricher.UiParameterEnricher) Collectors.toSet(java.util.stream.Collectors.toSet) Validations(org.talend.sdk.component.api.configuration.constraint.meta.Validations) JsonbBuilder(javax.json.bind.JsonbBuilder) ActiveIf(org.talend.sdk.component.api.configuration.condition.ActiveIf) Collection(java.util.Collection) Ui(org.talend.sdk.component.api.configuration.ui.meta.Ui) Mapper(org.apache.johnzon.mapper.Mapper) Set(java.util.Set) FilterOutputStream(java.io.FilterOutputStream) PropertyOrderStrategy(javax.json.bind.config.PropertyOrderStrategy) Collectors.joining(java.util.stream.Collectors.joining) StandardCharsets(java.nio.charset.StandardCharsets) InvocationTargetException(java.lang.reflect.InvocationTargetException) GenericType(javax.ws.rs.core.GenericType) Base64(java.util.Base64) List(java.util.List) Slf4j(lombok.extern.slf4j.Slf4j) Stream(java.util.stream.Stream) Documentation(org.talend.sdk.component.api.meta.Documentation) Modifier(java.lang.reflect.Modifier) Annotation(java.lang.annotation.Annotation) Configuration(org.apache.deltaspike.core.api.config.Configuration) PRIVATE(lombok.AccessLevel.PRIVATE) MapperBuilder(org.apache.johnzon.mapper.MapperBuilder) Proxy(java.lang.reflect.Proxy) ByteArrayOutputStream(java.io.ByteArrayOutputStream) Collectors.groupingBy(java.util.stream.Collectors.groupingBy) Client(javax.ws.rs.client.Client) Collectors.collectingAndThen(java.util.stream.Collectors.collectingAndThen) Function(java.util.function.Function) Supplier(java.util.function.Supplier) JsonbConfig(javax.json.bind.JsonbConfig) AutoLayout(org.talend.sdk.component.api.configuration.ui.layout.AutoLayout) Schema(org.talend.sdk.component.api.service.schema.Schema) ValidationParameterEnricher(org.talend.sdk.component.runtime.manager.reflect.parameterenricher.ValidationParameterEnricher) ConfigProperty(org.apache.deltaspike.core.api.config.ConfigProperty) FileArchive(org.apache.xbean.finder.archive.FileArchive) ArrayList(java.util.ArrayList) ClientBuilder(javax.ws.rs.client.ClientBuilder) ComponentServerConfiguration(org.talend.sdk.component.server.configuration.ComponentServerConfiguration) Collectors.mapping(java.util.stream.Collectors.mapping) Validation(org.talend.sdk.component.api.configuration.constraint.meta.Validation) ConfigurationType(org.talend.sdk.component.api.configuration.type.meta.ConfigurationType) GridLayout(org.talend.sdk.component.api.configuration.ui.layout.GridLayout) Comparator.comparing(java.util.Comparator.comparing) JsonbJaxrsProvider(org.apache.johnzon.jaxrs.jsonb.jaxrs.JsonbJaxrsProvider) ValidationResult(org.talend.sdk.component.api.service.asyncvalidation.ValidationResult) ConditionParameterEnricher(org.talend.sdk.component.runtime.manager.reflect.parameterenricher.ConditionParameterEnricher) OutputStream(java.io.OutputStream) PrintStream(java.io.PrintStream) BaseEnvironmentProvider(org.talend.sdk.component.junit.environment.BaseEnvironmentProvider) ParameterExtensionEnricher(org.talend.sdk.component.spi.parameter.ParameterExtensionEnricher) MalformedURLException(java.net.MalformedURLException) Files(java.nio.file.Files) JarArchive(org.apache.xbean.finder.archive.JarArchive) Values(org.talend.sdk.component.api.service.completion.Values) Optional.ofNullable(java.util.Optional.ofNullable) FileOutputStream(java.io.FileOutputStream) IOException(java.io.IOException) File(java.io.File) Collectors.toList(java.util.stream.Collectors.toList) TreeMap(java.util.TreeMap) HealthCheckStatus(org.talend.sdk.component.api.service.healthcheck.HealthCheckStatus) JarLocation.jarLocation(org.apache.ziplock.JarLocation.jarLocation) Data(lombok.Data) APPLICATION_JSON_TYPE(javax.ws.rs.core.MediaType.APPLICATION_JSON_TYPE) Jsonb(javax.json.bind.Jsonb) WebTarget(javax.ws.rs.client.WebTarget) Comparator(java.util.Comparator) ActionType(org.talend.sdk.component.api.service.ActionType) NoArgsConstructor(lombok.NoArgsConstructor) PrintStream(java.io.PrintStream) MapperBuilder(org.apache.johnzon.mapper.MapperBuilder) Mapper(org.apache.johnzon.mapper.Mapper) ParameterExtensionEnricher(org.talend.sdk.component.spi.parameter.ParameterExtensionEnricher) Ui(org.talend.sdk.component.api.configuration.ui.meta.Ui) UiParameterEnricher(org.talend.sdk.component.runtime.manager.reflect.parameterenricher.UiParameterEnricher) JarArchive(org.apache.xbean.finder.archive.JarArchive) FileArchive(org.apache.xbean.finder.archive.FileArchive) File(java.io.File) Collectors.toMap(java.util.stream.Collectors.toMap) Map(java.util.Map) TreeMap(java.util.TreeMap) AnnotationFinder(org.apache.xbean.finder.AnnotationFinder)

Example 3 with Type

use of org.talend.sdk.component.api.service.schema.Type in project component-runtime by Talend.

the class TaCoKitGuessSchema method guessSchemaThroughAction.

public boolean guessSchemaThroughAction() {
    if (action == null || action.isEmpty()) {
        return false;
    }
    final ServiceMeta.ActionMeta actionRef = componentManager.findPlugin(plugin).orElseThrow(() -> new IllegalArgumentException("No component " + plugin)).get(ContainerComponentRegistry.class).getServices().stream().flatMap(s -> s.getActions().stream()).filter(a -> a.getFamily().equals(family) && a.getAction().equals(action) && a.getType().equals(type)).findFirst().orElseThrow(() -> new IllegalArgumentException("No action " + family + "#" + type + "#" + action));
    final Object schemaResult = actionRef.getInvoker().apply(buildActionConfig(actionRef, configuration));
    if (schemaResult instanceof Schema) {
        Collection<Schema.Entry> entries = Schema.class.cast(schemaResult).getEntries();
        if (entries == null || entries.isEmpty()) {
            log.info("No column found by guess schema action");
            return false;
        }
        for (Schema.Entry entry : entries) {
            String name = entry.getName();
            Type entryType = entry.getType();
            if (entryType == null) {
                entryType = Type.STRING;
            }
            String typeName;
            switch(entryType) {
                case BOOLEAN:
                    typeName = javaTypesManager.BOOLEAN.getId();
                    break;
                case DOUBLE:
                    typeName = javaTypesManager.DOUBLE.getId();
                    break;
                case INT:
                    typeName = javaTypesManager.INTEGER.getId();
                    break;
                default:
                    typeName = javaTypesManager.STRING.getId();
                    break;
            }
            append(str, name, typeName);
        }
        return true;
    } else {
        log.error("Result of built-in guess schema action is not an instance of TaCoKit Schema");
        return false;
    }
}
Also used : IntStream(java.util.stream.IntStream) HashMap(java.util.HashMap) Modifier.isStatic(java.lang.reflect.Modifier.isStatic) Type(org.talend.sdk.component.api.service.schema.Type) Schema(org.talend.sdk.component.api.service.schema.Schema) HashSet(java.util.HashSet) JsonValue(javax.json.JsonValue) Collectors.toMap(java.util.stream.Collectors.toMap) ElementListener(org.talend.sdk.component.api.processor.ElementListener) Map(java.util.Map) Input(org.talend.sdk.component.runtime.input.Input) JobStateAware(org.talend.sdk.component.runtime.di.JobStateAware) Output(org.talend.sdk.component.api.processor.Output) ParameterMeta(org.talend.sdk.component.runtime.manager.ParameterMeta) PrintStream(java.io.PrintStream) JsonObject(javax.json.JsonObject) ContainerComponentRegistry(org.talend.sdk.component.runtime.manager.ContainerComponentRegistry) Collection(java.util.Collection) Set(java.util.Set) Delegated(org.talend.sdk.component.runtime.base.Delegated) Field(java.lang.reflect.Field) ChainedMapper(org.talend.sdk.component.runtime.manager.chain.ChainedMapper) Processor(org.talend.sdk.component.runtime.output.Processor) OutputEmitter(org.talend.sdk.component.api.processor.OutputEmitter) Mapper(org.talend.sdk.component.runtime.input.Mapper) Slf4j(lombok.extern.slf4j.Slf4j) Stream(java.util.stream.Stream) ParameterizedType(java.lang.reflect.ParameterizedType) Optional(java.util.Optional) ComponentManager(org.talend.sdk.component.runtime.manager.ComponentManager) ServiceMeta(org.talend.sdk.component.runtime.manager.ServiceMeta) Type(org.talend.sdk.component.api.service.schema.Type) ParameterizedType(java.lang.reflect.ParameterizedType) Schema(org.talend.sdk.component.api.service.schema.Schema) JsonObject(javax.json.JsonObject) ServiceMeta(org.talend.sdk.component.runtime.manager.ServiceMeta)

Example 4 with Type

use of org.talend.sdk.component.api.service.schema.Type in project component-runtime by Talend.

the class TaCoKitGuessSchema method buildActionConfig.

private Map<String, String> buildActionConfig(final ServiceMeta.ActionMeta action, final Map<String, String> configuration) {
    if (configuration == null || configuration.isEmpty()) {
        // no-mapping
        return configuration;
    }
    final ParameterMeta dataSet = action.getParameters().stream().filter(param -> param.getMetadata().containsKey("tcomp::configurationtype::type") && "dataset".equals(param.getMetadata().get("tcomp::configurationtype::type"))).findFirst().orElse(null);
    if (dataSet == null) {
        // no mapping to do
        return configuration;
    }
    // action configuration prefix.
    final String prefix = dataSet.getPath();
    final int dotIndex = configuration.keySet().iterator().next().indexOf(".");
    return configuration.entrySet().stream().collect(toMap(e -> prefix + "." + e.getKey().substring(dotIndex + 1, e.getKey().length()), Map.Entry::getValue));
}
Also used : ParameterMeta(org.talend.sdk.component.runtime.manager.ParameterMeta) IntStream(java.util.stream.IntStream) HashMap(java.util.HashMap) Modifier.isStatic(java.lang.reflect.Modifier.isStatic) Type(org.talend.sdk.component.api.service.schema.Type) Schema(org.talend.sdk.component.api.service.schema.Schema) HashSet(java.util.HashSet) JsonValue(javax.json.JsonValue) Collectors.toMap(java.util.stream.Collectors.toMap) ElementListener(org.talend.sdk.component.api.processor.ElementListener) Map(java.util.Map) Input(org.talend.sdk.component.runtime.input.Input) JobStateAware(org.talend.sdk.component.runtime.di.JobStateAware) Output(org.talend.sdk.component.api.processor.Output) ParameterMeta(org.talend.sdk.component.runtime.manager.ParameterMeta) PrintStream(java.io.PrintStream) JsonObject(javax.json.JsonObject) ContainerComponentRegistry(org.talend.sdk.component.runtime.manager.ContainerComponentRegistry) Collection(java.util.Collection) Set(java.util.Set) Delegated(org.talend.sdk.component.runtime.base.Delegated) Field(java.lang.reflect.Field) ChainedMapper(org.talend.sdk.component.runtime.manager.chain.ChainedMapper) Processor(org.talend.sdk.component.runtime.output.Processor) OutputEmitter(org.talend.sdk.component.api.processor.OutputEmitter) Mapper(org.talend.sdk.component.runtime.input.Mapper) Slf4j(lombok.extern.slf4j.Slf4j) Stream(java.util.stream.Stream) ParameterizedType(java.lang.reflect.ParameterizedType) Optional(java.util.Optional) ComponentManager(org.talend.sdk.component.runtime.manager.ComponentManager) ServiceMeta(org.talend.sdk.component.runtime.manager.ServiceMeta) HashMap(java.util.HashMap) Collectors.toMap(java.util.stream.Collectors.toMap) Map(java.util.Map)

Example 5 with Type

use of org.talend.sdk.component.api.service.schema.Type in project component-runtime by Talend.

the class TaCoKitGuessSchema method fromOutputEmitterPojo.

public void fromOutputEmitterPojo(final Processor processor, final String outBranchName) {
    Object o = processor;
    while (Delegated.class.isInstance(o)) {
        o = Delegated.class.cast(o).getDelegate();
    }
    final ClassLoader classLoader = o.getClass().getClassLoader();
    final Thread thread = Thread.currentThread();
    final ClassLoader old = thread.getContextClassLoader();
    thread.setContextClassLoader(classLoader);
    try {
        final Optional<java.lang.reflect.Type> type = Stream.of(o.getClass().getMethods()).filter(m -> m.isAnnotationPresent(ElementListener.class)).flatMap(m -> IntStream.range(0, m.getParameterCount()).filter(i -> m.getParameters()[i].isAnnotationPresent(Output.class) && outBranchName.equals(m.getParameters()[i].getAnnotation(Output.class).value())).mapToObj(i -> m.getGenericParameterTypes()[i]).filter(t -> ParameterizedType.class.isInstance(t) && ParameterizedType.class.cast(t).getRawType() == OutputEmitter.class && ParameterizedType.class.cast(t).getActualTypeArguments().length == 1).map(p -> ParameterizedType.class.cast(p).getActualTypeArguments()[0])).findFirst();
        if (type.isPresent() && Class.class.isInstance(type.get())) {
            final Class<?> clazz = Class.class.cast(type.get());
            if (clazz != JsonObject.class) {
                guessSchemaThroughResultClass(clazz);
            }
        }
    } finally {
        thread.setContextClassLoader(old);
    }
}
Also used : IntStream(java.util.stream.IntStream) HashMap(java.util.HashMap) Modifier.isStatic(java.lang.reflect.Modifier.isStatic) Type(org.talend.sdk.component.api.service.schema.Type) Schema(org.talend.sdk.component.api.service.schema.Schema) HashSet(java.util.HashSet) JsonValue(javax.json.JsonValue) Collectors.toMap(java.util.stream.Collectors.toMap) ElementListener(org.talend.sdk.component.api.processor.ElementListener) Map(java.util.Map) Input(org.talend.sdk.component.runtime.input.Input) JobStateAware(org.talend.sdk.component.runtime.di.JobStateAware) Output(org.talend.sdk.component.api.processor.Output) ParameterMeta(org.talend.sdk.component.runtime.manager.ParameterMeta) PrintStream(java.io.PrintStream) JsonObject(javax.json.JsonObject) ContainerComponentRegistry(org.talend.sdk.component.runtime.manager.ContainerComponentRegistry) Collection(java.util.Collection) Set(java.util.Set) Delegated(org.talend.sdk.component.runtime.base.Delegated) Field(java.lang.reflect.Field) ChainedMapper(org.talend.sdk.component.runtime.manager.chain.ChainedMapper) Processor(org.talend.sdk.component.runtime.output.Processor) OutputEmitter(org.talend.sdk.component.api.processor.OutputEmitter) Mapper(org.talend.sdk.component.runtime.input.Mapper) Slf4j(lombok.extern.slf4j.Slf4j) Stream(java.util.stream.Stream) ParameterizedType(java.lang.reflect.ParameterizedType) Optional(java.util.Optional) ComponentManager(org.talend.sdk.component.runtime.manager.ComponentManager) ServiceMeta(org.talend.sdk.component.runtime.manager.ServiceMeta) ParameterizedType(java.lang.reflect.ParameterizedType) Type(org.talend.sdk.component.api.service.schema.Type) ParameterizedType(java.lang.reflect.ParameterizedType) Output(org.talend.sdk.component.api.processor.Output) JsonObject(javax.json.JsonObject) ElementListener(org.talend.sdk.component.api.processor.ElementListener)

Aggregations

PrintStream (java.io.PrintStream)5 Collection (java.util.Collection)5 Map (java.util.Map)5 Set (java.util.Set)5 Collectors.toMap (java.util.stream.Collectors.toMap)5 Stream (java.util.stream.Stream)5 Slf4j (lombok.extern.slf4j.Slf4j)5 Schema (org.talend.sdk.component.api.service.schema.Schema)5 Type (org.talend.sdk.component.api.service.schema.Type)5 Field (java.lang.reflect.Field)3 Modifier.isStatic (java.lang.reflect.Modifier.isStatic)3 ParameterizedType (java.lang.reflect.ParameterizedType)3 HashMap (java.util.HashMap)3 HashSet (java.util.HashSet)3 Optional (java.util.Optional)3 IntStream (java.util.stream.IntStream)3 JsonObject (javax.json.JsonObject)3 JsonValue (javax.json.JsonValue)3 ElementListener (org.talend.sdk.component.api.processor.ElementListener)3 Output (org.talend.sdk.component.api.processor.Output)3