Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nezha-compute-mengxiangxuan
Project
Project
Details
Activity
Releases
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
mengxiangxuan
nezha-compute-mengxiangxuan
Commits
1f9d1ff6
Commit
1f9d1ff6
authored
Jul 25, 2018
by
mxx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
,,,
parent
6246cd5f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
0 deletions
+35
-0
TestMXX.java
.../com/duiba/nezha/compute/common/model/pacing/TestMXX.java
+35
-0
No files found.
nezha-compute-common/src/main/java/cn/com/duiba/nezha/compute/common/model/pacing/TestMXX.java
0 → 100644
View file @
1f9d1ff6
package
cn
.
com
.
duiba
.
nezha
.
compute
.
common
.
model
.
pacing
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
public
class
TestMXX
{
public
static
void
main
(
String
[]
args
){
OrientInfo
OrientInfo1
=
new
OrientInfo
(
11L
,
11111L
,
true
,
0
,
200L
,
90L
,
0.3
,
0.0
,
0.5
);
OrientInfo
OrientInfo2
=
new
OrientInfo
(
22L
,
22222L
,
true
,
0
,
300L
,
50L
,
0.2
,
1.0
,
0.5
);
OrientInfo
OrientInfo3
=
new
OrientInfo
(
33L
,
33333L
,
true
,
1
,
50L
,
50L
,
0.2
,
1.0
,
2.0
);
OrientInfo
OrientInfo4
=
new
OrientInfo
(
44L
,
44444L
,
true
,
0
,
300L
,
50L
,
0.1
,
1.0
,
0.5
);
List
OrientinfoList
=
new
ArrayList
();
OrientinfoList
.
add
(
OrientInfo1
);
OrientinfoList
.
add
(
OrientInfo2
);
OrientinfoList
.
add
(
OrientInfo3
);
OrientinfoList
.
add
(
OrientInfo4
);
BlackInfo
BlackInfo1
=
new
BlackInfo
(
22L
,
22222L
);
List
BlackInfoList
=
new
ArrayList
();
BlackInfoList
.
add
(
BlackInfo1
);
List
<
OrientResultInfo
>
recommendList
=
SlotRecommender
.
recommend
(
OrientinfoList
,
BlackInfoList
);
for
(
OrientResultInfo
recommend:
recommendList
){
System
.
out
.
println
(
recommend
);
System
.
out
.
println
(
recommend
.
advertId
+
"_"
+
recommend
.
orientId
);
}
}
}
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