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

com.groupbyinc.api.model.Cluster Maven / Gradle / Ivy

There is a newer version: 198
Show newest version
package com.groupbyinc.api.model;

import java.util.ArrayList;
import java.util.List;

/**
 * 
 * A cluster represents a set of documents that are considered closely related based on a search term.
 * 
 */
public class Cluster {

  private String term;
  private List records = new ArrayList();

  /**
   * @return The list of clustered records
   */
  public List getRecords() {
    return records;
  }

  /**
   * 
   * Set a list of cluster records
   * 
   *
   * @param records
   *         The list of cluster records to set
   *
   */
  public com.groupbyinc.api.model.Cluster setRecords(List records) {
    this.records = records;
    return this;
  }

  /**
   * @return The term for this cluster
   */
  public String getTerm() {
    return term;
  }

  /**
   * 
   * Set the term for this cluster.
   * 
   *
   * @param term
   *         The cluster term
   *
   */
  public com.groupbyinc.api.model.Cluster setTerm(String term) {
    this.term = term;
    return this;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy