@Override protected List<AllowableValue> getSchemaAccessStrategyValues() { final List<AllowableValue> allowableValues = new ArrayList<>(super.getSchemaAccessStrategyValues()); allowableValues.add(headerDerivedAllowableValue); return allowableValues; }
@Override protected List<AllowableValue> getSchemaAccessStrategyValues() { final List<AllowableValue> allowableValues = new ArrayList<>(super.getSchemaAccessStrategyValues()); allowableValues.add(EMBEDDED_AVRO_SCHEMA); return allowableValues; }
@Override protected List<AllowableValue> getSchemaAccessStrategyValues() { final List<AllowableValue> allowableValues = new ArrayList<>(); allowableValues.add(STRING_FIELDS_FROM_GROK_EXPRESSION); allowableValues.addAll(super.getSchemaAccessStrategyValues()); return allowableValues; }
@Override protected List<PropertyDescriptor> getSupportedPropertyDescriptors() { final List<PropertyDescriptor> properties = new ArrayList<>(2); final AllowableValue[] strategies = getSchemaAccessStrategyValues().toArray(new AllowableValue[0]); properties.add(buildStrategyProperty(strategies)); properties.add(SCHEMA_REGISTRY); properties.add(SCHEMA_NAME); properties.add(SCHEMA_VERSION); properties.add(SCHEMA_BRANCH_NAME); properties.add(SCHEMA_TEXT); return properties; }
@Override protected Collection<ValidationResult> customValidate(final ValidationContext validationContext) { final String schemaAccessStrategy = validationContext.getProperty(getSchemaAcessStrategyDescriptor()).getValue(); return SchemaAccessUtils.validateSchemaAccessStrategy(validationContext, schemaAccessStrategy, getSchemaAccessStrategyValues()); }
@Override protected List<PropertyDescriptor> getSupportedPropertyDescriptors() { final List<PropertyDescriptor> properties = new ArrayList<>(2); final AllowableValue[] strategies = getSchemaAccessStrategyValues().toArray(new AllowableValue[0]); properties.add(buildStrategyProperty(strategies)); properties.add(SCHEMA_REGISTRY); properties.add(SCHEMA_NAME); properties.add(SCHEMA_VERSION); properties.add(SCHEMA_BRANCH_NAME); properties.add(SCHEMA_TEXT); return properties; }
@Override protected Collection<ValidationResult> customValidate(final ValidationContext validationContext) { final String schemaAccessStrategy = validationContext.getProperty(getSchemaAcessStrategyDescriptor()).getValue(); return SchemaAccessUtils.validateSchemaAccessStrategy(validationContext, schemaAccessStrategy, getSchemaAccessStrategyValues()); }