Class PredicateFirehose

  • All Implemented Interfaces:
    Closeable, AutoCloseable, org.apache.druid.data.input.Firehose

    public class PredicateFirehose
    extends Object
    implements org.apache.druid.data.input.Firehose
    Provides a view on a firehose that only returns rows that match a certain predicate. Not thread-safe.
    • Constructor Detail

      • PredicateFirehose

        public PredicateFirehose​(org.apache.druid.data.input.Firehose firehose,
                                 com.google.common.base.Predicate<org.apache.druid.data.input.InputRow> predicate)
    • Method Detail

      • hasMore

        public boolean hasMore()
                        throws IOException
        Specified by:
        hasMore in interface org.apache.druid.data.input.Firehose
        Throws:
        IOException
      • nextRow

        @Nullable
        public org.apache.druid.data.input.InputRow nextRow()
        Specified by:
        nextRow in interface org.apache.druid.data.input.Firehose