All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.radarbase.data.RecordData Maven / Gradle / Ivy

package org.radarbase.data;

import org.radarbase.topic.AvroTopic;

/**
 * Record data belonging to a single key.
 * @param  key type
 * @param  value type
 */
public interface RecordData extends Iterable {
    /**
     * Topic that the data belongs to.
     * @return Avro topic.
     */
    AvroTopic getTopic();

    /**
     * Key of each of the entries in the data set.
     * @return key
     */
    K getKey();

    /**
     * Whether the list of values is empty.
     * @return true if empty, false otherwise.
     */
    boolean isEmpty();

    /**
     * The size of the value list.
     * @return size.
     */
    int size();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy