Iterates over the (key, counter) pairs where each key is an IPAddresses and writes the values to the output stream as a SiLK Bag.
Iterates over the (key, counter) pairs where each key is an IPAddresses and writes the values to the output stream as a SiLK Bag.
Expects the IPAddresses in the Iterator to be in sorted order (numerically ascending).
Expects all IPAddresses in the Iterator to be of the same size; that is, either all are IPv4Address or all are IPv6Address.
Writes the file's header if it has not been written yet. The type of the key and counter may no longer be changed once this function is called.
This function may be called successfully multiple times as long as the IPAddresses across the various calls are the same size and are in sorted order.
Calls to this function may not be mixed with calls to appendIntegers().
Iterates over the (key, counter) pairs where each key is an Int and writes the values to the output stream as a SiLK Bag.
Iterates over the (key, counter) pairs where each key is an Int and writes the values to the output stream as a SiLK Bag.
Expects the Ints in the Iterator to be in sorted order (numerically ascending).
Writes the file's header if it has not been written yet. The type of the key and counter may no longer be changed once this function is called.
This function may be called successfully multiple times as long as the keys across the various calls are in sorted order.
Calls to this function may not be mixed with calls to appendIPAddresses().
Closes the output stream.
Closes the output stream.
Writes the SiLK file header to the output stream if it has not been written, writes any buffered records, closes the output stream, and releases resources.
Sets the type of the counter.
Sets the type of the counter. The value is written into the output stream's header.
java.lang.IllegalArgumentException if called after the
file's header has been written.
Sets the type of the key.
Sets the type of the key. The value is written into the output stream's header.
java.lang.IllegalArgumentException if called after the
file's header has been written
Whether the Bag file has been written--that is, whether the
append() method has been called.
Whether the Bag file has been written--that is, whether the
append() method has been called.
true once the append() method has been called
A writer of binary SiLK Bag files.
To include a header in the Bag file that specifies the type of the and counter, run
setKeyType()and/orsetCounterType()prior to writing the Bag.This example reads the contents of "example.bag" and writes it to "copy.bag", where the keys are IP addresses:
the companion object for more details