Skip to content

Commit 5308ef4

Browse files
committed
Create statistics package
The `statistics` package contains modules for computing various statistics.
1 parent 47956d4 commit 5308ef4

File tree

9 files changed

+11
-11
lines changed

9 files changed

+11
-11
lines changed

src/main/java/org/culturegraph/mf/stream/pipe/stat/AbstractCountProcessor.java renamed to src/main/java/org/culturegraph/mf/statistics/AbstractCountProcessor.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.stat;
16+
package org.culturegraph.mf.statistics;
1717

1818
import java.util.Hashtable;
1919
import java.util.Map;

src/main/java/org/culturegraph/mf/stream/pipe/stat/CooccurrenceMetricCalculator.java renamed to src/main/java/org/culturegraph/mf/statistics/CooccurrenceMetricCalculator.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.stat;
16+
package org.culturegraph.mf.statistics;
1717

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

src/main/java/org/culturegraph/mf/stream/pipe/Counter.java renamed to src/main/java/org/culturegraph/mf/statistics/Counter.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.statistics;
1717

1818
import org.culturegraph.mf.framework.FluxCommand;
1919
import org.culturegraph.mf.framework.StreamReceiver;

src/main/java/org/culturegraph/mf/stream/sink/Histogram.java renamed to src/main/java/org/culturegraph/mf/statistics/Histogram.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.statistics;
1717

1818
import java.util.Collections;
1919
import java.util.HashMap;

src/main/java/org/culturegraph/mf/stream/pipe/UniformSampler.java renamed to src/main/java/org/culturegraph/mf/statistics/UniformSampler.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.statistics;
1717

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

src/main/resources/flux-commands.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ collect-triples org.culturegraph.mf.triples.TripleCollect
3232
stream-to-triples org.culturegraph.mf.triples.StreamToTriples
3333
filter-triples org.culturegraph.mf.triples.TripleFilter
3434
triples-to-stream org.culturegraph.mf.triples.TriplesToStream
35-
calculate-metrics org.culturegraph.mf.stream.pipe.stat.CooccurrenceMetricCalculator
35+
calculate-metrics org.culturegraph.mf.statistics.CooccurrenceMetricCalculator
3636

3737
jscript org.culturegraph.mf.scripting.JScriptObjectPipe
3838

@@ -107,7 +107,7 @@ pass-through org.culturegraph.mf.plumbing.IdentityStreamPipe
107107

108108
match org.culturegraph.mf.strings.StringMatcher
109109

110-
stream-count org.culturegraph.mf.stream.pipe.Counter
110+
stream-count org.culturegraph.mf.statistics.Counter
111111

112112
literal-to-object org.culturegraph.mf.mangling.LiteralToObject
113113
object-to-literal org.culturegraph.mf.mangling.ObjectToLiteral
@@ -121,7 +121,7 @@ merge-same-ids org.culturegraph.mf.plumbing.StreamMerger
121121
filter-strings org.culturegraph.mf.strings.StringFilter
122122
discard-events org.culturegraph.mf.mangling.StreamEventDiscarder
123123

124-
draw-uniform-sample org.culturegraph.mf.stream.pipe.UniformSampler
124+
draw-uniform-sample org.culturegraph.mf.statistics.UniformSampler
125125

126126
catch-object-exception org.culturegraph.mf.flowcontrol.ObjectExceptionCatcher
127127
catch-stream-exception org.culturegraph.mf.flowcontrol.StreamExceptionCatcher

src/test/java/org/culturegraph/mf/stream/pipe/stat/CooccurrenceMetricCalculatorTest.java renamed to src/test/java/org/culturegraph/mf/statistics/CooccurrenceMetricCalculatorTest.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.stat;
16+
package org.culturegraph.mf.statistics;
1717

1818
import static org.junit.Assert.assertEquals;
1919

src/test/java/org/culturegraph/mf/stream/sink/HistogramTest.java renamed to src/test/java/org/culturegraph/mf/statistics/HistogramTest.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.statistics;
1717

1818
import static org.junit.Assert.assertEquals;
1919
import static org.junit.Assert.assertFalse;

src/test/java/org/culturegraph/mf/stream/pipe/UniformSamplerTest.java renamed to src/test/java/org/culturegraph/mf/statistics/UniformSamplerTest.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.statistics;
1717

1818
import static org.mockito.Mockito.inOrder;
1919

0 commit comments

Comments
 (0)