本文整理汇总了Java中org.apache.pig.piggybank.evaluation.util.apachelogparser.SearchEngineExtractor类的典型用法代码示例。如果您正苦于以下问题:Java SearchEngineExtractor类的具体用法?Java SearchEngineExtractor怎么用?Java SearchEngineExtractor使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
SearchEngineExtractor类属于org.apache.pig.piggybank.evaluation.util.apachelogparser包,在下文中一共展示了SearchEngineExtractor类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testTests
import org.apache.pig.piggybank.evaluation.util.apachelogparser.SearchEngineExtractor; //导入依赖的package包/类
@Test
public void testTests() throws Exception {
SearchEngineExtractor searchEngineExtractor = new SearchEngineExtractor();
int testCount = 0;
Tuple input=DefaultTupleFactory.getInstance().newTuple(1);
for (String key : tests.keySet()) {
String expected = tests.get(key);
assertNotNull(expected);
assertTrue(expected.length() > 0);
input.set(0,key);
assertEquals(expected, searchEngineExtractor.exec(input));
testCount++;
}
assertEquals(tests.size(), testCount);
}
示例2: testInstantiation
import org.apache.pig.piggybank.evaluation.util.apachelogparser.SearchEngineExtractor; //导入依赖的package包/类
@Test
public void testInstantiation() {
assertNotNull(new SearchEngineExtractor());
}