@Override
  public int findScalarInMap(MapColumnVector mapColumnVector, int mapBatchIndex) {
    final int offset = (int) mapColumnVector.offsets[mapBatchIndex];
    final int count = (int) mapColumnVector.lengths[mapBatchIndex];
    BytesColumnVector keyColVector = (BytesColumnVector) mapColumnVector.keys;
    byte[][] keyVector = keyColVector.vector;
    int[] keyStart = keyColVector.start;
    int[] keyLength = keyColVector.length;
    final boolean isRepeating = keyColVector.isRepeating;
    for (int i = 0; i < count; i++) {
      final int keyOffset = offset + i;
      final int start = isRepeating? keyStart[0]: keyStart[keyOffset];
      final int len = isRepeating? keyLength[0]: keyLength[keyOffset];
      byte[] rowKey = isRepeating? keyVector[0]: keyVector[keyOffset];
      if (StringExpr.equal(key, 0, key.length,
          rowKey, start, len)) {
        return offset + i;
      }
    }
    return -1;
  }
Returns value of Map.
Extends {@link VectorUDFMapIndexBaseScalar}
ql/src/java/org/apache/hadoop/hive/ql/exec/vector/expressions/VectorUDFMapIndexStringScalar.java