code: private List<BitcoinTransactionOutput> readListOfOutputsFromTable(ListObjectInspector loi, Object listOfOutputsObject) {
  int listLength=loi.getListLength(listOfOutputsObject);
  List<BitcoinTransactionOutput> result=new ArrayList<>(listLength);
  StructObjectInspector listOfOutputsElementObjectInspector = (StructObjectInspector)loi.getListElementObjectInspector();
  	for (int i=0;i<listLength;i++) {
  		Object currentListOfOutputsObject = loi.getListElement(listOfOutputsObject,i);
  		StructField valueSF = listOfOutputsElementObjectInspector.getStructFieldRef("value");
  		StructField txoutscriptlengthSF = listOfOutputsElementObjectInspector.getStructFieldRef("txoutscriptlength");
  		StructField txoutscriptSF = listOfOutputsElementObjectInspector.getStructFieldRef("txoutscript");
  		if ((valueSF==null) || (txoutscriptlengthSF==null) || (txoutscriptSF==null)) {
  			LOG.warn("Invalid BitcoinTransactionOutput detected at position "+i);
  			return new ArrayList<>();
  		}
  		HiveDecimal currentValue=hdoi.getPrimitiveJavaObject(listOfOutputsElementObjectInspector.getStructFieldData(currentListOfOutputsObject,valueSF));	
  		byte[] currentTxOutScriptLength=wboi.getPrimitiveJavaObject(listOfOutputsElementObjectInspector.getStructFieldData(currentListOfOutputsObject,txoutscriptlengthSF));
  		byte[] currentTxOutScript=wboi.getPrimitiveJavaObject(listOfOutputsElementObjectInspector.getStructFieldData(currentListOfOutputsObject,txoutscriptSF));
  		BitcoinTransactionOutput currentBitcoinTransactionOutput = new BitcoinTransactionOutput(currentValue.bigDecimalValue().toBigIntegerExact(),currentTxOutScriptLength,currentTxOutScript);
  		result.add(currentBitcoinTransactionOutput);
  	}
  return result;
  }
docs: Read list of Bitcoin transaction outputs from a table in Hive in any format (e.g. ORC, Parquet)
  
  @param loi ObjectInspector for processing the Object containing a list
  @param listOfOutputsObject object containing the list of outputs to a Bitcoin Transaction
  
  @return a list of BitcoinTransactionOutputs