gov.ornl.csed.csiir.idr.kdd.dataservice.server.models
Class RecordCountResponse

java.lang.Object
  extended by gov.ornl.csed.csiir.idr.kdd.dataservice.server.models.RecordCountResponse

public final class RecordCountResponse
extends java.lang.Object

The ResultCountResponse object represents the total number of records that match a particular data set query.


Constructor Summary
RecordCountResponse()
           
RecordCountResponse(int queryProcessingTime, long totalMatchingRecords)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int getQueryProcessingTime()
          Retrieves the time, in milliseconds, that it took to execute the query that generated these results.
 long getTotalMatchingRecords()
          Retrieves the total number of records that matched the executed query.
 int hashCode()
           
 void setQueryProcessingTime(int queryProcessingTime)
          Set the query processing time.
 void setTotalMatchingRecords(long totalMatchingRecords)
          Set the total number of records that matched the executed query.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RecordCountResponse

public RecordCountResponse()

RecordCountResponse

public RecordCountResponse(int queryProcessingTime,
                           long totalMatchingRecords)
Method Detail

getQueryProcessingTime

public int getQueryProcessingTime()
Retrieves the time, in milliseconds, that it took to execute the query that generated these results.

Returns:
the query execution time in milliseconds

setQueryProcessingTime

public void setQueryProcessingTime(int queryProcessingTime)
Set the query processing time. Used for serialization.

Parameters:
queryProcessingTime - the query processing time in milliseconds.

getTotalMatchingRecords

public long getTotalMatchingRecords()
Retrieves the total number of records that matched the executed query.

Returns:
the total number of matching records

setTotalMatchingRecords

public void setTotalMatchingRecords(long totalMatchingRecords)
Set the total number of records that matched the executed query. Used for serialization.

Parameters:
totalMatchingRecords - the total number of matching records

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object