Interface Condition
-
- All Superinterfaces:
ColumnOp,Operation<Schema,Schema>,Serializable
- All Known Subinterfaces:
ColumnCondition
- All Known Implementing Classes:
BaseColumnCondition,BooleanColumnCondition,BooleanCondition,CategoricalColumnCondition,DoubleColumnCondition,FloatColumnCondition,InfiniteColumnCondition,IntegerColumnCondition,InvalidValueColumnCondition,LongColumnCondition,NaNColumnCondition,NullWritableColumnCondition,SequenceLengthCondition,StringColumnCondition,StringRegexColumnCondition,TimeColumnCondition,TrivialColumnCondition
public interface Condition extends Serializable, ColumnOp
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancondition(Object input)Condition on arbitrary inputbooleancondition(List<Writable> list)Is the condition satisfied for the current input/example?
Returns true if condition is satisfied, or false otherwise.booleanconditionSequence(Object sequence)Condition on arbitrary inputbooleanconditionSequence(List<List<Writable>> sequence)Is the condition satisfied for the current input/sequence?
Returns true if condition is satisfied, or false otherwise.SchemagetInputSchema()Getter for the input schemavoidsetInputSchema(Schema schema)Setter for the input schema-
Methods inherited from interface org.datavec.api.transform.ColumnOp
columnName, columnNames, outputColumnName, outputColumnNames
-
-
-
-
Method Detail
-
condition
boolean condition(List<Writable> list)
Is the condition satisfied for the current input/example?
Returns true if condition is satisfied, or false otherwise.- Parameters:
list- Current example- Returns:
- true if condition satisfied, false otherwise
-
condition
boolean condition(Object input)
Condition on arbitrary input- Parameters:
input- the input to return the condition for- Returns:
- true if the condition is met false otherwise
-
conditionSequence
boolean conditionSequence(List<List<Writable>> sequence)
Is the condition satisfied for the current input/sequence?
Returns true if condition is satisfied, or false otherwise.- Parameters:
sequence- Current sequence- Returns:
- true if condition satisfied, false otherwise
-
conditionSequence
boolean conditionSequence(Object sequence)
Condition on arbitrary input- Parameters:
sequence- the sequence to do a condition on- Returns:
- true if the condition for the sequence is met false otherwise
-
setInputSchema
void setInputSchema(Schema schema)
Setter for the input schema- Specified by:
setInputSchemain interfaceColumnOp- Parameters:
schema-
-
getInputSchema
Schema getInputSchema()
Getter for the input schema- Specified by:
getInputSchemain interfaceColumnOp- Returns:
-
-