/*
* Hibernate OGM, Domain model persistence for NoSQL datastores
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.ogm.dialect.spi;
import org.hibernate.ogm.model.spi.Tuple;
/**
* Represents an object that can consume a model element (only {@link Tuple}s atm.).
*
* @author Davide D'Alto <davide@hibernate.org>
*/
public interface ModelConsumer {
/**
* Consume a model element on all the tuples provided by a {@link TuplesSupplier}.
*
* @param supplier provides the tuples the model will consume
*/
void consume(TuplesSupplier supplier);
}