@@ -0,0 +1,1772 @@
+// ============================================================================%0A//%0A// Copyright (C) 2006-2016 Talend Inc. - www.talend.com%0A//%0A// This source code is available under agreement available at%0A// %25InstallDIR%25%5Cfeatures%5Corg.talend.rcp.branding.%25PRODUCTNAME%25%5C%25PRODUCTNAME%25license.txt%0A//%0A// You should have received a copy of the agreement%0A// along with this program; if not, write to Talend SA%0A// 9 rue Pages 92150 Suresnes, France%0A//%0A// ============================================================================%0Apackage org.talend.components.common.dataset.runtime;%0A%0Aimport org.apache.avro.Schema;%0Aimport org.apache.avro.generic.IndexedRecord;%0Aimport org.talend.components.api.component.runtime.RuntimableRuntime;%0Aimport org.talend.components.common.dataset.DatasetProperties;%0Aimport org.talend.daikon.properties.Properties;%0A%0A/**%0A * Provides access to runtime methods on a dataset.%0A *%0A * The runtime objects are created by via a%0A * %7B@link org.talend.components.common.dataset.DatasetDefinition#getRuntimeInfo(Properties, Object)%7D, where the%0A * properties contain all of the configuration necessary to access the dataset.%0A * %0A * @param %3CDatasetPropT%3E The properties that specify a dataset.%0A */%0Apublic interface DatasetRuntime%3CDatasetPropT extends DatasetProperties%3E extends RuntimableRuntime%3CDatasetPropT%3E %7B%0A%0A    /** @return a Schema for the dataset. */%0A    Schema getSchema();%0A%0A    /**%0A     * Discover a sample of data from the dataset.%0A     *%0A     * There is no requirement for sort order or start position, unless specified in the dataset properties.%0A     *%0A     * @param limit the maximum number of records to return.%0A     * @return a list of IndexedRecords that the dataset can support.%0A     */%0A    Iterable%3C? extends IndexedRecord%3E getSample(int limit);%0A%7D%0A

Add a DatasetRuntime interface. (#312)