Class BitVectorLabelParser

  • All Implemented Interfaces:
    BundleStreamSource, Parser, StreamingParser

    @Title("Bit Vector Label Parser")
    @Description("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>
    Parser for parsing one BitVector per line, bits separated by whitespace.

    Several labels may be given per BitVector. A label must not be parseable as Bit. Lines starting with "#" will be ignored.

    Since:
    0.1
    Author:
    Arthur Zimek
    • Field Detail

      • LOG

        private static final Logging LOG
        Class logger
      • buf

        it.unimi.dsi.fastutil.longs.LongArrayList buf
        Buffer, will be reused.
    • Constructor Detail

      • BitVectorLabelParser

        public BitVectorLabelParser​(CSVReaderFormat format)
        Constructor.
        Parameters:
        format - Input format