@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
ATTRIBUTE_CONCATENATION, COMMENT_PATTERN, DEFAULT_SEPARATOR, NUMBER_PATTERN, QUOTE_CHARS, tokenizer
Constructor and Description |
---|
BitVectorLabelParser(Pattern colSep,
String quoteChars,
Pattern comment)
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, createDBObject, data, getMeta, getTypeInformation, initStream, isLabelColumn, nextEvent
asMultipleObjectsBundle, assignDBID, getLineNumber, hasDBIDs, nextLineExceptComments, parse
isComment, lengthWithoutLinefeed, toString
private static final Logging LOG
gnu.trove.list.array.TLongArrayList buf
protected boolean parseLineInternal()
NumberVectorLabelParser
parseLineInternal
in class NumberVectorLabelParser<BitVector>
true
when a valid line was read, false
on a label
row.protected Logging getLogger()
AbstractParser
getLogger
in class NumberVectorLabelParser<BitVector>
Copyright © 2014 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.