Skip to content

Commit 8852fd4

Browse files
committed
Create triples package
The `triples` package contains modules for working with `Triple`s.
1 parent ca7c607 commit 8852fd4

22 files changed

+58
-40
lines changed

src/main/java/org/culturegraph/mf/stream/pipe/sort/AbstractTripleSort.java renamed to src/main/java/org/culturegraph/mf/triples/AbstractTripleSort.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.culturegraph.mf.stream.pipe.sort;
16+
package org.culturegraph.mf.triples;
1717

1818
import java.io.File;
1919
import java.io.FileOutputStream;
@@ -29,13 +29,12 @@
2929
import org.culturegraph.mf.framework.ObjectReceiver;
3030
import org.culturegraph.mf.framework.helpers.DefaultObjectPipe;
3131
import org.culturegraph.mf.framework.objects.Triple;
32-
import org.culturegraph.mf.stream.pipe.sort.MemoryWarningSystem.Listener;
3332

3433
/**
3534
* @author markus geipel
3635
*
3736
*/
38-
public abstract class AbstractTripleSort extends DefaultObjectPipe<Triple, ObjectReceiver<Triple>> implements Listener {
37+
public abstract class AbstractTripleSort extends DefaultObjectPipe<Triple, ObjectReceiver<Triple>> implements MemoryWarningSystem.Listener {
3938
/**
4039
* specifies the comparator
4140
*/

src/main/java/org/culturegraph/mf/stream/pipe/sort/MemoryWarningSystem.java renamed to src/main/java/org/culturegraph/mf/triples/MemoryWarningSystem.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/*
22
* Copyright 2016 Christoph Böhme
3-
* Copyright 2013, 2014 Deutsche Nationalbibliothek
43
*
54
* Licensed under the Apache License, Version 2.0 the "License";
65
* you may not use this file except in compliance with the License.
@@ -17,7 +16,7 @@
1716
/*
1817
* Code based on http://www.javaspecialists.eu/archive/Issue092.html
1918
*/
20-
package org.culturegraph.mf.stream.pipe.sort;
19+
package org.culturegraph.mf.triples;
2120

2221
import java.lang.management.ManagementFactory;
2322
import java.lang.management.MemoryMXBean;

src/main/java/org/culturegraph/mf/stream/pipe/sort/SortedTripleFileFacade.java renamed to src/main/java/org/culturegraph/mf/triples/SortedTripleFileFacade.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.culturegraph.mf.stream.pipe.sort;
16+
package org.culturegraph.mf.triples;
1717

1818
import java.io.BufferedInputStream;
1919
import java.io.EOFException;

src/main/java/org/culturegraph/mf/stream/converter/StreamToTriples.java renamed to src/main/java/org/culturegraph/mf/triples/StreamToTriples.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.culturegraph.mf.stream.converter;
16+
package org.culturegraph.mf.triples;
1717

1818
import java.util.ArrayList;
1919
import java.util.List;

src/main/java/org/culturegraph/mf/stream/pipe/sort/TripleCollect.java renamed to src/main/java/org/culturegraph/mf/triples/TripleCollect.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.culturegraph.mf.stream.pipe.sort;
16+
package org.culturegraph.mf.triples;
1717

1818
import org.culturegraph.mf.formeta.parser.FormetaParser;
1919
import org.culturegraph.mf.formeta.parser.PartialRecordEmitter;

src/main/java/org/culturegraph/mf/stream/pipe/sort/TripleCount.java renamed to src/main/java/org/culturegraph/mf/triples/TripleCount.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.culturegraph.mf.stream.pipe.sort;
16+
package org.culturegraph.mf.triples;
1717

1818
import java.util.Comparator;
1919

src/main/java/org/culturegraph/mf/stream/pipe/TripleFilter.java renamed to src/main/java/org/culturegraph/mf/triples/TripleFilter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.culturegraph.mf.stream.pipe;
16+
package org.culturegraph.mf.triples;
1717

1818
import java.util.regex.Matcher;
1919
import java.util.regex.Pattern;

src/main/java/org/culturegraph/mf/stream/pipe/TripleObjectRetriever.java renamed to src/main/java/org/culturegraph/mf/triples/TripleObjectRetriever.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/*
22
* Copyright 2016 Christoph Böhme
3-
* Copyright 2013, 2014 Deutsche Nationalbibliothek
43
*
54
* Licensed under the Apache License, Version 2.0 the "License";
65
* you may not use this file except in compliance with the License.
@@ -14,7 +13,7 @@
1413
* See the License for the specific language governing permissions and
1514
* limitations under the License.
1615
*/
17-
package org.culturegraph.mf.stream.pipe;
16+
package org.culturegraph.mf.triples;
1817

1918
import java.io.IOException;
2019
import java.io.InputStream;

src/main/java/org/culturegraph/mf/stream/sink/TripleObjectWriter.java renamed to src/main/java/org/culturegraph/mf/triples/TripleObjectWriter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.culturegraph.mf.stream.sink;
16+
package org.culturegraph.mf.triples;
1717

1818
import java.io.IOException;
1919
import java.io.Writer;

src/main/java/org/culturegraph/mf/stream/source/TripleReader.java renamed to src/main/java/org/culturegraph/mf/triples/TripleReader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.culturegraph.mf.stream.source;
16+
package org.culturegraph.mf.triples;
1717

1818
import java.io.BufferedInputStream;
1919
import java.io.EOFException;

0 commit comments

Comments
 (0)