All ingestion methods create segments grouped into time intervals called "segment granularity". There are a few ways to ingest data. For batch
index_parallel or
SQL based ingestion (REPLACE/INSERT), for streaming
index_kafka or
index_kinesis. All forms of ingestion produce segment files, all segment files belong to a particular time interval. For native batch and streaming jobs the time intervals are defined with
segmentGranularity, for SQL based ingestion it is through the
PARTITIONED BY clause.