// Copyright 2017 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.searchdefinition;

import com.yahoo.searchdefinition.document.SDField;

/**
 * Represents a document reference. Contains the document reference field and the search instance of the referred document.
 *
 * @author bjorncs
 */
public class DocumentReference {

    private final SDField documentReferenceField;
    private final Search search;

    public DocumentReference(SDField documentReferenceField, Search search) {
        this.documentReferenceField = documentReferenceField;
        this.search = search;
    }

    public SDField documentReferenceField() {
        return documentReferenceField;
    }

    public Search search() {
        return search;
    }
}

@@ -165,25 +165,8 @@
 hoo.
-searchdefinition.
 docu
@@ -170,18 +170,16 @@
 ocument.
-SD
 Field;%0A%0A
@@ -384,18 +384,16 @@
 e final 
-SD
 Field do
@@ -477,18 +477,16 @@
 ference(
-SD
 Field do
@@ -638,10 +638,8 @@
 lic 
-SD
 Fiel

Change DocumentReference to use Field instead of SDField