Merge pull request #1090 from metamx/alphanum-attribution

update code attribution
This commit is contained in:
Fangjin Yang 2015-02-04 15:51:34 -08:00
commit 42e902b6e3
2 changed files with 9 additions and 1 deletions

8
NOTICE
View File

@ -1,2 +1,10 @@
Druid - a distributed column store.
Copyright 2012-2015 Metamarkets Group Inc.
-------------------------------------------------------------------------------
This product contains a modified version of Andrew Duffy's java-alphanum library
* LICENSE:
* https://github.com/amjjd/java-alphanum/blob/5c036e2e492cc7f3b7bcdebd46b8f9e2a87927e5/LICENSE.txt (Apache License, Version 2.0)
* HOMEPAGE:
* https://github.com/amjjd/java-alphanum

View File

@ -33,7 +33,7 @@ public class AlphaNumericTopNMetricSpec extends LexicographicTopNMetricSpec
protected static Comparator<String> comparator = new Comparator<String>()
{
// This code is based on the Apache 2.0 licensed java-alphanum library (https://github.com/amjjd/java-alphanum)
// This code is based on https://github.com/amjjd/java-alphanum, see NOTICE file for more information
public int compare(String str1, String str2)
{
int[] pos = {0, 0};