private int[] findIndexes(byte[] array, byte[] target) {
    if (fields.length < 1) {
      return new int[0];
    }
    int[] indexes = new int[fields.length];
    Arrays.fill(indexes, -1);
    indexes[0] = Bytes.indexOf(array, target);
    if (indexes[0] == -1) {
      return indexes;
    }
    int indexInNewArray = indexes[0];
    for (int i = 1; i < indexes.length; i++) {
      array = Arrays.copyOfRange(array, indexInNewArray + target.length, array.length);
      indexInNewArray = Bytes.indexOf(array, target);
      if (indexInNewArray == -1) {
        break;
      }
      indexes[i] = indexInNewArray + indexes[i - 1] + target.length;
    }
    return indexes;
  }
Get the values of the fields as an ArrayList.

@return The values of the fields as an ArrayList.
serde/src/java/org/apache/hadoop/hive/serde2/lazy/LazyStruct.java