aboutsummaryrefslogtreecommitdiffstats
path: root/container-search/src/main/java/com/yahoo/search/query/textserialize/item/ItemFormConverter.java
blob: 5d7b56f6ac80c8bf1fed20c3ffd728deb66812e3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.search.query.textserialize.item;

import com.yahoo.prelude.query.Item;
import com.yahoo.search.query.textserialize.serializer.DispatchForm;
import com.yahoo.search.query.textserialize.serializer.ItemIdMapper;

/**
 * @author Tony Vaagenes
 */
public interface ItemFormConverter {
    Object formToItem(String name, ItemArguments arguments, ItemContext context);
    DispatchForm itemToForm(Item item, ItemIdMapper itemIdMapper);
}