@Title(value="Number Distance Parser") @Description(value="Parser for the following line format:\nid1 id2 distanceValue, where id1 and is2 are integers representing the two ids belonging to the distance value.\nThe ids and the distance value are separated by whitespace. Empty lines and lines beginning with \"#\" will be ignored.") public class AsciiDistanceParser extends AbstractParser implements DistanceParser
id1 id2 distanceValue
, where
id1 and id2 are integers representing the two ids belonging to the distance
value. Lines starting with "#" will be ignored.Modifier and Type | Class and Description |
---|---|
static class |
AsciiDistanceParser.Parameterizer
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
private static Logging |
LOG
The logger for this class.
|
ATTRIBUTE_CONCATENATION, COMMENT_PATTERN, DEFAULT_SEPARATOR, NUMBER_PATTERN, QUOTE_CHARS, tokenizer
Constructor and Description |
---|
AsciiDistanceParser(Pattern colSep,
String quoteChars,
Pattern comment)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected Logging |
getLogger()
Get the logger for this class.
|
void |
parse(InputStream in,
DistanceCacheWriter cache)
Returns a list of the objects parsed from the specified input stream and a
list of the labels associated with the objects.
|
cleanup, isComment, lengthWithoutLinefeed, toString
private static final Logging LOG
public void parse(InputStream in, DistanceCacheWriter cache)
DistanceParser
parse
in interface DistanceParser
in
- the stream to parse objects fromcache
- Cache writerprotected Logging getLogger()
AbstractParser
getLogger
in class AbstractParser
Copyright © 2014 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.