Search in sources :

Example 16 with TrieParser

use of com.ociweb.pronghorn.util.TrieParser in project PronghornPipes by oci-pronghorn.

the class JSONParser method structureObjectEndParser.

private static TrieParser structureObjectEndParser() {
    TrieParser trie = new TrieParser(128, 1, true, false);
    trie.setValue(JSONConstants.endObject, END_OBJECT);
    trie.setValue(JSONConstants.valueSeparator, VALUE_SEPARATOR);
    return trie;
}
Also used : TrieParser(com.ociweb.pronghorn.util.TrieParser)

Example 17 with TrieParser

use of com.ociweb.pronghorn.util.TrieParser in project PronghornPipes by oci-pronghorn.

the class JSONStreamParser method stringEndParser.

private static TrieParser stringEndParser() {
    TrieParser trie = new TrieParser(256, 1, false, true);
    trie.setValue(JSONConstants.string5C1, STRING_PART_5C);
    trie.setValue(JSONConstants.string5C2, STRING_END_5C);
    trie.setValue(JSONConstants.string2F1, STRING_PART_2F);
    trie.setValue(JSONConstants.string2F2, STRING_END_2F);
    trie.setValue(JSONConstants.string621, STRING_PART_62);
    trie.setValue(JSONConstants.string622, STRING_END_62);
    trie.setValue(JSONConstants.string661, STRING_PART_66);
    trie.setValue(JSONConstants.string662, STRING_END_66);
    trie.setValue(JSONConstants.string6E1, STRING_PART_6E);
    trie.setValue(JSONConstants.string6E2, STRING_END_6E);
    trie.setValue(JSONConstants.string721, STRING_PART_72);
    trie.setValue(JSONConstants.string722, STRING_END_72);
    trie.setValue(JSONConstants.string741, STRING_PART_74);
    trie.setValue(JSONConstants.string742, STRING_END_74);
    trie.setValue(JSONConstants.string751, STRING_PART_75);
    trie.setValue(JSONConstants.string752, STRING_END_75);
    trie.setValue(JSONConstants.string221, STRING_PART_22);
    trie.setValue(JSONConstants.string222, STRING_END_22);
    return trie;
}
Also used : TrieParser(com.ociweb.pronghorn.util.TrieParser)

Aggregations

TrieParser (com.ociweb.pronghorn.util.TrieParser)17 TrieParserReader (com.ociweb.pronghorn.util.TrieParserReader)3 IntHashTable (com.ociweb.pronghorn.pipe.util.hash.IntHashTable)2 PubSubMethodListenerBase (com.ociweb.gl.impl.PubSubMethodListenerBase)1 Test (org.junit.Test)1