Class IPv4AddressExprUtils
java.lang.Object
org.apache.druid.query.expression.IPv4AddressExprUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanoverflowsUnsignedInt(long value) static inet.ipaddr.ipv4.IPv4Addressparse(long value) static inet.ipaddr.ipv4.IPv4Addressstatic inet.ipaddr.IPAddressStringparseString(String string) static longtoLong(inet.ipaddr.ipv4.IPv4Address address) static StringtoString(inet.ipaddr.ipv4.IPv4Address address)
-
Constructor Details
-
IPv4AddressExprUtils
public IPv4AddressExprUtils()
-
-
Method Details
-
overflowsUnsignedInt
public static boolean overflowsUnsignedInt(long value) - Returns:
- True if argument cannot be represented by an unsigned integer (4 bytes), else false
-
parse
- Returns:
- IPv4 address if the supplied string is a valid dotted-decimal IPv4 Address string.
-
parseString
-
parse
@Nullable public static inet.ipaddr.ipv4.IPv4Address parse(long value) - Returns:
- IPv4 address if the supplied integer is a valid IPv4 integer number.
-
toString
- Returns:
- IPv4 address dotted-decimal canonical string.
-
toLong
public static long toLong(inet.ipaddr.ipv4.IPv4Address address) - Returns:
- IPv4 address as an integer.
-