package com.groupbyinc.api.model;

/**
 * ResultsMetadata
 *
 * @author groupby
 */
public class ResultsMetadata {

  private boolean cached = false;
  private boolean recordLimitReached;
  private long totalTime;

  /**
   * @return true if the total record count is actually greater than the returned record count in the response, false otherwise.
   * The limit on the amount of records considered by the engine has been reached.
   */
  public boolean isRecordLimitReached() {
    return recordLimitReached;
  }

  public ResultsMetadata setRecordLimitReached(boolean recordLimitReached) {
    this.recordLimitReached = recordLimitReached;
    return this;
  }

  /**
   * @return The total time spent in milliseconds.
   */
  public long getTotalTime() {
    return totalTime;
  }

  public ResultsMetadata setTotalTime(long totalTime) {
    this.totalTime = totalTime;
    return this;
  }

  public boolean isCached(){
    return cached;
  }

  public ResultsMetadata setCached(boolean cached){
    this.cached = cached;
    return this;
  }
}

@@ -137,16 +137,8 @@
 ched
- = false
 ;%0A  
@@ -878,24 +878,100 @@
  this;%0A  %7D%0A%0A
+  /**%0A   *%0A   * @return true if the query was cached, false otherwise%0A   */%0A
   public boo
@@ -985,16 +985,17 @@
 Cached()
+ 
 %7B%0A    re
@@ -1062,16 +1062,17 @@
  cached)
+ 
 %7B%0A    th

remove default for cached flag