public class MapPopulator<K,V> extends Object
| Constructor and Description |
|---|
MapPopulator(com.metamx.common.parsers.Parser<K,V> parser) |
| Modifier and Type | Method and Description |
|---|---|
long |
populate(com.google.common.io.ByteSource source,
Map<K,V> map)
Read through the `source` line by line and populate `map` with the data returned from the `parser`
|
public long populate(com.google.common.io.ByteSource source,
Map<K,V> map)
throws IOException
source - The ByteSource to read lines frommap - The map to populateIOExceptionCopyright © 2011–2016. All rights reserved.