class StringTimeSeries extends AbstractTimeSeries<StringPoint, StringDataChunk, StringTimeSeries> implements TimeSeries<StringPoint, StringTimeSeries> {

    public String[] toArray() {
        CompactStringBuffer buffer = new CompactStringBuffer(ByteBuffer::allocate, metadata.getIndex().getPointCount());
        chunks.forEach(chunk -> chunk.fillBuffer(buffer, 0));
        return buffer.toArray();
    }

    public  StringTimeSeries(TimeSeriesMetadata metadata, StringDataChunk... chunks);
    public  StringTimeSeries(TimeSeriesMetadata metadata, List<StringDataChunk> chunks);

}