Class IncrementalIndex

java.lang.Object
org.apache.druid.segment.incremental.IncrementalIndex
All Implemented Interfaces:
Closeable, AutoCloseable, Iterable<Row>, Expr.InputBindingInspector, ColumnInspector, IncrementalIndexRowSelector
Direct Known Subclasses:
OnheapIncrementalIndex

public abstract class IncrementalIndex extends Object implements IncrementalIndexRowSelector, ColumnInspector, Iterable<Row>, Closeable
In-memory, row-based data structure used to hold data during ingestion. Realtime tasks query this index using IncrementalIndexCursorFactory. Concurrency model: add(InputRow) is not thread-safe, and must be called from a single thread or externally synchronized. However, the methods that support IncrementalIndexCursorFactory are thread-safe, and may be called concurrently with each other, and with the "add" methods. This concurrency model supports real-time queries of the data in the index.