You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@carbondata.apache.org by ch...@apache.org on 2016/11/18 01:43:18 UTC
[1/2] incubator-carbondata git commit: remove useless file
CarbonFileFolderComparator.java
Repository: incubator-carbondata
Updated Branches:
refs/heads/master 32f2d2786 -> c5176f31e
remove useless file CarbonFileFolderComparator.java
Project: http://git-wip-us.apache.org/repos/asf/incubator-carbondata/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-carbondata/commit/251f7fc2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-carbondata/tree/251f7fc2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-carbondata/diff/251f7fc2
Branch: refs/heads/master
Commit: 251f7fc26cef2d0822618925437046efc4b8653c
Parents: 32f2d27
Author: cenyuhai <26...@qq.com>
Authored: Fri Nov 18 00:16:26 2016 +0800
Committer: chenliang613 <ch...@apache.org>
Committed: Fri Nov 18 09:41:32 2016 +0800
----------------------------------------------------------------------
.../core/util/CarbonFileFolderComparator.java | 51 --------------------
1 file changed, 51 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/251f7fc2/core/src/main/java/org/apache/carbondata/core/util/CarbonFileFolderComparator.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/carbondata/core/util/CarbonFileFolderComparator.java b/core/src/main/java/org/apache/carbondata/core/util/CarbonFileFolderComparator.java
deleted file mode 100644
index c60865d..0000000
--- a/core/src/main/java/org/apache/carbondata/core/util/CarbonFileFolderComparator.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.carbondata.core.util;
-
-import java.util.Comparator;
-
-import org.apache.carbondata.core.datastorage.store.filesystem.CarbonFile;
-
-public class CarbonFileFolderComparator implements Comparator<CarbonFile> {
-
- /**
- * Below method will be used to compare two file
- *
- * @param o1 first file
- * @param o2 Second file
- * @return compare result
- */
- @Override public int compare(CarbonFile o1, CarbonFile o2) {
- String firstFileName = o1.getName();
- String secondFileName = o2.getName();
- int lastIndexOfO1 = firstFileName.lastIndexOf('_');
- int lastIndexOfO2 = secondFileName.lastIndexOf('_');
- int file1 = 0;
- int file2 = 0;
-
- try {
- file1 = Integer.parseInt(firstFileName.substring(lastIndexOfO1 + 1));
- file2 = Integer.parseInt(secondFileName.substring(lastIndexOfO2 + 1));
- } catch (NumberFormatException e) {
- return -1;
- }
- return (file1 < file2) ? -1 : (file1 == file2 ? 0 : 1);
- }
-}
[2/2] incubator-carbondata git commit: [CARBONDATA-388] Remove
useless file CarbonFileFolderComparator.java This closes #329
Posted by ch...@apache.org.
[CARBONDATA-388] Remove useless file CarbonFileFolderComparator.java This closes #329
Project: http://git-wip-us.apache.org/repos/asf/incubator-carbondata/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-carbondata/commit/c5176f31
Tree: http://git-wip-us.apache.org/repos/asf/incubator-carbondata/tree/c5176f31
Diff: http://git-wip-us.apache.org/repos/asf/incubator-carbondata/diff/c5176f31
Branch: refs/heads/master
Commit: c5176f31e6ba87e68057a543347d295c15ad9843
Parents: 32f2d27 251f7fc
Author: chenliang613 <ch...@apache.org>
Authored: Fri Nov 18 09:43:02 2016 +0800
Committer: chenliang613 <ch...@apache.org>
Committed: Fri Nov 18 09:43:02 2016 +0800
----------------------------------------------------------------------
.../core/util/CarbonFileFolderComparator.java | 51 --------------------
1 file changed, 51 deletions(-)
----------------------------------------------------------------------