Class LeafDataSource

java.lang.Object
org.apache.druid.query.LeafDataSource
All Implemented Interfaces:
Cacheable, DataSource
Direct Known Subclasses:
FrameBasedInlineDataSource, InlineDataSource, LookupDataSource, TableDataSource

public abstract class LeafDataSource extends Object implements DataSource
Leaf DataSource-s have no inputs.
  • Constructor Details

    • LeafDataSource

      public LeafDataSource()
  • Method Details

    • getChildren

      public final List<DataSource> getChildren()
      Description copied from interface: DataSource
      Returns datasources that this datasource depends on. Will be empty for leaf datasources like 'table'.
      Specified by:
      getChildren in interface DataSource
    • withChildren

      public final DataSource withChildren(List<DataSource> children)
      Description copied from interface: DataSource
      Return a new DataSource, identical to this one, with different children. The number of children must be equal to the number of children that this datasource already has.
      Specified by:
      withChildren in interface DataSource
    • createSegmentMapFunction

      public SegmentMapFunction createSegmentMapFunction(Query query)
      Description copied from interface: DataSource
      Returns a segment function on to how to segment should be modified.
      Specified by:
      createSegmentMapFunction in interface DataSource