com.espertech.esper.rowregex
Class RegexPartitionStateRandomAccessGetter

java.lang.Object
  extended by com.espertech.esper.rowregex.RegexPartitionStateRandomAccessGetter
All Implemented Interfaces:
RegexExprPreviousEvalStrategy

public class RegexPartitionStateRandomAccessGetter
extends java.lang.Object
implements RegexExprPreviousEvalStrategy

Getter that provides an index at runtime.


Constructor Summary
RegexPartitionStateRandomAccessGetter(int[] randomAccessIndexesRequested, boolean isUnbound)
          Ctor.
 
Method Summary
 RegexPartitionStateRandomAccess getAccess(ExprEvaluatorContext exprEvaluatorContext)
           
 RegexPartitionStateRandomAccess getAccessor()
          Returns the index for access.
 int[] getIndexesRequested()
          Returns indexs.
 int getIndexesRequestedLen()
          Returns length of indexes.
 int getMaxPriorIndex()
          Returns max index.
 boolean isUnbound()
          Returns true for unbound.
 void setRandomAccess(RegexPartitionStateRandomAccess randomAccess)
          Sets the random access.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegexPartitionStateRandomAccessGetter

public RegexPartitionStateRandomAccessGetter(int[] randomAccessIndexesRequested,
                                             boolean isUnbound)
Ctor.

Parameters:
randomAccessIndexesRequested - requested indexes
isUnbound - true if unbound
Method Detail

getAccess

public RegexPartitionStateRandomAccess getAccess(ExprEvaluatorContext exprEvaluatorContext)
Specified by:
getAccess in interface RegexExprPreviousEvalStrategy

getMaxPriorIndex

public int getMaxPriorIndex()
Returns max index.

Returns:
index

getIndexesRequested

public int[] getIndexesRequested()
Returns indexs.

Returns:
indexes.

getIndexesRequestedLen

public int getIndexesRequestedLen()
Returns length of indexes.

Returns:
index len

isUnbound

public boolean isUnbound()
Returns true for unbound.

Returns:
unbound indicator

getAccessor

public RegexPartitionStateRandomAccess getAccessor()
Returns the index for access.

Returns:
index

setRandomAccess

public void setRandomAccess(RegexPartitionStateRandomAccess randomAccess)
Sets the random access.

Parameters:
randomAccess - to use

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com