Creates a new InetAddress
instance from a vector-like value.
If you pass a version
, the value will be validated as an IPv4 or IPv6 address; otherwise, it'll be validated as
either, and the version will be inferred from the value.
You can set validate
to false
to bypass any validation if you're confident the value is a valid inet address.
The address to create the InetAddress
from
Optional
version: null | 4 | 6The IP version to validate the address as
Whether to actually validate the address
TypeError If the address is not a valid IPv4 or IPv6 address
Private
Readonly
#rawPrivate
#versionReturns the IP version of the inet address.
The IP version of the inet address
Implementation of $SerializeForTable
for TableCodec
Static
[$Implementation of $DeserializeForTable
for TableCodec
Represents an
inet
column for Data API tables.You may use the inet function as a shorthand for creating a new
InetAddress
.See the official DataStax documentation for more information.