Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  This is free and unencumbered software released into the public domain.
  Anyone is free to copy, modify, publish, use, compile, sell, or
  distribute this software, either in source code form or as a compiled
  binary, for any purpose, commercial or non-commercial, and by any
  In jurisdictions that recognize copyright laws, the author or authors
 of this software dedicate any and all copyright interest in the
 software to the public domain. We make this dedication for the benefit
 of the public at large and to the detriment of our heirs and
 successors. We intend this dedication to be an overt act of
 relinquishment in perpetuity of all present and future rights to this
 software under copyright law.
package base;

Invocation of a Query always returns a collection of QueryResult objects. Each of these objects must know how to render themselves in the JSON format.

public interface QueryResult {

A JSON representation of the contents of this query result object. It should be noted that this method may in some cases be invoked thousands or millions of times while processing a particular job or task, avoid generating too many string objects that need to be garbage collected, ie use StringBuffer to build the result.

A JSON string describing the contents of this object.
New to GrepCode? Check out our FAQ X