arrow-left

All pages
gitbookPowered by GitBook
1 of 1

Loading...

Conditions

hashtag
BooleanCondition

[source]arrow-up-right

BooleanCondition: used for creating compound conditions, such as AND(ConditionA, ConditionB, …) As a BooleanCondition is a condition, these can be chained together, like NOT(OR(AND(…),AND(…)))

hashtag
outputColumnName

The output column name after the operation has been applied

  • return the output column name

hashtag
columnName

The output column names This will often be the same as the input

  • return the output column names

condition

Condition on arbitrary input

  • param input the input to return the condition for

  • return true if the condition is met false otherwise

conditionSequence

Condition on arbitrary input

  • param sequence the sequence to do a condition on

  • return true if the condition for the sequence is met false otherwise

transform

Get the output schema for this transformation, given an input schema

  • param inputSchema

hashtag
AND

And of all the given conditions

  • param conditions the conditions to and

  • return a joint and of all these conditions

hashtag
OR

Or of all the given conditions

  • param conditions the conditions to or

  • return a joint and of all these conditions

hashtag
NOT

Not of the given condition

  • param condition the conditions to and

  • return a joint and of all these condition

hashtag
XOR

And of all the given conditions

  • param first the first condition

  • param second the second condition for xor

  • return the xor of these 2 conditions

hashtag
SequenceConditionMode

For certain single-column conditions: how should we apply these to sequences? And: Condition applies to sequence only if it applies to ALL time steps Or: Condition applies to sequence if it applies to ANY time steps NoSequencMode: Condition cannot be applied to sequences at all (error condition)

hashtag
BooleanColumnCondition

Created by agibsonccc on 11/26/16.

columnCondition

Returns whether the given element meets the condition set by this operation

  • param writable the element to test

  • return true if the condition is met false otherwise

condition

Condition on arbitrary input

  • param input the input to return the condition for

  • return true if the condition is met false otherwise

hashtag
CategoricalColumnCondition

columnCondition

Constructor for conditions equal or not equal. Uses default sequence condition mode, {- link BaseColumnCondition#DEFAULT_SEQUENCE_CONDITION_MODE}

  • param columnName Column to check for the condition

  • param op Operation (== or != only)

  • param value Value to use in the condition

condition

Condition on arbitrary input

  • param input the input to return the condition for

  • return true if the condition is met false otherwise

hashtag
DoubleColumnCondition

columnCondition

Constructor for operations such as less than, equal to, greater than, etc. Uses default sequence condition mode, {- link BaseColumnCondition#DEFAULT_SEQUENCE_CONDITION_MODE}

  • param columnName Column to check for the condition

  • param op Operation (<, >=, !=, etc)

  • param value Value to use in the condition

condition

Condition on arbitrary input

  • param input the input to return the condition for

  • return true if the condition is met false otherwise

hashtag
InfiniteColumnCondition

A column condition that simply checks whether a floating point value is infinite

columnCondition

  • param columnName Column check for the condition

hashtag
IntegerColumnCondition

columnCondition

Constructor for operations such as less than, equal to, greater than, etc. Uses default sequence condition mode, {- link BaseColumnCondition#DEFAULT_SEQUENCE_CONDITION_MODE}

  • param columnName Column to check for the condition

  • param op Operation (<, >=, !=, etc)

  • param value Value to use in the condition

condition

Condition on arbitrary input

  • param input the input to return the condition for

  • return true if the condition is met false otherwise

hashtag
InvalidValueColumnCondition

A Condition that applies to a single column. Whenever the specified value is invalid according to the schema, the condition applies.

For example, if a Writable contains String values in an Integer column (and these cannot be parsed to an integer), then the condition would return true, as these values are invalid according to the schema.

condition

Condition on arbitrary input

  • param input the input to return the condition for

  • return true if the condition is met false otherwise

hashtag
LongColumnCondition

columnCondition

Constructor for operations such as less than, equal to, greater than, etc. Uses default sequence condition mode, {- link BaseColumnCondition#DEFAULT_SEQUENCE_CONDITION_MODE}

  • param columnName Column to check for the condition

  • param op Operation (<, >=, !=, etc)

  • param value Value to use in the condition

condition

Condition on arbitrary input

  • param input the input to return the condition for

  • return true if the condition is met false otherwise

hashtag
NaNColumnCondition

A column condition that simply checks whether a floating point value is NaN

columnCondition

  • param columnName Name of the column to check the condition for

hashtag
NullWritableColumnCondition

Condition that applies to the values in any column. Specifically, condition is true if the Writable value is a NullWritable, and false for any other value

condition

Condition on arbitrary input

  • param input the input to return the condition for

  • return true if the condition is met false otherwise

hashtag
StringColumnCondition

columnCondition

Constructor for conditions equal or not equal Uses default sequence condition mode, {- link BaseColumnCondition#DEFAULT_SEQUENCE_CONDITION_MODE}

  • param columnName Column to check for the condition

  • param op Operation (== or != only)

  • param value Value to use in the condition

condition

Condition on arbitrary input

  • param input the input to return the condition for

  • return true if the condition is met false otherwise

hashtag
TimeColumnCondition

Condition that applies to the values

columnCondition

Constructor for operations such as less than, equal to, greater than, etc. Uses default sequence condition mode, {- link BaseColumnCondition#DEFAULT_SEQUENCE_CONDITION_MODE}

  • param columnName Column to check for the condition

  • param op Operation (<, >=, !=, etc)

  • param value Time value (in epoch millisecond format) to use in the condition

condition

Condition on arbitrary input

  • param input the input to return the condition for

  • return true if the condition is met false otherwise

hashtag
TrivialColumnCondition

Created by huitseeker on 5/17/17.

hashtag
SequenceLengthCondition

A condition on sequence lengths

hashtag
StringRegexColumnCondition

Condition that applies to the values in a String column, using a provided regex. Condition return true if the String matches the regex, or false otherwise Note: Uses Writable.toString(), hence can potentially be applied to non-String columns

condition

Condition on arbitrary input

  • param input the input to return the condition for

  • return true if the condition is met false otherwise

[source]arrow-up-right
[source]arrow-up-right
[source]arrow-up-right
[source]arrow-up-right
[source]arrow-up-right
[source]arrow-up-right
[source]arrow-up-right
[source]arrow-up-right
[source]arrow-up-right
[source]arrow-up-right
[source]arrow-up-right
[source]arrow-up-right
[source]arrow-up-right
[source]arrow-up-right
[source]arrow-up-right
public String outputColumnName() 
public String columnName() 
public boolean condition(Object input) 
public boolean conditionSequence(Object sequence) 
public Schema transform(Schema inputSchema) 
public static Condition AND(Condition... conditions) 
public static Condition OR(Condition... conditions) 
public static Condition NOT(Condition condition) 
public static Condition XOR(Condition first, Condition second) 
public boolean columnCondition(Writable writable) 
public boolean condition(Object input) 
public boolean columnCondition(Writable writable) 
public boolean condition(Object input) 
public boolean columnCondition(Writable writable) 
public boolean condition(Object input) 
public boolean columnCondition(Writable writable) 
public boolean columnCondition(Writable writable) 
public boolean condition(Object input) 
public boolean condition(Object input) 
public boolean columnCondition(Writable writable) 
public boolean condition(Object input) 
public boolean columnCondition(Writable writable) 
public boolean condition(Object input) 
public boolean columnCondition(Writable writable) 
public boolean condition(Object input) 
public boolean columnCondition(Writable writable) 
public boolean condition(Object input) 
public boolean condition(Object input)