core/src/main/java/com/twitter/elephantbird/util/StreamSearcher.java
public void setPattern(byte[] pattern) {
    pattern_ = Arrays.copyOf(pattern, pattern.length);
    borders_ = new int[pattern_.length + 1];
    preProcess();
  }
public void setPattern(byte[] pattern) {
    pattern_ = Arrays.copyOf(pattern, pattern.length);
    borders_ = new int[pattern_.length + 1];
    preProcess();
  }
public void setPattern ( byte [ ] pattern ) { pattern_ = Arrays . copyOf ( pattern , pattern . length ) ; borders_ = new int [ pattern_ . length + 1 ] ; preProcess ( ) ; }
Sets a new pattern for this StreamSearcher to use.
@param pattern
the pattern the StreamSearcher will look for in future calls to search(...)
Sets a new pattern for this StreamSearcher to use .