Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.factual.driver;

Represents a Factual Crosswalk query.

Author(s):
aaron
 
 public class CrosswalkQuery {

  
Holds all parameters for this CrosswalkQuery.
  private final Parameters queryParams = new Parameters();

  
Adds the specified Factual ID to this Query. Returned Crosswalk data will be for only the entity associated with the Factual ID.

Parameters:
factualId a unique Factual ID.
Returns:
this CrosswalkQuery
  public CrosswalkQuery factualId(String factualId) {
    return this;
  }

  
Adds the specified limit to this Query. The amount of returned Crosswalk records will not exceed this limit.

Parameters:
limit The amount of returned Crosswalk records this Query will not exceed.
Returns:
this CrosswalkQuery
  public CrosswalkQuery limit(int limit) {
    return this;
  }

  
The namespace to search for a third party ID within.

Parameters:
namespace The namespace to search for a third party ID within.
Returns:
this CrosswalkQuery
  public CrosswalkQuery namespace(String namespace) {
    return this;
  }

  
The id used by a third party to identify a place.

You must also supply namespace via namespace(java.lang.String).

Parameters:
namespaceId The id used by a third party to identify a place.
Returns:
this CrosswalkQuery
  public CrosswalkQuery namespaceId(String namespaceId) {
    return this;
  }

  
Restricts the results to only return ids for the specified namespace(s).

Returns:
this CrosswalkQuery
  public CrosswalkQuery only(String... namespaces) {
	for (String namespace : namespaces)
	return this;
  }
  protected String toUrlQuery() {
	return .toUrlQuery(true);
  }
  
New to GrepCode? Check out our FAQ X