@Override
  public int findInMap(ColumnVector indexColumnVector, int indexBatchIndex,
      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;
    BytesColumnVector indexColVector = (BytesColumnVector) indexColumnVector;
    byte[] indexBytes = indexColVector.vector[indexBatchIndex];
    int indexStart = indexColVector.start[indexBatchIndex];
    int indexLength = indexColVector.length[indexBatchIndex];
    for (int i = 0; i < count; i++) {
      final int keyOffset = offset + i;
      if (StringExpr.equal(indexBytes, indexStart, indexLength,
          keyVector[keyOffset], keyStart[keyOffset], keyLength[keyOffset])) {
        return offset + i;
      }
    }
    return -1;
  }
Returns value of Map.
Extends {@link VectorUDFMapIndexBaseCol}
ql/src/java/org/apache/hadoop/hive/ql/exec/vector/expressions/VectorUDFMapIndexStringCol.java