aboutsummaryrefslogtreecommitdiffstats
path: root/vespa-hadoop/src/main/java/ai/vespa/feed/client/DryrunResult.java
blob: 74baf9f1065ada751073deb99d92301be2ae8bbd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package ai.vespa.feed.client;

import ai.vespa.feed.client.Result.Type;

/**
 * Workaround for package-private {@link Result} constructor.
 *
 * @author bjorncs
 */
public class DryrunResult {

    private DryrunResult() {}

    public static Result create(Type type, DocumentId documentId, String resultMessage, String traceMessage) {
        return new Result(type, documentId, resultMessage, traceMessage);
    }
}