Tests whether this iterator can provide another (key, value) pair.
Tests whether this iterator can provide another (key, value) pair.
true if a subsequent call to next() will yield an
element, false otherwise.
Produces the next (key, counter) pair of this iterator.
Produces the next (key, counter) pair of this iterator.
the next pair of this iterator if hasNext is true
[[java.util.NoSuchElementException]] when the iterator
is depleted
(Changed in version 2.8.0) collect has changed. The previous behavior can be reproduced with toSeq.
Whether this prefix map uses a dictionary.
Whether this prefix map uses a dictionary.
A reader of binary SiLK PrefixMap files. This is usable as an Iterator over a pair representing a key and value. Depending on the contents of the PrefixMap file, the key is either an IPBlock or a PrefixMapProtocolPortPair. The value is always a String.
Because the PrefixMap may contain different key types, the PrefixMapReader factory methods return a PrefixMapResult wrapper over PrefixMapReader.
The mapName method returns the map name that was specified in the PrefixMap file's header, if any.
This example uses the single argument form of the companion object's
ofInputStream()method to read the PrefixMap file "example.pmap". The code may be used outside of Hadoop when it is known that the key is an IPBlock.the companion object for more details