blob: 660daec67d86364e394c16016f1db246ad341c96 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.docproc;
import com.yahoo.document.DocumentPut;
/**
* Document processor used for a simple, silly test.
*
* @author <a href="mailto:einarmr@yahoo-inc.com">Einar M R Rosenvinge</a>
*/
public class IncrementingDocumentProcessor extends SimpleDocumentProcessor {
int counter = 0;
@Override
public void process(DocumentPut put) {
System.err.println(counter + " DocumentPut: " + put);
counter++;
}
}
|