When Lucene writes data it first writes to an in-memory buffer (Not readable).

When the data in the Buffer reaches a certain amount, it will be flushed to become a segment.