File tree Expand file tree Collapse file tree 5 files changed +26
-2
lines changed
src/main/java/org/culturegraph/mf/stream Expand file tree Collapse file tree 5 files changed +26
-2
lines changed Original file line number Diff line number Diff line change 20
20
import org .culturegraph .mf .exceptions .FormatException ;
21
21
import org .culturegraph .mf .framework .DefaultObjectPipe ;
22
22
import org .culturegraph .mf .framework .StreamReceiver ;
23
+ import org .culturegraph .mf .framework .annotations .Description ;
24
+ import org .culturegraph .mf .framework .annotations .In ;
25
+ import org .culturegraph .mf .framework .annotations .Out ;
23
26
24
27
25
28
/**
31
34
* @author Markus Michael Geipel, Christoph Böhme
32
35
*
33
36
*/
37
+ @ Description ("Parses a raw Mab2 stream (UTF-8 encoding expected)." )
38
+ @ In (String .class )
39
+ @ Out (StreamReceiver .class )
34
40
public final class MabDecoder
35
41
extends DefaultObjectPipe <String , StreamReceiver > {
36
42
Original file line number Diff line number Diff line change 20
20
import org .culturegraph .mf .exceptions .FormatException ;
21
21
import org .culturegraph .mf .framework .DefaultObjectPipe ;
22
22
import org .culturegraph .mf .framework .StreamReceiver ;
23
+ import org .culturegraph .mf .framework .annotations .Description ;
24
+ import org .culturegraph .mf .framework .annotations .In ;
25
+ import org .culturegraph .mf .framework .annotations .Out ;
23
26
import org .culturegraph .mf .stream .converter .IllegalEncodingException ;
24
27
25
28
31
34
*
32
35
* @author Markus Michael Geipel, Christoph Böhme
33
36
*/
37
+ @ Description ("Parses a raw Marc string (UTF-8 encoding expected)." )
38
+ @ In (String .class )
39
+ @ Out (StreamReceiver .class )
34
40
public final class MarcDecoder
35
41
extends DefaultObjectPipe <String , StreamReceiver > {
36
42
Original file line number Diff line number Diff line change 18
18
import org .culturegraph .mf .framework .DefaultTee ;
19
19
import org .culturegraph .mf .framework .ObjectPipe ;
20
20
import org .culturegraph .mf .framework .ObjectReceiver ;
21
+ import org .culturegraph .mf .framework .annotations .Description ;
22
+ import org .culturegraph .mf .framework .annotations .In ;
23
+ import org .culturegraph .mf .framework .annotations .Out ;
21
24
22
25
/**
23
26
* Sends an object to more than one receiver.
27
30
* @author Christoph Böhme
28
31
*
29
32
*/
33
+ @ Description ("Sends an object to more than one receiver." )
34
+ @ In (Object .class )
35
+ @ Out (Object .class )
30
36
public final class ObjectTee <T > extends DefaultTee <ObjectReceiver <T >>
31
37
implements ObjectPipe <T , ObjectReceiver <T >> {
32
38
Original file line number Diff line number Diff line change 18
18
import org .culturegraph .mf .framework .DefaultTee ;
19
19
import org .culturegraph .mf .framework .StreamPipe ;
20
20
import org .culturegraph .mf .framework .StreamReceiver ;
21
+ import org .culturegraph .mf .framework .annotations .Description ;
22
+ import org .culturegraph .mf .framework .annotations .In ;
23
+ import org .culturegraph .mf .framework .annotations .Out ;
21
24
22
25
/**
23
26
* Replicates an event stream to an arbitrary number of {@link StreamReceiver}s.
24
27
*
25
28
* @author Christoph Böhme, Markus Michael Geipel
26
29
*
27
30
*/
31
+ @ Description ("Replicates an event stream to an arbitrary number of stream receivers." )
32
+ @ In (StreamReceiver .class )
33
+ @ Out (StreamReceiver .class )
28
34
public final class StreamTee extends DefaultTee <StreamReceiver >
29
35
implements StreamPipe <StreamReceiver > {
30
36
Original file line number Diff line number Diff line change 28
28
*
29
29
*/
30
30
@ Description ("Counts triples" )
31
- @ In (NamedValue .class )
32
- @ Out (NamedValue .class )
31
+ @ In (Triple .class )
32
+ @ Out (Triple .class )
33
33
public final class TripleCount extends AbstractTripleSort {
34
34
35
35
public static final String DEFAULT_COUNTP_REDICATE = "count" ;
You can’t perform that action at this time.
0 commit comments