Whether the IPSetReader returns an Iterator over IPv6Blocks or IPv4Blocks.
Whether the IPSetReader returns an Iterator over IPv6Blocks or IPv4Blocks.
true if the IPBlock objects are IPv6Block
Tests whether this iterator can provide another IPBlock.
Tests whether this iterator can provide another IPBlock.
true if a subsequent call to next() will yield an
element, false otherwise.
Produces the next IPBlock of this iterator.
Produces the next IPBlock of this iterator.
the next IPBlock of this iterator if hasNext is true
[[java.util.NoSuchElementException]] when the iterator
is depleted
Octet-length of the 256-Bitmap
Octet-length of the 256-Bitmap
Current position (octet offset) in the current buffer.
Current position (octet offset) in the current buffer.
Current buffer of bytes being processed
Current buffer of bytes being processed
Return true if 'avail' octets are available in the buffer, reading more data from the stream if necessary.
Return true if 'avail' octets are available in the buffer, reading more data from the stream if necessary.
For IPset file formats v4 and v5, a special value that indicates that a 256-long bitmap follows the IP address
For IPset file formats v4 and v5, a special value that indicates that a 256-long bitmap follows the IP address
(Changed in version 2.8.0) collect has changed. The previous behavior can be reproduced with toSeq.
Return a List of Pairs of Integers.
Return a List of Pairs of Integers.
In each pair, the first value is a location of a high bit in the bitmap, and the second value is the number of consecutive high bits that is also a power of 2. The range of the first value is 0 to 255; the range of the seocond is 1 to 256.
Takes the number of consecutive high bits returned by handleBitmap256 and returns the CIDR prefix for IPv6 addresses.
Takes the number of consecutive high bits returned by handleBitmap256 and returns the CIDR prefix for IPv6 addresses.
Takes the number of consecutive high bits returned by handleBitmap256 and returns the CIDR prefix for IPv6 addresses.
Takes the number of consecutive high bits returned by handleBitmap256 and returns the CIDR prefix for IPv6 addresses.
Read and throw away 'skipLen' bytes from the stream.
Read and throw away 'skipLen' bytes from the stream. An end-of-file error in this function is not caught.
Whether to byte-swap the bytes as they are read from the buffer
Whether to byte-swap the bytes as they are read from the buffer
A reader of binary SiLK IPset files. This is usable as an Iterator over IPBlock objects.
This example uses the single argument form of the companion object's
ofInputStream()method to read the IPset file "example.set"; the code may be used outside of Hadoop.the companion object for more details