Package ca.carleton.gcrc.couch.date.cluster

Source Code of ca.carleton.gcrc.couch.date.cluster.CouchTreeElement

package ca.carleton.gcrc.couch.date.cluster;

import ca.carleton.gcrc.couch.date.impl.Interval;

public class CouchTreeElement implements TreeElement {

  private Integer clusterId;
  private Interval interval;
  private String docId;
 
  public CouchTreeElement(String docId, Integer clusterId, long min, long max) throws Exception {
    this.clusterId = clusterId;
    this.interval = new Interval(min, max);
  }
 
  @Override
  public Integer getClusterId() {
    return clusterId;
  }
 
  @Override
  public Interval getInterval() {
    return interval;
  }
 
  public String getDocId(){
    return docId;
  }
}
TOP

Related Classes of ca.carleton.gcrc.couch.date.cluster.CouchTreeElement

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.