@Title(value="Bit Vector Label Parser") @Description(value="Parses the following format of lines:\nA single line provides a single BitVector. Bits are separated by whitespace. Any substring not containing whitespace is tried to be read as Bit. If this fails, it will be appended to a label. (Thus, any label must not be parseable as Bit.) Empty lines and lines beginning with \"#\" will be ignored.") public class BitVectorLabelParser extends NumberVectorLabelParser<BitVector> implements Parser
Modifier and Type | Class and Description |
---|---|
static class |
BitVectorLabelParser.Parameterizer
Parameterization class.
|
BundleStreamSource.Event
Modifier and Type | Field and Description |
---|---|
(package private) gnu.trove.list.array.TLongArrayList |
buf
Buffer, will be reused.
|
private static Logging |
LOG
Class logger
|
attributes, columnnames, curlbl, curvec, factory, haslabels, labels, maxdim, meta, mindim, nextevent, unique
reader, tokenizer
Constructor and Description |
---|
BitVectorLabelParser(CSVReaderFormat format)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected Logging |
getLogger()
Get the logger for this class.
|
protected boolean |
parseLineInternal()
Internal method for parsing a single line.
|
buildMeta, cleanup, createVector, data, getMeta, getTypeInformation, initStream, isLabelColumn, nextEvent
asMultipleObjectsBundle, assignDBID, hasDBIDs, parse
private static final Logging LOG
gnu.trove.list.array.TLongArrayList buf
public BitVectorLabelParser(CSVReaderFormat format)
format
- Input formatprotected boolean parseLineInternal()
NumberVectorLabelParser
parseLineInternal
in class NumberVectorLabelParser<BitVector>
true
when a valid line was read, false
on a label
row.protected Logging getLogger()
AbstractStreamingParser
getLogger
in class NumberVectorLabelParser<BitVector>
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.