Schema inputDataSchema =new Schema.Builder().addColumnsString("DateTimeString","CustomerID","MerchantID").addColumnInteger("NumItemsInTransaction").addColumnCategorical("MerchantCountryCode",Arrays.asList("USA","CAN","FR","MX")).addColumnDouble("TransactionAmountUSD",0.0,null,false,false) //$0.0 or more, no maximum limit, no NaN and no Infinite values.addColumnCategorical("FraudLabel",Arrays.asList("Fraud","Legit")).build();