make it compilable to run gradle idea

This commit is contained in:
Marco D'Ambros 2023-04-16 18:09:41 +02:00
parent d2ba955810
commit 0df28bc0b9

View file

@ -32,7 +32,7 @@ public class LookupProcessor extends AbstractProcessor {
public static final String TYPE = "lookup"; public static final String TYPE = "lookup";
private final String field; private final String field = "";
// TODO this signature and method might be incomplete - change as needed // TODO this signature and method might be incomplete - change as needed
@ -45,15 +45,18 @@ public class LookupProcessor extends AbstractProcessor {
public IngestDocument execute(IngestDocument ingestDocument) throws Exception{ public IngestDocument execute(IngestDocument ingestDocument) throws Exception{
String originalContent = ingestDocument.getFieldValue(field, String.class); String originalContent = ingestDocument.getFieldValue(field, String.class);
ingestDocument.setFieldValue(field, "Hello world"); ingestDocument.setFieldValue(field, "Hello world");
return null;
} }
@Override @Override
public String getType() { public String getType() {
// TODO your job! // TODO your job!
return null;
} }
String getField() { String getField() {
// TODO your job! // TODO your job!
return null;
} }
@ -66,6 +69,7 @@ public class LookupProcessor extends AbstractProcessor {
String field = readStringProperty(TYPE, tag, config, "field"); String field = readStringProperty(TYPE, tag, config, "field");
// TODO your job! Also initialize the lookup processor properly if needed, after you changed the constructor // TODO your job! Also initialize the lookup processor properly if needed, after you changed the constructor
return null;
} }
} }
} }