@Test public void testRecordHasColumn() throws Exception { Row row = new Row("a", 1); Assert.assertEquals(true, DataQuality.hascolumn(row, "a")); Assert.assertEquals(false, DataQuality.hascolumn(row, "b")); row = new Row(); Assert.assertEquals(false, DataQuality.hascolumn(row, "a")); }
public static boolean hascolumn(Row row, String column) { if (column == null) { return false; } return row.find(column) != -1 ? true : false; }
DataQuality extends Types { public static boolean hascolumn(Row row, String column) { if (column == null) { return false; } return row.find(column) != -1 ? true : false; } }
DataQuality extends Types { public static boolean hascolumn(Row row, String column) { if (column == null) { return false; } return row.find(column) != -1 ? true : false; }  }
DataQuality extends Types { public static boolean hascolumn(Row row, String column) { if (column == null) { return false; } return row.find(column) != -1 ? true : false; }  static int columns(Row row); static boolean hascolumn(Row row, String column); static boolean inrange(double value, double lower, double upper); static int strlen(String str); static boolean isnull(Object object); static boolean isempty(String str); static boolean isDate(String date); static boolean isDate(String date, String pattern); static boolean isIP(String ip); static boolean isIPv4(String ip); static boolean isIPv6(String ip); static boolean isEmail(String email); static boolean isUrl(String url); static boolean isDomainName(String domain); static boolean isDomainTld(String domain); static boolean isGenericTld(String domain); static boolean isCountryTld(String domain); static boolean isISBN(String isbn); static boolean isISBN10(String isbn); static boolean isISBN13(String isbn); static boolean isCreditCard(String cc); static boolean isAmex(String cc); static boolean isVisa(String cc); static boolean isMaster(String cc); static boolean isDiner(String cc); static boolean isDiscover(String cc); static boolean isVPay(String cc); }
DataQuality extends Types { public static boolean hascolumn(Row row, String column) { if (column == null) { return false; } return row.find(column) != -1 ? true : false; }  static int columns(Row row); static boolean hascolumn(Row row, String column); static boolean inrange(double value, double lower, double upper); static int strlen(String str); static boolean isnull(Object object); static boolean isempty(String str); static boolean isDate(String date); static boolean isDate(String date, String pattern); static boolean isIP(String ip); static boolean isIPv4(String ip); static boolean isIPv6(String ip); static boolean isEmail(String email); static boolean isUrl(String url); static boolean isDomainName(String domain); static boolean isDomainTld(String domain); static boolean isGenericTld(String domain); static boolean isCountryTld(String domain); static boolean isISBN(String isbn); static boolean isISBN10(String isbn); static boolean isISBN13(String isbn); static boolean isCreditCard(String cc); static boolean isAmex(String cc); static boolean isVisa(String cc); static boolean isMaster(String cc); static boolean isDiner(String cc); static boolean isDiscover(String cc); static boolean isVPay(String cc);  }