Examples of SourceDbusFilter


Examples of com.linkedin.databus2.core.filter.SourceDbusFilter

    HashSet<Integer> sources = new HashSet<Integer>();
    sources.add(23);
    sources.add(45);
    DbusEvent e = RngUtils.randomEvent((short) 23);
    LOG.debug(e);
    SourceDbusFilter sdFilter = new SourceDbusFilter(sources);
    assertTrue(sdFilter.allow(e));
  }
View Full Code Here

Examples of com.linkedin.databus2.core.filter.SourceDbusFilter

      }
      ByteArrayOutputStream jsonOut = new ByteArrayOutputStream();
      WritableByteChannel jsonOutChannel = Channels.newChannel(jsonOut);

      numEventsRead = read.streamEvents(false, batchFetchSize, jsonOutChannel,
                                        Encoding.JSON_PLAIN_VALUE,  new SourceDbusFilter(srcIds)).getNumEventsStreamed();

      totalRead += numEventsRead;
      LOG.info("read for " + inputSrcIds + ": " + numEventsRead + " events");
      byte[] jsonBytes = jsonOut.toByteArray();
      if(jsonBytes.length == 0)
View Full Code Here

Examples of com.linkedin.databus2.core.filter.SourceDbusFilter

      }

      ConjunctionDbusFilter filters = new ConjunctionDbusFilter();

      // Source filter comes first
      if (v2Mode) filters.addFilter(new SourceDbusFilter(sourceIds));
      else if (null != ppartFilters) filters.addFilter(ppartFilters);

      /*
      // Key range filter comes next
      if ((keyMin >0) && (keyMax > 0))
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.