org.apache.hadoop.hive.ql.exec.vector.expressions
Class AbstractFilterStringColLikeStringScalar.EndChecker

java.lang.Object
  extended by org.apache.hadoop.hive.ql.exec.vector.expressions.AbstractFilterStringColLikeStringScalar.EndChecker
All Implemented Interfaces:
AbstractFilterStringColLikeStringScalar.Checker
Enclosing class:
AbstractFilterStringColLikeStringScalar

protected static class AbstractFilterStringColLikeStringScalar.EndChecker
extends Object
implements AbstractFilterStringColLikeStringScalar.Checker

Matches the ending of each string to its pattern.


Method Summary
 boolean check(byte[] byteS, int start, int len)
          Checks whether the given string matches with its pattern.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

check

public boolean check(byte[] byteS,
                     int start,
                     int len)
Description copied from interface: AbstractFilterStringColLikeStringScalar.Checker
Checks whether the given string matches with its pattern.

Specified by:
check in interface AbstractFilterStringColLikeStringScalar.Checker
Parameters:
byteS - The byte array that contains the string
start - The start position of the string
len - The length of the string
Returns:
Whether it matches or not.


Copyright © 2014 The Apache Software Foundation. All rights reserved.