Search in sources :

Example 46 with MutableInt

use of org.apache.commons.lang3.mutable.MutableInt in project apex-malhar by apache.

the class AbstractStreamPatternMatcher method setPattern.

/**
 * Set the pattern that needs to be searched in the input stream of events
 *
 * @param pattern The pattern to be searched
 */
public void setPattern(Pattern<T> pattern) {
    this.pattern = pattern;
    partialMatches.clear();
    patternLength = new MutableInt(pattern.getStates().length - 1);
}
Also used : MutableInt(org.apache.commons.lang3.mutable.MutableInt)

Aggregations

MutableInt (org.apache.commons.lang3.mutable.MutableInt)46 Test (org.junit.Test)16 Type (org.apache.apex.malhar.lib.appdata.schemas.Type)6 HashMap (java.util.HashMap)5 MutableBoolean (org.apache.commons.lang3.mutable.MutableBoolean)5 List (java.util.List)4 Map (java.util.Map)4 TimeoutException (java.util.concurrent.TimeoutException)4 FieldsDescriptor (org.apache.apex.malhar.lib.appdata.schemas.FieldsDescriptor)4 File (java.io.File)3 ArrayList (java.util.ArrayList)3 ILogicalOperator (org.apache.hyracks.algebricks.core.algebra.base.ILogicalOperator)2 LogManager (org.apache.logging.log4j.LogManager)2 Logger (org.apache.logging.log4j.Logger)2 AllelicCount (org.broadinstitute.hellbender.tools.exome.alleliccount.AllelicCount)2 AllelicCountCollection (org.broadinstitute.hellbender.tools.exome.alleliccount.AllelicCountCollection)2 SimpleInterval (org.broadinstitute.hellbender.utils.SimpleInterval)2 GraphStoreFixture (org.neo4j.consistency.checking.GraphStoreFixture)2 IdGenerator (org.neo4j.consistency.checking.GraphStoreFixture.IdGenerator)2 TransactionDataBuilder (org.neo4j.consistency.checking.GraphStoreFixture.TransactionDataBuilder)2