use of com.yahoo.vespa.indexinglanguage.expressions.PassthroughExpression in project vespa by vespa-engine.
the class IndexingScript method generateSyntheticStatementsForUntouchedFields.
private void generateSyntheticStatementsForUntouchedFields(Builder ilscriptBuilder, Set<String> touchedFields) {
Set<String> fieldsWithSyntheticStatements = new HashSet<String>(docFields);
fieldsWithSyntheticStatements.removeAll(touchedFields);
List<String> orderedFields = new ArrayList<String>(fieldsWithSyntheticStatements);
Collections.sort(orderedFields);
for (String fieldName : orderedFields) {
StatementExpression copyField = new StatementExpression(new InputExpression(fieldName), new PassthroughExpression(fieldName));
ilscriptBuilder.content(copyField.toString());
}
}
Aggregations