@Test public void testRecordLength() throws Exception { Row row = new Row("a", 1).add("b", 2).add("c", 3); Assert.assertEquals(3, DataQuality.columns(row)); row = new Row("a", 1); Assert.assertEquals(1, DataQuality.columns(row)); row = new Row(); Assert.assertEquals(0, DataQuality.columns(row)); }
public static int columns(Row row) { return row.width(); }
DataQuality extends Types { public static int columns(Row row) { return row.width(); } }
DataQuality extends Types { public static int columns(Row row) { return row.width(); }  }
DataQuality extends Types { public static int columns(Row row) { return row.width(); }  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 int columns(Row row) { return row.width(); }  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);  }