public class DataQuality extends Types
| Modifier and Type | Method and Description |
|---|---|
static int |
columns(Row row)
Given a row, finds the length of the row.
|
static boolean |
hascolumn(Row row,
String column)
Finds if the row has a column.
|
static boolean |
inrange(double value,
double lower,
double upper)
Checks if the value is within the range.
|
static boolean |
isAmex(String cc)
Validates if string
ip is a valid amex credit card number or
not. |
static boolean |
isCountryTld(String domain)
Validates if string
ip is a valid country top-level domain or
not. |
static boolean |
isCreditCard(String cc)
Validates if string
ip is a valid credit card number or
not. |
static boolean |
isDate(String date)
Validate using the default
Locale. |
static boolean |
isDate(String date,
String pattern)
Validate using the specified pattern.
|
static boolean |
isDiner(String cc)
Validates if string
ip is a valid diner credit card number or
not. |
static boolean |
isDiscover(String cc)
Validates if string
ip is a valid discover credit card number or
not. |
static boolean |
isDomainName(String domain)
Validates if string
ip is a valid url domain or
not. |
static boolean |
isDomainTld(String domain)
Validates if string
ip is a valid top-level domain or
not. |
static boolean |
isEmail(String email)
Validates if string
ip is a valid email address or
not. |
static boolean |
isempty(String str)
Checks if the string is empty or not.
|
static boolean |
isGenericTld(String domain)
Validates if string
ip is a valid generic top-level domain or
not. |
static boolean |
isIP(String ip)
Validates if string
ip is a valid IP address or
not. |
static boolean |
isIPv4(String ip)
Validates if string
ip is a valid IPv4 address or
not. |
static boolean |
isIPv6(String ip)
Validates if string
ip is a valid IPv6 address or
not. |
static boolean |
isISBN(String isbn)
Validates if string
ip is a valid ISBN-10 or ISBN-13 or
not. |
static boolean |
isISBN10(String isbn)
Validates if string
ip is a valid ISBN-10 or
not. |
static boolean |
isISBN13(String isbn)
Validates if string
ip is a valid ISBN-13 or
not. |
static boolean |
isMaster(String cc)
Validates if string
ip is a valid master credit card number or
not. |
static boolean |
isnull(Object object)
Checks if the object is null.
|
static boolean |
isUrl(String url)
Validates if string
ip is a valid url address or
not. |
static boolean |
isVisa(String cc)
Validates if string
ip is a valid visa credit card number or
not. |
static boolean |
isVPay(String cc)
Validates if string
ip is a valid VPay credit card number or
not. |
static int |
strlen(String str)
Returns the length of the string.
|
public static int columns(Row row)
row - length needs to be determined.public static boolean hascolumn(Row row, String column)
row - in which a column needs to be checked.column - name of the column to be checked.public static boolean inrange(double value,
double lower,
double upper)
value - to be checked if it's in the range.lower - end of the defined range.upper - end of the defined range inclusive.public static int strlen(String str)
str - for which we need to determine the length.public static boolean isnull(Object object)
object - to be checked for null.public static boolean isempty(String str)
str - to be checked for empty.public static boolean isDate(String date)
Locale.date - The value validation is being performed on.true if the value is valid.public static boolean isDate(String date, String pattern)
date - The value validation is being performed on.pattern - The pattern used to validate the value against.true if the value is valid.public static boolean isIP(String ip)
ip is a valid IP address or
not. Could be IPv4 or IPv6.ip - to be validated.public static boolean isIPv4(String ip)
ip is a valid IPv4 address or
not.ip - to be validated.public static boolean isIPv6(String ip)
ip is a valid IPv6 address or
not.ip - to be validated.public static boolean isEmail(String email)
ip is a valid email address or
not.email - to be validated.public static boolean isUrl(String url)
ip is a valid url address or
not.url - to be validated.public static boolean isDomainName(String domain)
ip is a valid url domain or
not.domain - to be validated.public static boolean isDomainTld(String domain)
ip is a valid top-level domain or
not.domain - to be validated.public static boolean isGenericTld(String domain)
ip is a valid generic top-level domain or
not.domain - to be validated.public static boolean isCountryTld(String domain)
ip is a valid country top-level domain or
not.domain - to be validated.public static boolean isISBN(String isbn)
ip is a valid ISBN-10 or ISBN-13 or
not.isbn - to be validated.public static boolean isISBN10(String isbn)
ip is a valid ISBN-10 or
not.isbn - to be validated.public static boolean isISBN13(String isbn)
ip is a valid ISBN-13 or
not.isbn - to be validated.public static boolean isCreditCard(String cc)
ip is a valid credit card number or
not.cc - to be validated.public static boolean isAmex(String cc)
ip is a valid amex credit card number or
not.cc - to be validated.public static boolean isVisa(String cc)
ip is a valid visa credit card number or
not.cc - to be validated.public static boolean isMaster(String cc)
ip is a valid master credit card number or
not.cc - to be validated.public static boolean isDiner(String cc)
ip is a valid diner credit card number or
not.cc - to be validated.public static boolean isDiscover(String cc)
ip is a valid discover credit card number or
not.cc - to be validated.public static boolean isVPay(String cc)
ip is a valid VPay credit card number or
not.cc - to be validated.Copyright © 2024 CDAP Licensed under the Apache License, Version 2.0.