Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.factual.driver;
 
 import java.util.Map;

Represents a Factual row query. Knows how to represent the query as URL encoded key value pairs, ready for the query string in a GET request. (See toUrlQuery())

Author(s):
brandon
public class RowQuery {
  protected final Parameters queryParams = new Parameters();

  
Sets the fields to select. This is optional; default behaviour is generally to select all fields in the schema.

Parameters:
fields the fields to select.
Returns:
this Query
  public RowQuery only(String... fields) {
    for (String field : fields) {
    }
    return this;
  }

  

Returns:
array of select fields set by only(), null if none.
  public String[] getSelectFields() {
  }
  protected Map<StringObjecttoUrlParams() {
    return .toUrlParams(null);
  }
  public String toString() {
    try {
      return URLDecoder.decode(UrlUtil.toUrlQuery(toUrlParams()), "UTF-8");
    } catch (UnsupportedEncodingException e) {
      throw new RuntimeException(e);
    }
  }
  public String toUrlQuery() {
    return UrlUtil.toUrlQuery(toUrlParams());
  }
New to GrepCode? Check out our FAQ X