A factory for creating FilterExpressions for use in the caplin.streamlink.ContainerSubscriptionParameters select method.
ContainerSubscriptionParameters parameters = streamlink.createContainerSubscriptionParameters();
FilterExpression fe1 = ContainerFilterFactory.create("FIELD1", FilterExpressionOperator.GREATER_THAN, "0.1");FilterExpression fe2 = ContainerFilterFactory.create("FIELD3", FilterExpressionOperator.EQUAL, "a a");
FilterExpression fe3 = ContainerFilterFactory.createLogical(FilterExpressionLogicalOperator.AND, fe1, fe2);
parameters.select(fe3.toFilterString(), null, null);
Attributes | Name and Description |
---|---|
|
caplin.streamlink.ContainerFilterFactory()
|
Attributes | Name and Description |
---|---|
<static>
|
caplin.streamlink.FilterExpression
create(String field, caplin.streamlink.FilterExpressionOperator oper, String value)
Creates a new field filter expression. |
<static>
|
caplin.streamlink.FilterExpression
createCustom(String field, String fieldType, caplin.streamlink.FilterExpressionOperator oper, String value)
Creates a new custom field filter expression. |
<static>
|
caplin.streamlink.FilterExpression
createLogical(caplin.streamlink.FilterExpressionLogicalOperator oper, caplin.streamlink.FilterExpression expressions)
Creates a new logical filter expression. |
►
caplin.streamlink.ContainerFilterFactory()
►
<static>
caplin.streamlink.FilterExpression
create(String field, caplin.streamlink.FilterExpressionOperator oper, String value)
Creates a new field filter expression.
String | field | The field. |
caplin.streamlink.FilterExpressionOperator | oper | The comparison operator. |
String | value | The value. |
►
<static>
caplin.streamlink.FilterExpression
createCustom(String field, String fieldType, caplin.streamlink.FilterExpressionOperator oper, String value)
Creates a new custom field filter expression.
String | field | The field. |
String | fieldType | The custom type of this field e.g. Tenor. |
caplin.streamlink.FilterExpressionOperator | oper | The operator. |
String | value | The value. |
►
<static>
caplin.streamlink.FilterExpression
createLogical(caplin.streamlink.FilterExpressionLogicalOperator oper, caplin.streamlink.FilterExpression expressions)
Creates a new logical filter expression.
caplin.streamlink.FilterExpressionLogicalOperator | oper | The logical operator. |
caplin.streamlink.FilterExpression | expressions | A list of FilterExpressions. |