@Override public List<BigInteger> arrayToPartitions(List<?> elementList,String type){
  List<BigInteger> parts=new ArrayList<>();
  int numArrayElementsToReturn=SystemConfiguration.getIntProperty("pir.numReturnArrayElements",1);
  for (int i=0; i < numArrayElementsToReturn; ++i) {
    if (elementList.size() > i) {
      parts.addAll(toPartitions(elementList.get(i),type));
    }
 else {
      parts.addAll(getPaddedPartitions(type));
    }
  }
  return parts;
}

@ Override public List < BigInteger > arrayToPartitions ( List < ? > elementList , String type ) { List < BigInteger > parts = new ArrayList < > ( ) ; int numArrayElementsToReturn = SystemConfiguration . getIntProperty ( "pir.numReturnArrayElements" , 1 ) ; for ( int i = 0 ; i < numArrayElementsToReturn ; ++ i ) { if ( elementList . size ( ) > i ) { parts . addAll ( toPartitions ( elementList . get ( i ) , type ) ) ; } else { parts . addAll ( getPaddedPartitions ( type ) ) ; } } return parts ; }
create partitions for an array of the same type of elements - used when a data value field is an array and we wish to encode these into the return value
