Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-spark-tag-4.0
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxiaokang
gic-spark-tag-4.0
Commits
576fddfa
Commit
576fddfa
authored
Aug 24, 2020
by
guos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
会员标签4.0
parent
ec8936fe
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 additions
and
6 deletions
+1
-6
AbstractTagConsumFilter.java
...in/java/com/gic/spark/filter/AbstractTagConsumFilter.java
+0
-1
AbstractTagConsumRecordFilter.java
...a/com/gic/spark/filter/AbstractTagConsumRecordFilter.java
+0
-2
TagValueParser.java
src/main/java/com/gic/spark/tag/TagValueParser.java
+1
-3
No files found.
src/main/java/com/gic/spark/filter/AbstractTagConsumFilter.java
View file @
576fddfa
...
...
@@ -19,7 +19,6 @@ public abstract class AbstractTagConsumFilter implements BaseTagFilter {
DataSourceHive
dataSourceHive
=
new
DataSourceHive
(
ConstantUtil
.
ADS_GIC_TRD_ECU_SALES_LABEL_D
);
protected
static
JavaRDD
<
TrdEcuSalesLabelBean
>
statisticsTypeHandle
(
JavaRDD
<
TrdEcuSalesLabelBean
>
consumeRDD
,
TagConsumeRequest
consumeRequest
){
System
.
out
.
println
(
"request==>"
+
JSONObject
.
toJSONString
(
consumeRequest
));
consumeRDD
=
consumeRDD
.
mapPartitions
(
data
->{
List
<
TrdEcuSalesLabelBean
>
result
=
new
ArrayList
();
while
(
data
.
hasNext
()){
...
...
src/main/java/com/gic/spark/filter/AbstractTagConsumRecordFilter.java
View file @
576fddfa
...
...
@@ -28,7 +28,6 @@ public abstract class AbstractTagConsumRecordFilter implements BaseTagFilter {
List
<
TrdVirtualOrderBean
>
result
=
new
ArrayList
();
while
(
data
.
hasNext
()){
TrdVirtualOrderBean
consumeRecordBean
=
data
.
next
();
if
(
null
!=
request
&&
null
!=
request
.
getStatisticsType
()){
switch
(
request
.
getStatisticsType
()){
case
COMMODITYBRAND:
if
(
request
.
getStatisticsValList
().
contains
(
consumeRecordBean
.
getEnt_id
())){
...
...
@@ -48,7 +47,6 @@ public abstract class AbstractTagConsumRecordFilter implements BaseTagFilter {
default
:
break
;
}
}
}
return
result
.
iterator
();
});
return
consumeRecordRDD
;
...
...
src/main/java/com/gic/spark/tag/TagValueParser.java
View file @
576fddfa
...
...
@@ -338,7 +338,6 @@ public class TagValueParser {
private
static
AbstractFilterRequest
getConsumeRequest
(
List
<
TagConditionValDTO
>
conditionValDTOList
)
{
TagConsumeRequest
request
=
new
TagConsumeRequest
();
for
(
TagConditionValDTO
conditionValDTO:
conditionValDTOList
){
System
.
out
.
println
(
"conditionValDTO==>"
+
JSONObject
.
toJSONString
(
conditionValDTO
));
if
(
Pattern
.
compile
(
"flag"
).
matcher
(
conditionValDTO
.
getKey
()).
find
()){
setStatisticsTypeHandle
(
request
,
conditionValDTO
.
getKey
(),
conditionValDTO
.
getVal
());
}
else
{
...
...
@@ -352,7 +351,6 @@ public class TagValueParser {
}
}
System
.
out
.
println
(
"TagConsumeRequest==>"
+
JSONObject
.
toJSONString
(
request
));
return
request
;
}
...
...
@@ -564,7 +562,7 @@ public class TagValueParser {
private
static
void
setStatisticsTypeHandle
(
AbstractFilterRequest
request
,
String
key
,
String
val
){
String
[]
keys
=
key
.
split
(
"flag"
);
String
[]
vals
=
val
.
split
(
","
);
switch
(
keys
[
0
]){
switch
(
keys
[
0
]
.
replaceAll
(
"\\."
,
""
)
){
case
TagConstant
.
TAG_STATISTICS_CHANNEL
:
request
.
setStatisticsType
(
StatisticsType
.
CHANNEL
);
request
.
setStatisticsValList
(
Arrays
.
asList
(
vals
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment