Kinetica C# API  Version 6.2.0.1
kinetica.FilterByListRequest Class Reference

A set of parameters for Kinetica.filterByList(string,string,IDictionary<string, IList<string>>,IDictionary<string, string>). More...

+ Inheritance diagram for kinetica.FilterByListRequest:
+ Collaboration diagram for kinetica.FilterByListRequest:

Classes

struct  Options
 Optional parameters. More...
 

Public Member Functions

 FilterByListRequest ()
 Constructs a FilterByListRequest object with default parameters. More...
 
 FilterByListRequest (string table_name, string view_name, IDictionary< string, IList< string >> column_values_map, IDictionary< string, string > options=null)
 Constructs a FilterByListRequest object with the specified parameters. More...
 
- Public Member Functions inherited from kinetica.KineticaData
 KineticaData (KineticaType type)
 Constructor from Kinetica Type More...
 
 KineticaData (System.Type type=null)
 Default constructor, with optional System.Type More...
 
object Get (int fieldPos)
 Retrieve a specific property from this object More...
 
void Put (int fieldPos, object fieldValue)
 Write a specific property to this object More...
 

Properties

string table_name [get, set]
 Name of the table to filter. More...
 
string view_name [get, set]
 If provided, then this will be the name of the view containing the results. More...
 
IDictionary< string, IList< string > > column_values_map = "" [get, set]
 List of values for the corresponding column in the table More...
 
IDictionary< string, string > options = new Dictionary<string, IList<string>>() [get, set]
 Optional parameters. More...
 
- Properties inherited from kinetica.KineticaData
Schema Schema [get]
 Avro Schema for this class More...
 

Additional Inherited Members

- Static Public Member Functions inherited from kinetica.KineticaData
static RecordSchema SchemaFromType (System.Type t, KineticaType ktype=null)
 Create an Avro Schema from a System.Type and a KineticaType. More...
 

Detailed Description

A set of parameters for Kinetica.filterByList(string,string,IDictionary<string, IList<string>>,IDictionary<string, string>).


Calculates which records from a table have values in the given list for the corresponding column. The operation is synchronous, meaning that a response will not be returned until all the objects are fully available. The response payload provides the count of the resulting set. A new resultant set (view) which satisfies the input filter specification is also created if a view_name is passed in as part of the request.
For example, if a type definition has the columns 'x' and 'y', then a filter by list query with the column map {"x":["10.1", "2.3"], "y":["0.0", "-31.5", "42.0"]} will return the count of all data points whose x and y values match both in the respective x- and y-lists, e.g., "x = 10.1 and y = 0.0", "x = 2.3 and y = -31.5", etc. However, a record with "x = 10.1 and y = -31.5" or "x = 2.3 and y = 0.0" would not be returned because the values in the given lists do not correspond.

Definition at line 34 of file FilterByList.cs.

Constructor & Destructor Documentation

◆ FilterByListRequest() [1/2]

kinetica.FilterByListRequest.FilterByListRequest ( )
inline

Constructs a FilterByListRequest object with default parameters.

Definition at line 172 of file FilterByList.cs.

◆ FilterByListRequest() [2/2]

kinetica.FilterByListRequest.FilterByListRequest ( string  table_name,
string  view_name,
IDictionary< string, IList< string >>  column_values_map,
IDictionary< string, string >  options = null 
)
inline

Constructs a FilterByListRequest object with the specified parameters.

Parameters
table_nameName of the table to filter. This may be the ID of a collection, table or a result set (for chaining queries). If filtering a collection, all child tables where the filter expression is valid will be filtered; the filtered result tables will then be placed in a collection specified by .
view_nameIf provided, then this will be the name of the view containing the results. Has the same naming restrictions as tables. The default value is ''.
column_values_mapList of values for the corresponding column in the table
optionsOptional parameters.
  • COLLECTION_NAME: Name of a collection which is to contain the newly created view. If the collection provided is non-existent, the collection will be automatically created. If empty, then the newly created view will be top-level.
  • FILTER_MODE: String indicating the filter mode, either 'in_list' or 'not_in_list'. Supported values:
    • IN_LIST: The filter will match all items that are in the provided list(s).
    • NOT_IN_LIST: The filter will match all items that are not in the provided list(s).
    The default value is IN_LIST.
The default value is an empty Dictionary.

Definition at line 225 of file FilterByList.cs.

Property Documentation

◆ column_values_map

IDictionary<string, IList<string> > kinetica.FilterByListRequest.column_values_map = ""
getset

List of values for the corresponding column in the table

Definition at line 130 of file FilterByList.cs.

◆ options

IDictionary<string, string> kinetica.FilterByListRequest.options = new Dictionary<string, IList<string>>()
getset

Optional parameters.

  • COLLECTION_NAME: Name of a collection which is to contain the newly created view. If the collection provided is non-existent, the collection will be automatically created. If empty, then the newly created view will be top-level.
  • FILTER_MODE: String indicating the filter mode, either 'in_list' or 'not_in_list'. Supported values:
    • IN_LIST: The filter will match all items that are in the provided list(s).
    • NOT_IN_LIST: The filter will match all items that are not in the provided list(s).
    The default value is IN_LIST.

The default value is an empty Dictionary.

Definition at line 167 of file FilterByList.cs.

◆ table_name

string kinetica.FilterByListRequest.table_name
getset

Name of the table to filter.

This may be the ID of a collection, table or a result set (for chaining queries). If filtering a collection, all child tables where the filter expression is valid will be filtered; the filtered result tables will then be placed in a collection specified by .

Definition at line 120 of file FilterByList.cs.

◆ view_name

string kinetica.FilterByListRequest.view_name
getset

If provided, then this will be the name of the view containing the results.

Has the same naming restrictions as tables. The default value is ''.

Definition at line 126 of file FilterByList.cs.


The documentation for this class was generated from the following file: