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

org.kairosdb.client.response.grouping.DefaultGroupResult Maven / Gradle / Ivy

The newest version!
package org.kairosdb.client.response.grouping;

import org.kairosdb.client.response.GroupResult;

import static org.kairosdb.client.util.Preconditions.checkNotNullOrEmpty;

/**
 * Group that represents natural grouping based on the type of the data.
 */
public class DefaultGroupResult extends GroupResult
{
	private String type;

	public DefaultGroupResult(String name, String type)
	{
		super(name);
		this.type = checkNotNullOrEmpty(type);
	}

	/**
	 * Returns the type of data.
	 *
	 * @return type of the data
	 */
	public String getType()
	{
		return type;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy