Class Encoder

    • Constructor Detail

    • Method Detail

      • setType

        public void setType​(TSEncoding type)
      • flush

        public abstract void flush​(ByteArrayOutputStream out)
                            throws IOException
        Write all values buffered in memory cache to OutputStream.
        Parameters:
        out - - ByteArrayOutputStream
        Throws:
        IOException - cannot flush to OutputStream
      • getOneItemMaxSize

        public int getOneItemMaxSize()
        When encoder accepts a new incoming data point, the maximal possible size in byte it takes to store in memory.
        Returns:
        the maximal possible size of one data item encoded by this encoder
      • getMaxByteSize

        public long getMaxByteSize()
        The maximal possible memory size occupied by current Encoder. This statistic value doesn't involve OutputStream.
        Returns:
        the maximal size of possible memory occupied by current encoder