-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'BlockAndStopWordTest' of https://github.com/Nitish1814/…
…zingg-Nitish into testRefactor # Conflicts: # common/client/src/main/java/zingg/common/client/util/PojoToArrayConverter.java # common/client/src/main/java/zingg/common/client/util/StructTypeFromPojoClass.java # common/client/src/main/java/zingg/common/client/util/WithSession.java # common/core/src/test/java/zingg/common/core/block/TestBlockBase.java # common/core/src/test/java/zingg/common/core/preprocess/TestStopWordsBase.java # spark/client/src/main/java/zingg/spark/client/util/SparkDFObjectUtil.java # spark/core/src/test/java/zingg/common/core/block/TestSparkBlock.java # spark/core/src/test/java/zingg/common/core/preprocess/TestSparkStopWords.java # spark/core/src/test/java/zingg/common/core/util/SparkStopWordRemoverUtility.java
- Loading branch information
Showing
11 changed files
with
86 additions
and
35 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
common/client/src/main/java/zingg/common/client/util/IWithSession.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package zingg.common.client.util; | ||
|
||
public interface IWithSession<S> { | ||
|
||
public void setSession(S s); | ||
|
||
public S getSession(); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 12 additions & 6 deletions
18
common/client/src/main/java/zingg/common/client/util/WithSession.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,15 @@ | ||
package zingg.common.client.util; | ||
|
||
public interface WithSession<S> { | ||
|
||
public void setSession(S s); | ||
|
||
public S getSession(); | ||
|
||
public class WithSession<S> implements IWithSession<S> { | ||
|
||
S session; | ||
@Override | ||
public void setSession(S session) { | ||
this.session = session; | ||
} | ||
|
||
@Override | ||
public S getSession() { | ||
return session; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
common/core/src/test/java/zingg/common/core/util/IStopWordRemoverUtility.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package zingg.common.core.util; | ||
|
||
import zingg.common.client.IArguments; | ||
import zingg.common.client.ZinggClientException; | ||
import zingg.common.core.context.Context; | ||
import zingg.common.core.preprocess.StopWordsRemover; | ||
|
||
import java.util.List; | ||
|
||
public interface IStopWordRemoverUtility<S, D, R, C, T> { | ||
|
||
List<StopWordsRemover<S, D, R, C, T>> getStopWordRemovers(Context<S, D, R, C, T> context, IArguments arguments) throws ZinggClientException; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters