public int getSize() { return tp.getLimit(); }
public static long query(TrieParserReader reader, TrieParser trie, byte[] source, int sourcePos, long sourceLength, int sourceMask, final long unfoundResult) { return (TrieParser.getLimit(trie)>0) ? query2(reader, trie, source, sourcePos, sourceLength, sourceMask, unfoundResult, unfoundResult): unfoundResult; }
public static long query(TrieParserReader reader, TrieParser trie, byte[] source, int sourcePos, long sourceLength, int sourceMask, final long unfoundResult, final long noMatchResult) { return (TrieParser.getLimit(trie)>0) ? query2(reader, trie, source, sourcePos, sourceLength, sourceMask, unfoundResult, noMatchResult): unfoundResult; }
public static long query(TrieParserReader reader, TrieParser trie, byte[] source, int sourcePos, long sourceLength, int sourceMask, final long unfoundResult, final long noMatchResult) { return (TrieParser.getLimit(trie)>0) ? query2(reader, trie, source, sourcePos, sourceLength, sourceMask, unfoundResult, noMatchResult): unfoundResult; }
public static long query(TrieParserReader reader, TrieParser trie, byte[] source, int sourcePos, long sourceLength, int sourceMask, final long unfoundResult) { return (TrieParser.getLimit(trie)>0) ? query2(reader, trie, source, sourcePos, sourceLength, sourceMask, unfoundResult, unfoundResult): unfoundResult; }
private static void visitor_initForQuery(TrieParserReader reader, TrieParser trie, byte[] source, int sourcePos, long unfoundResult) { reader.capturedPos = 0; reader.capturedBlobArray = source; //working vars reader.pos = 0; reader.runLength = 0; reader.localSourcePos = sourcePos; reader.result = unfoundResult; reader.normalExit = true; reader.altStackPos = 0; if (null==reader.capturedValues || (reader.capturedValues.length>>2)<trie.maxExtractedFields()) { reader.capturedValues = new int[4*(1+trie.maxExtractedFields())*4]; } assert(trie.getLimit()>0) : "SequentialTrieParser must be setup up with data before use."; reader.type = trie.data[reader.pos++]; }
private static void initForQuery(TrieParserReader reader, TrieParser trie, byte[] source, int sourcePos, int sourceMask, long unfoundResult) { reader.capturedPos = 0; reader.capturedBlobArray = source; //working vars reader.pos = 0; reader.runLength = 0; reader.localSourcePos = sourcePos; reader.result = unfoundResult; reader.normalExit = true; reader.altStackPos = 0; if (null==reader.capturedValues || (reader.capturedValues.length>>2)<trie.maxExtractedFields()) { reader.capturedValues = new int[4*(1+trie.maxExtractedFields())*4]; } reader.sourceBacking = source; //if we have a data specific mask use it, if nothing was set take full pipe size. if (0==reader.sourceMask) { reader.sourceMask = sourceMask; } assert(trie.getLimit()>0) : "SequentialTrieParser must be setup up with data before use."; reader.type = trie.data[reader.pos++]; }
public static long query(TrieParserReader reader, TrieParser trie, byte[] source, int sourcePos, long sourceLength, int sourceMask, final long unfoundResult) { if (trie.getLimit()>0) { } else { return unfoundResult; } initForQuery(reader, trie, source, sourcePos & Pipe.BYTES_WRAP_MASK, sourceMask, unfoundResult); processEachType(reader, trie, source, sourceLength, sourceMask, unfoundResult, false, 0); if (reader.normalExit) { return exitUponParse(reader, trie); } else { return reader.result; } }
private static void visitorInitForQuery(TrieParserReader reader, TrieParser trie, byte[] source, int sourcePos, long unfoundResult, long noMatchResult) { reader.capturedPos = 0; reader.capturedBlobArray = source; //working vars reader.pos = 0; reader.runLength = 0; reader.localSourcePos = sourcePos; reader.result = unfoundResult; reader.unfoundConstant = unfoundResult; reader.noMatchConstant = noMatchResult; reader.normalExit = true; reader.altStackPos = 0; if (trie.maxExtractedFields()>0) { if (null==reader.capturedValues || (reader.capturedValues.length>>2)<trie.maxExtractedFields()) { reader.capturedValues = new int[4*(1+trie.maxExtractedFields())*4]; } } assert(trie.getLimit()>0) : "SequentialTrieParser must be setup up with data before use."; reader.type = trie.data[reader.pos++]; }
private static void visitorInitForQuery(TrieParserReader reader, TrieParser trie, byte[] source, int sourcePos, long unfoundResult, long noMatchResult) { reader.capturedPos = 0; reader.capturedBlobArray = source; //working vars reader.pos = 0; reader.runLength = 0; reader.localSourcePos = sourcePos; reader.result = unfoundResult; reader.unfoundConstant = unfoundResult; reader.noMatchConstant = noMatchResult; reader.normalExit = true; reader.altStackPos = 0; if (trie.maxExtractedFields()>0) { if (null==reader.capturedValues || (reader.capturedValues.length>>2)<trie.maxExtractedFields()) { reader.capturedValues = new int[4*(1+trie.maxExtractedFields())*4]; } } assert(trie.getLimit()>0) : "SequentialTrieParser must be setup up with data before use."; reader.type = trie.data[reader.pos++]; }
assert(trie.getLimit()>0) : "SequentialTrieParser must be setup up with data before use.";
assert(trie.getLimit()>0) : "SequentialTrieParser must be setup up with data before use.";
private void visit(TrieParser that, final int i, ByteSquenceVisitor visitor, byte[] source, int localSourcePos, int sourceLength, int sourceMask, final long unfoundResult) { if (that.getLimit()==0) { return;//nothing to do, we have no patterns
private void visit(TrieParser that, final int i, ByteSquenceVisitor visitor, byte[] source, int localSourcePos, int sourceLength, int sourceMask, final long unfoundResult, final long noMatchResult) { if (that.getLimit()==0) { return;//nothing to do, we have no patterns
private void visit(TrieParser that, final int i, ByteSquenceVisitor visitor, byte[] source, int localSourcePos, int sourceLength, int sourceMask, final long unfoundResult, final long noMatchResult) { if (that.getLimit()==0) { return;//nothing to do, we have no patterns