Commit 3d152a45 authored by ymwangya's avatar ymwangya

hadoop

parent 5582836a
...@@ -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>
......
...@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment