Class DruidDataSource

    • Method Detail

      • getName

        public String getName()
      • getSegment

        @Nullable
        public org.apache.druid.timeline.DataSegment getSegment​(org.apache.druid.timeline.SegmentId segmentId)
      • getSegments

        public Collection<org.apache.druid.timeline.DataSegment> getSegments()
      • removeSegmentsIf

        public void removeSegmentsIf​(Predicate<org.apache.druid.timeline.DataSegment> filter)
        Removes segments for which the given filter returns true.
      • addSegment

        public DruidDataSource addSegment​(org.apache.druid.timeline.DataSegment dataSegment)
      • addSegmentIfAbsent

        public boolean addSegmentIfAbsent​(org.apache.druid.timeline.DataSegment dataSegment)
        Returns true if the segment was added, false if a segment with the same SegmentId already existed in this DruidDataSource.
      • removeSegment

        @Nullable
        public org.apache.druid.timeline.DataSegment removeSegment​(org.apache.druid.timeline.SegmentId segmentId)
        Returns the removed segment, or null if there was no segment with the given SegmentId in this DruidDataSource.
      • isEmpty

        public boolean isEmpty()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object