Ejemplo n.º 1
0
 public Clear(IEnumerable <string> fields)
 {
     foreach (var field in fields)
     {
         _parameters.AddCommaSeparatedFilter(Constants.CLEAR_FIELDS, field);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// The fields for which facets should be generated. The response will not be ordered identically to this list, nor will it reflect any nested relationships between fields.
 /// </summary>
 /// <param name="fields">fields the fields for which facets should be generated. The response will not be ordered identically to this list, nor will it reflect any nested relationships between fields.</param>
 private void Select(IEnumerable <String> fields)
 {
     foreach (var field in fields)
     {
         _parameters.AddCommaSeparatedFilter(Constants.FACET_SELECT, field);
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 /// The fields for which facets should be generated. The response will not be ordered identically to this list, nor will it reflect any nested relationships between fields.
 /// </summary>
 /// <param name="fields">fields the fields for which facets should be generated. The response will not be ordered identically to this list, nor will it reflect any nested relationships between fields.</param>
 private void Select(params string[] fields)
 {
     foreach (var field in fields)
     {
         _parameters.AddCommaSeparatedFilter(Constants.FACET_SELECT, field);
     }
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Sets the fields to select. This is optional; default behaviour is generally
 /// to select all fields in the schema.
 /// </summary>
 /// <param name="fields">fields to select</param>
 /// <returns>Geopulse</returns>
 public Geopulse Only(params string[] fields)
 {
     foreach (var field in fields)
     {
         _parameters.AddCommaSeparatedFilter(Constants.QUERY_SELECT, field);
     }
     return(this);
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Sets the fields to select. This is optional; default behaviour is generally
 /// to select all fields in the schema.
 /// </summary>
 /// <param name="fields">the fields to select.</param>
 /// <returns>this Query</returns>
 public RowQuery Only(IEnumerable <string> fields)
 {
     foreach (var field in fields)
     {
         _parameters.AddCommaSeparatedFilter(Constants.QUERY_SELECT, field);
     }
     return(this);
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Sets this Query to sort field in ascending order.
 /// </summary>
 /// <param name="field">the field to sort in ascending order.</param>
 /// <returns>this Query</returns>
 public Query SortAsc(string field)
 {
     _parameters.AddCommaSeparatedFilter(Constants.QUERY_SORT, field + ":asc");
     return(this);
 }