Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-WIC-Cnf
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
3
Issues
3
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
CommunityXG
OpenXG-WIC-Cnf
Commits
3d152a45
Commit
3d152a45
authored
Dec 11, 2020
by
ymwangya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hadoop
parent
5582836a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
7 deletions
+2
-7
apps/cnf-distributed-business-computing/dbc-business-client/pom.xml
...istributed-business-computing/dbc-business-client/pom.xml
+0
-5
apps/cnf-distributed-business-computing/dbc-business-utils/src/main/java/top/ninwoo/dbc/utils/FileServiceImplement.java
.../main/java/top/ninwoo/dbc/utils/FileServiceImplement.java
+2
-2
No files found.
apps/cnf-distributed-business-computing/dbc-business-client/pom.xml
View file @
3d152a45
...
@@ -12,11 +12,6 @@
...
@@ -12,11 +12,6 @@
<artifactId>
dbc-business-client
</artifactId>
<artifactId>
dbc-business-client
</artifactId>
<dependencies>
<dependencies>
<dependency>
<groupId>
top.ninwoo
</groupId>
<artifactId>
cnf-client-starter
</artifactId>
<version>
1.0-SNAPSHOT
</version>
</dependency>
<dependency>
<dependency>
<groupId>
top.ninwoo
</groupId>
<groupId>
top.ninwoo
</groupId>
<artifactId>
dbc-commom-api
</artifactId>
<artifactId>
dbc-commom-api
</artifactId>
...
...
apps/cnf-distributed-business-computing/dbc-business-utils/src/main/java/top/ninwoo/dbc/utils/FileServiceImplement.java
View file @
3d152a45
...
@@ -36,14 +36,14 @@ public class FileServiceImplement implements DistributedComService {
...
@@ -36,14 +36,14 @@ public class FileServiceImplement implements DistributedComService {
}
}
//对分割后的碎片,按照其数据量大小排序
//对分割后的碎片,按照其数据量大小排序
/*
for (int i = 0; i < fileSliceList.size()-1; i++) {
for
(
int
i
=
0
;
i
<
fileSliceList
.
size
()-
1
;
i
++)
{
for
(
int
j
=
0
;
j
<
fileSliceList
.
size
()-
i
-
1
;
j
++)
{
for
(
int
j
=
0
;
j
<
fileSliceList
.
size
()-
i
-
1
;
j
++)
{
if
(
fileSliceList
.
get
(
j
).
getFileBytes
().
length
<
fileSliceList
.
get
(
j
+
1
).
getFileBytes
().
length
)
{
if
(
fileSliceList
.
get
(
j
).
getFileBytes
().
length
<
fileSliceList
.
get
(
j
+
1
).
getFileBytes
().
length
)
{
fileSliceList
.
set
(
j
,
fileSliceList
.
get
(
j
+
1
));
fileSliceList
.
set
(
j
,
fileSliceList
.
get
(
j
+
1
));
fileSliceList
.
set
(
j
+
1
,
fileSliceList
.
get
(
j
));
fileSliceList
.
set
(
j
+
1
,
fileSliceList
.
get
(
j
));
}
}
}
}
}
*/
}
SplitResult
splitResult
=
new
SplitResult
();
SplitResult
splitResult
=
new
SplitResult
();
splitResult
.
setFileSliceList
(
fileSliceList
);
splitResult
.
setFileSliceList
(
fileSliceList
);
return
splitResult
;
return
splitResult
;
...
...
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