Available conditions


BooleanCondition

[source]

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(…)))

outputColumnName
  1. public String outputColumnName()

The output column nameafter the operation has been applied

  • return the output column name
columnName
  1. public String columnName()

The output column namesThis will often be the same as the input

  • return the output column names
condition
  1. public boolean condition(Object input)

Condition on arbitrary input

  • param input the input to returnthe condition for
  • return true if the condition is metfalse otherwise
conditionSequence
  1. public boolean conditionSequence(Object sequence)

Condition on arbitrary input

  • param sequence the sequence todo a condition on
  • return true if the condition for the sequence is met false otherwise
transform
  1. public Schema transform(Schema inputSchema)

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

  • param inputSchema
AND
  1. public static Condition AND(Condition... conditions)

And of all the given conditions

  • param conditions the conditions to and
  • return a joint and of all these conditions
OR
  1. public static Condition OR(Condition... conditions)

Or of all the given conditions

  • param conditions the conditions to or
  • return a joint and of all these conditions
NOT
  1. public static Condition NOT(Condition condition)

Not of the given condition

  • param condition the conditions to and
  • return a joint and of all these condition
XOR
  1. public static Condition XOR(Condition first, Condition second)

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

SequenceConditionMode

[source]

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


BooleanColumnCondition

[source]

Created by agibsonccc on 11/26/16.

columnCondition
  1. public boolean columnCondition(Writable writable)

Returns whether the given elementmeets the condition set by this operation

  • param writable the element to test
  • return true if the condition is metfalse otherwise
condition
  1. public boolean condition(Object input)

Condition on arbitrary input

  • param input the input to returnthe condition for
  • return true if the condition is metfalse otherwise

CategoricalColumnCondition

[source]

columnCondition
  1. public boolean columnCondition(Writable writable)

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
  1. public boolean condition(Object input)

Condition on arbitrary input

  • param input the input to returnthe condition for
  • return true if the condition is metfalse otherwise

DoubleColumnCondition

[source]

columnCondition
  1. public boolean columnCondition(Writable writable)

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
  1. public boolean condition(Object input)

Condition on arbitrary input

  • param input the input to returnthe condition for
  • return true if the condition is metfalse otherwise

InfiniteColumnCondition

[source]

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

columnCondition
  1. public boolean columnCondition(Writable writable)
  • param columnName Column check for the condition

IntegerColumnCondition

[source]

columnCondition
  1. public boolean columnCondition(Writable writable)

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
  1. public boolean condition(Object input)

Condition on arbitrary input

  • param input the input to returnthe condition for
  • return true if the condition is metfalse otherwise

InvalidValueColumnCondition

[source]

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), thenthe condition would return true, as these values are invalid according to the schema.

condition
  1. public boolean condition(Object input)

Condition on arbitrary input

  • param input the input to returnthe condition for
  • return true if the condition is metfalse otherwise

LongColumnCondition

[source]

columnCondition
  1. public boolean columnCondition(Writable writable)

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
  1. public boolean condition(Object input)

Condition on arbitrary input

  • param input the input to returnthe condition for
  • return true if the condition is metfalse otherwise

NaNColumnCondition

[source]

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

columnCondition
  1. public boolean columnCondition(Writable writable)
  • param columnName Name of the column to check the condition for

NullWritableColumnCondition

[source]

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

condition
  1. public boolean condition(Object input)

Condition on arbitrary input

  • param input the input to returnthe condition for
  • return true if the condition is metfalse otherwise

StringColumnCondition

[source]

columnCondition
  1. public boolean columnCondition(Writable writable)

Constructor for conditions equal or not equalUses 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
  1. public boolean condition(Object input)

Condition on arbitrary input

  • param input the input to returnthe condition for
  • return true if the condition is metfalse otherwise

TimeColumnCondition

[source]

Condition that applies to the values

columnCondition
  1. public boolean columnCondition(Writable writable)

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
  1. public boolean condition(Object input)

Condition on arbitrary input

  • param input the input to returnthe condition for
  • return true if the condition is metfalse otherwise

TrivialColumnCondition

[source]

Created by huitseeker on 5/17/17.


SequenceLengthCondition

[source]

A condition on sequence lengths


StringRegexColumnCondition

[source]

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
  1. public boolean condition(Object input)

Condition on arbitrary input

  • param input the input to returnthe condition for
  • return true if the condition is metfalse otherwise