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 boolean
condition(Object input)
Condition on arbitrary inputboolean
condition(List<Writable> list)
Is the condition satisfied for the current input/example?
Returns true if condition is satisfied, or false otherwise.boolean
conditionSequence(Object sequence)
Condition on arbitrary inputboolean
conditionSequence(List<List<Writable>> sequence)
Is the condition satisfied for the current input/sequence?
Returns true if condition is satisfied, or false otherwise.Schema
getInputSchema()
Getter for the input schemavoid
setInputSchema(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:
setInputSchema
in interfaceColumnOp
- Parameters:
schema
-
-
getInputSchema
Schema getInputSchema()
Getter for the input schema- Specified by:
getInputSchema
in interfaceColumnOp
- Returns:
-
-