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();
}