mirror of https://github.com/apache/lucene.git
remaining eol-style fixes to trunk, native except .sh (LF)
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1305492 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c6a8b487e5
commit
ae0f44fcb9
File diff suppressed because one or more lines are too long
|
@ -1,21 +1,21 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<module type="JAVA_MODULE" version="4">
|
<module type="JAVA_MODULE" version="4">
|
||||||
<component name="NewModuleRootManager" inherit-compiler-output="false">
|
<component name="NewModuleRootManager" inherit-compiler-output="false">
|
||||||
<output url="file://$MODULE_DIR$/../build/kuromoji-idea/classes/java" />
|
<output url="file://$MODULE_DIR$/../build/kuromoji-idea/classes/java" />
|
||||||
<output-test url="file://$MODULE_DIR$/../build/kuromoji-idea/classes/test" />
|
<output-test url="file://$MODULE_DIR$/../build/kuromoji-idea/classes/test" />
|
||||||
<exclude-output />
|
<exclude-output />
|
||||||
<content url="file://$MODULE_DIR$">
|
<content url="file://$MODULE_DIR$">
|
||||||
<sourceFolder url="file://$MODULE_DIR$/src/java" isTestSource="false" />
|
<sourceFolder url="file://$MODULE_DIR$/src/java" isTestSource="false" />
|
||||||
<sourceFolder url="file://$MODULE_DIR$/src/resources" isTestSource="false" />
|
<sourceFolder url="file://$MODULE_DIR$/src/resources" isTestSource="false" />
|
||||||
<sourceFolder url="file://$MODULE_DIR$/src/test" isTestSource="true" />
|
<sourceFolder url="file://$MODULE_DIR$/src/test" isTestSource="true" />
|
||||||
<sourceFolder url="file://$MODULE_DIR$/src/tools/java" isTestSource="false" />
|
<sourceFolder url="file://$MODULE_DIR$/src/tools/java" isTestSource="false" />
|
||||||
<sourceFolder url="file://$MODULE_DIR$/src/tools/test" isTestSource="true" />
|
<sourceFolder url="file://$MODULE_DIR$/src/tools/test" isTestSource="true" />
|
||||||
</content>
|
</content>
|
||||||
<orderEntry type="inheritedJdk" />
|
<orderEntry type="inheritedJdk" />
|
||||||
<orderEntry type="sourceFolder" forTests="false" />
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
<orderEntry type="library" name="ICU library" level="project" />
|
<orderEntry type="library" name="ICU library" level="project" />
|
||||||
<orderEntry type="library" scope="TEST" name="JUnit" level="project" />
|
<orderEntry type="library" scope="TEST" name="JUnit" level="project" />
|
||||||
<orderEntry type="module" module-name="analysis-common" />
|
<orderEntry type="module" module-name="analysis-common" />
|
||||||
<orderEntry type="module" module-name="lucene" />
|
<orderEntry type="module" module-name="lucene" />
|
||||||
</component>
|
</component>
|
||||||
</module>
|
</module>
|
||||||
|
|
|
@ -1,27 +1,27 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<module type="JAVA_MODULE" version="4">
|
<module type="JAVA_MODULE" version="4">
|
||||||
<component name="NewModuleRootManager" inherit-compiler-output="false">
|
<component name="NewModuleRootManager" inherit-compiler-output="false">
|
||||||
<output url="file://$MODULE_DIR$/../build/morfologik/classes/java" />
|
<output url="file://$MODULE_DIR$/../build/morfologik/classes/java" />
|
||||||
<output-test url="file://$MODULE_DIR$/../build/morfologik/classes/test" />
|
<output-test url="file://$MODULE_DIR$/../build/morfologik/classes/test" />
|
||||||
<exclude-output />
|
<exclude-output />
|
||||||
<content url="file://$MODULE_DIR$">
|
<content url="file://$MODULE_DIR$">
|
||||||
<sourceFolder url="file://$MODULE_DIR$/src/java" isTestSource="false" />
|
<sourceFolder url="file://$MODULE_DIR$/src/java" isTestSource="false" />
|
||||||
<sourceFolder url="file://$MODULE_DIR$/src/test" isTestSource="true" />
|
<sourceFolder url="file://$MODULE_DIR$/src/test" isTestSource="true" />
|
||||||
</content>
|
</content>
|
||||||
<orderEntry type="inheritedJdk" />
|
<orderEntry type="inheritedJdk" />
|
||||||
<orderEntry type="sourceFolder" forTests="false" />
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
<orderEntry type="module-library">
|
<orderEntry type="module-library">
|
||||||
<library>
|
<library>
|
||||||
<CLASSES>
|
<CLASSES>
|
||||||
<root url="file://$MODULE_DIR$/lib" />
|
<root url="file://$MODULE_DIR$/lib" />
|
||||||
</CLASSES>
|
</CLASSES>
|
||||||
<JAVADOC />
|
<JAVADOC />
|
||||||
<SOURCES />
|
<SOURCES />
|
||||||
<jarDirectory url="file://$MODULE_DIR$/lib" recursive="false" />
|
<jarDirectory url="file://$MODULE_DIR$/lib" recursive="false" />
|
||||||
</library>
|
</library>
|
||||||
</orderEntry>
|
</orderEntry>
|
||||||
<orderEntry type="library" scope="TEST" name="JUnit" level="project" />
|
<orderEntry type="library" scope="TEST" name="JUnit" level="project" />
|
||||||
<orderEntry type="module" module-name="analysis-common" />
|
<orderEntry type="module" module-name="analysis-common" />
|
||||||
<orderEntry type="module" module-name="lucene" />
|
<orderEntry type="module" module-name="lucene" />
|
||||||
</component>
|
</component>
|
||||||
</module>
|
</module>
|
||||||
|
|
|
@ -1,29 +1,29 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<module type="JAVA_MODULE" version="4">
|
<module type="JAVA_MODULE" version="4">
|
||||||
<component name="NewModuleRootManager" inherit-compiler-output="false">
|
<component name="NewModuleRootManager" inherit-compiler-output="false">
|
||||||
<output url="file://$MODULE_DIR$/../build/uima/classes/java" />
|
<output url="file://$MODULE_DIR$/../build/uima/classes/java" />
|
||||||
<output-test url="file://$MODULE_DIR$/../build/uima/classes/test" />
|
<output-test url="file://$MODULE_DIR$/../build/uima/classes/test" />
|
||||||
<exclude-output />
|
<exclude-output />
|
||||||
<content url="file://$MODULE_DIR$">
|
<content url="file://$MODULE_DIR$">
|
||||||
<sourceFolder url="file://$MODULE_DIR$/src/java" isTestSource="false" />
|
<sourceFolder url="file://$MODULE_DIR$/src/java" isTestSource="false" />
|
||||||
<sourceFolder url="file://$MODULE_DIR$/src/resources" isTestSource="false" />
|
<sourceFolder url="file://$MODULE_DIR$/src/resources" isTestSource="false" />
|
||||||
<sourceFolder url="file://$MODULE_DIR$/src/test" isTestSource="true" />
|
<sourceFolder url="file://$MODULE_DIR$/src/test" isTestSource="true" />
|
||||||
<sourceFolder url="file://$MODULE_DIR$/src/test-files" isTestSource="true" />
|
<sourceFolder url="file://$MODULE_DIR$/src/test-files" isTestSource="true" />
|
||||||
</content>
|
</content>
|
||||||
<orderEntry type="inheritedJdk" />
|
<orderEntry type="inheritedJdk" />
|
||||||
<orderEntry type="sourceFolder" forTests="false" />
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
<orderEntry type="module-library">
|
<orderEntry type="module-library">
|
||||||
<library>
|
<library>
|
||||||
<CLASSES>
|
<CLASSES>
|
||||||
<root url="file://$MODULE_DIR$/lib" />
|
<root url="file://$MODULE_DIR$/lib" />
|
||||||
</CLASSES>
|
</CLASSES>
|
||||||
<JAVADOC />
|
<JAVADOC />
|
||||||
<SOURCES />
|
<SOURCES />
|
||||||
<jarDirectory url="file://$MODULE_DIR$/lib" recursive="false" />
|
<jarDirectory url="file://$MODULE_DIR$/lib" recursive="false" />
|
||||||
</library>
|
</library>
|
||||||
</orderEntry>
|
</orderEntry>
|
||||||
<orderEntry type="library" scope="TEST" name="JUnit" level="project" />
|
<orderEntry type="library" scope="TEST" name="JUnit" level="project" />
|
||||||
<orderEntry type="module" module-name="analysis-common" />
|
<orderEntry type="module" module-name="analysis-common" />
|
||||||
<orderEntry type="module" module-name="lucene" />
|
<orderEntry type="module" module-name="lucene" />
|
||||||
</component>
|
</component>
|
||||||
</module>
|
</module>
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<module type="JAVA_MODULE" version="4">
|
<module type="JAVA_MODULE" version="4">
|
||||||
<component name="NewModuleRootManager" inherit-compiler-output="false">
|
<component name="NewModuleRootManager" inherit-compiler-output="false">
|
||||||
<output url="file://$MODULE_DIR$/build/classes/java" />
|
<output url="file://$MODULE_DIR$/build/classes/java" />
|
||||||
<output-test url="file://$MODULE_DIR$/build/classes/test" />
|
<output-test url="file://$MODULE_DIR$/build/classes/test" />
|
||||||
<exclude-output />
|
<exclude-output />
|
||||||
<content url="file://$MODULE_DIR$">
|
<content url="file://$MODULE_DIR$">
|
||||||
<sourceFolder url="file://$MODULE_DIR$/src/java" isTestSource="false" />
|
<sourceFolder url="file://$MODULE_DIR$/src/java" isTestSource="false" />
|
||||||
<sourceFolder url="file://$MODULE_DIR$/src/test" isTestSource="true" />
|
<sourceFolder url="file://$MODULE_DIR$/src/test" isTestSource="true" />
|
||||||
</content>
|
</content>
|
||||||
<orderEntry type="inheritedJdk" />
|
<orderEntry type="inheritedJdk" />
|
||||||
<orderEntry type="sourceFolder" forTests="false" />
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
<orderEntry type="library" scope="TEST" name="JUnit" level="project" />
|
<orderEntry type="library" scope="TEST" name="JUnit" level="project" />
|
||||||
<orderEntry type="module" module-name="lucene" />
|
<orderEntry type="module" module-name="lucene" />
|
||||||
</component>
|
</component>
|
||||||
</module>
|
</module>
|
||||||
|
|
|
@ -1,30 +1,30 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<module type="JAVA_MODULE" version="4">
|
<module type="JAVA_MODULE" version="4">
|
||||||
<component name="NewModuleRootManager" inherit-compiler-output="false">
|
<component name="NewModuleRootManager" inherit-compiler-output="false">
|
||||||
<output url="file://$MODULE_DIR$/../../build/contrib/solr-langid/classes/java" />
|
<output url="file://$MODULE_DIR$/../../build/contrib/solr-langid/classes/java" />
|
||||||
<output-test url="file://$MODULE_DIR$/../../build/contrib/solr-langid/classes/test" />
|
<output-test url="file://$MODULE_DIR$/../../build/contrib/solr-langid/classes/test" />
|
||||||
<exclude-output />
|
<exclude-output />
|
||||||
<content url="file://$MODULE_DIR$">
|
<content url="file://$MODULE_DIR$">
|
||||||
<sourceFolder url="file://$MODULE_DIR$/src/test" isTestSource="true" />
|
<sourceFolder url="file://$MODULE_DIR$/src/test" isTestSource="true" />
|
||||||
<sourceFolder url="file://$MODULE_DIR$/src/test-files" isTestSource="true" />
|
<sourceFolder url="file://$MODULE_DIR$/src/test-files" isTestSource="true" />
|
||||||
<sourceFolder url="file://$MODULE_DIR$/src/java" isTestSource="false" />
|
<sourceFolder url="file://$MODULE_DIR$/src/java" isTestSource="false" />
|
||||||
<sourceFolder url="file://$MODULE_DIR$/src/resources" isTestSource="false" />
|
<sourceFolder url="file://$MODULE_DIR$/src/resources" isTestSource="false" />
|
||||||
</content>
|
</content>
|
||||||
<orderEntry type="inheritedJdk" />
|
<orderEntry type="inheritedJdk" />
|
||||||
<orderEntry type="sourceFolder" forTests="false" />
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
<orderEntry type="library" name="Solr library" level="project" />
|
<orderEntry type="library" name="Solr library" level="project" />
|
||||||
<orderEntry type="library" name="Solr extraction library" level="project" />
|
<orderEntry type="library" name="Solr extraction library" level="project" />
|
||||||
<orderEntry type="module-library">
|
<orderEntry type="module-library">
|
||||||
<library>
|
<library>
|
||||||
<CLASSES>
|
<CLASSES>
|
||||||
<root url="file://$MODULE_DIR$/lib" />
|
<root url="file://$MODULE_DIR$/lib" />
|
||||||
</CLASSES>
|
</CLASSES>
|
||||||
<JAVADOC />
|
<JAVADOC />
|
||||||
<SOURCES />
|
<SOURCES />
|
||||||
<jarDirectory url="file://$MODULE_DIR$/lib" recursive="false" />
|
<jarDirectory url="file://$MODULE_DIR$/lib" recursive="false" />
|
||||||
</library>
|
</library>
|
||||||
</orderEntry>
|
</orderEntry>
|
||||||
<orderEntry type="module" module-name="solr" />
|
<orderEntry type="module" module-name="solr" />
|
||||||
<orderEntry type="module" module-name="lucene" scope="TEST" />
|
<orderEntry type="module" module-name="lucene" scope="TEST" />
|
||||||
</component>
|
</component>
|
||||||
</module>
|
</module>
|
||||||
|
|
|
@ -1,90 +1,90 @@
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||||
<!--
|
<!--
|
||||||
Licensed to the Apache Software Foundation (ASF) under one
|
Licensed to the Apache Software Foundation (ASF) under one
|
||||||
or more contributor license agreements. See the NOTICE file
|
or more contributor license agreements. See the NOTICE file
|
||||||
distributed with this work for additional information
|
distributed with this work for additional information
|
||||||
regarding copyright ownership. The ASF licenses this file
|
regarding copyright ownership. The ASF licenses this file
|
||||||
to you under the Apache License, Version 2.0 (the
|
to you under the Apache License, Version 2.0 (the
|
||||||
"License"); you may not use this file except in compliance
|
"License"); you may not use this file except in compliance
|
||||||
with the License. You may obtain a copy of the License at
|
with the License. You may obtain a copy of the License at
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing,
|
Unless required by applicable law or agreed to in writing,
|
||||||
software distributed under the License is distributed on an
|
software distributed under the License is distributed on an
|
||||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
KIND, either express or implied. See the License for the
|
KIND, either express or implied. See the License for the
|
||||||
specific language governing permissions and limitations
|
specific language governing permissions and limitations
|
||||||
under the License.
|
under the License.
|
||||||
-->
|
-->
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>org.apache.lucene</groupId>
|
<groupId>org.apache.lucene</groupId>
|
||||||
<artifactId>lucene-parent</artifactId>
|
<artifactId>lucene-parent</artifactId>
|
||||||
<version>@version@</version>
|
<version>@version@</version>
|
||||||
<relativePath>../../../lucene/pom.xml</relativePath>
|
<relativePath>../../../lucene/pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
<groupId>org.apache.lucene</groupId>
|
<groupId>org.apache.lucene</groupId>
|
||||||
<artifactId>lucene-analyzers-kuromoji</artifactId>
|
<artifactId>lucene-analyzers-kuromoji</artifactId>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<name>Lucene Kuromoji Japanese Morphological Analyzer</name>
|
<name>Lucene Kuromoji Japanese Morphological Analyzer</name>
|
||||||
<description>
|
<description>
|
||||||
Lucene Kuromoji Japanese Morphological Analyzer
|
Lucene Kuromoji Japanese Morphological Analyzer
|
||||||
</description>
|
</description>
|
||||||
<properties>
|
<properties>
|
||||||
<module-directory>modules/analysis/kuromoji</module-directory>
|
<module-directory>modules/analysis/kuromoji</module-directory>
|
||||||
<build-directory>../build/kuromoji</build-directory>
|
<build-directory>../build/kuromoji</build-directory>
|
||||||
</properties>
|
</properties>
|
||||||
<scm>
|
<scm>
|
||||||
<connection>
|
<connection>
|
||||||
scm:svn:http://svn.apache.org/repos/asf/lucene/dev/trunk/${module-directory}
|
scm:svn:http://svn.apache.org/repos/asf/lucene/dev/trunk/${module-directory}
|
||||||
</connection>
|
</connection>
|
||||||
<developerConnection>
|
<developerConnection>
|
||||||
scm:svn:https://svn.apache.org/repos/asf/lucene/dev/trunk/${module-directory}
|
scm:svn:https://svn.apache.org/repos/asf/lucene/dev/trunk/${module-directory}
|
||||||
</developerConnection>
|
</developerConnection>
|
||||||
<url>
|
<url>
|
||||||
http://svn.apache.org/viewvc/lucene/dev/trunk/${module-directory}
|
http://svn.apache.org/viewvc/lucene/dev/trunk/${module-directory}
|
||||||
</url>
|
</url>
|
||||||
</scm>
|
</scm>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<!-- lucene-test-framework dependency must be declared before lucene-core -->
|
<!-- lucene-test-framework dependency must be declared before lucene-core -->
|
||||||
<groupId>${project.groupId}</groupId>
|
<groupId>${project.groupId}</groupId>
|
||||||
<artifactId>lucene-test-framework</artifactId>
|
<artifactId>lucene-test-framework</artifactId>
|
||||||
<version>${project.version}</version>
|
<version>${project.version}</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>${project.groupId}</groupId>
|
<groupId>${project.groupId}</groupId>
|
||||||
<artifactId>lucene-core</artifactId>
|
<artifactId>lucene-core</artifactId>
|
||||||
<version>${project.version}</version>
|
<version>${project.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>${project.groupId}</groupId>
|
<groupId>${project.groupId}</groupId>
|
||||||
<artifactId>lucene-analyzers-common</artifactId>
|
<artifactId>lucene-analyzers-common</artifactId>
|
||||||
<version>${project.version}</version>
|
<version>${project.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<build>
|
<build>
|
||||||
<directory>${build-directory}</directory>
|
<directory>${build-directory}</directory>
|
||||||
<outputDirectory>${build-directory}/classes/java</outputDirectory>
|
<outputDirectory>${build-directory}/classes/java</outputDirectory>
|
||||||
<testOutputDirectory>${build-directory}/classes/test</testOutputDirectory>
|
<testOutputDirectory>${build-directory}/classes/test</testOutputDirectory>
|
||||||
<sourceDirectory>src/java</sourceDirectory>
|
<sourceDirectory>src/java</sourceDirectory>
|
||||||
<testSourceDirectory>src/test</testSourceDirectory>
|
<testSourceDirectory>src/test</testSourceDirectory>
|
||||||
<resources>
|
<resources>
|
||||||
<resource>
|
<resource>
|
||||||
<directory>src/resources</directory>
|
<directory>src/resources</directory>
|
||||||
</resource>
|
</resource>
|
||||||
</resources>
|
</resources>
|
||||||
<testResources>
|
<testResources>
|
||||||
<testResource>
|
<testResource>
|
||||||
<directory>${project.build.testSourceDirectory}</directory>
|
<directory>${project.build.testSourceDirectory}</directory>
|
||||||
<excludes>
|
<excludes>
|
||||||
<exclude>**/*.java</exclude>
|
<exclude>**/*.java</exclude>
|
||||||
</excludes>
|
</excludes>
|
||||||
</testResource>
|
</testResource>
|
||||||
</testResources>
|
</testResources>
|
||||||
</build>
|
</build>
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -1,89 +1,89 @@
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||||
<!--
|
<!--
|
||||||
Licensed to the Apache Software Foundation (ASF) under one
|
Licensed to the Apache Software Foundation (ASF) under one
|
||||||
or more contributor license agreements. See the NOTICE file
|
or more contributor license agreements. See the NOTICE file
|
||||||
distributed with this work for additional information
|
distributed with this work for additional information
|
||||||
regarding copyright ownership. The ASF licenses this file
|
regarding copyright ownership. The ASF licenses this file
|
||||||
to you under the Apache License, Version 2.0 (the
|
to you under the Apache License, Version 2.0 (the
|
||||||
"License"); you may not use this file except in compliance
|
"License"); you may not use this file except in compliance
|
||||||
with the License. You may obtain a copy of the License at
|
with the License. You may obtain a copy of the License at
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing,
|
Unless required by applicable law or agreed to in writing,
|
||||||
software distributed under the License is distributed on an
|
software distributed under the License is distributed on an
|
||||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
KIND, either express or implied. See the License for the
|
KIND, either express or implied. See the License for the
|
||||||
specific language governing permissions and limitations
|
specific language governing permissions and limitations
|
||||||
under the License.
|
under the License.
|
||||||
-->
|
-->
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>org.apache.lucene</groupId>
|
<groupId>org.apache.lucene</groupId>
|
||||||
<artifactId>lucene-parent</artifactId>
|
<artifactId>lucene-parent</artifactId>
|
||||||
<version>@version@</version>
|
<version>@version@</version>
|
||||||
<relativePath>../../../lucene/pom.xml</relativePath>
|
<relativePath>../../../lucene/pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
<groupId>org.apache.lucene</groupId>
|
<groupId>org.apache.lucene</groupId>
|
||||||
<artifactId>lucene-analyzers-morfologik</artifactId>
|
<artifactId>lucene-analyzers-morfologik</artifactId>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<name>Lucene Morfologik Polish Lemmatizer</name>
|
<name>Lucene Morfologik Polish Lemmatizer</name>
|
||||||
<description>
|
<description>
|
||||||
A dictionary-driven lemmatizer for Polish (includes morphosyntactic annotations)
|
A dictionary-driven lemmatizer for Polish (includes morphosyntactic annotations)
|
||||||
</description>
|
</description>
|
||||||
<properties>
|
<properties>
|
||||||
<module-directory>modules/analysis/morfologik</module-directory>
|
<module-directory>modules/analysis/morfologik</module-directory>
|
||||||
<build-directory>../build/morfologik</build-directory>
|
<build-directory>../build/morfologik</build-directory>
|
||||||
</properties>
|
</properties>
|
||||||
<scm>
|
<scm>
|
||||||
<connection>
|
<connection>
|
||||||
scm:svn:http://svn.apache.org/repos/asf/lucene/dev/trunk/${module-directory}
|
scm:svn:http://svn.apache.org/repos/asf/lucene/dev/trunk/${module-directory}
|
||||||
</connection>
|
</connection>
|
||||||
<developerConnection>
|
<developerConnection>
|
||||||
scm:svn:https://svn.apache.org/repos/asf/lucene/dev/trunk/${module-directory}
|
scm:svn:https://svn.apache.org/repos/asf/lucene/dev/trunk/${module-directory}
|
||||||
</developerConnection>
|
</developerConnection>
|
||||||
<url>
|
<url>
|
||||||
http://svn.apache.org/viewvc/lucene/dev/trunk/${module-directory}
|
http://svn.apache.org/viewvc/lucene/dev/trunk/${module-directory}
|
||||||
</url>
|
</url>
|
||||||
</scm>
|
</scm>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<!-- lucene-test-framework dependency must be declared before lucene-core -->
|
<!-- lucene-test-framework dependency must be declared before lucene-core -->
|
||||||
<groupId>${project.groupId}</groupId>
|
<groupId>${project.groupId}</groupId>
|
||||||
<artifactId>lucene-test-framework</artifactId>
|
<artifactId>lucene-test-framework</artifactId>
|
||||||
<version>${project.version}</version>
|
<version>${project.version}</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>${project.groupId}</groupId>
|
<groupId>${project.groupId}</groupId>
|
||||||
<artifactId>lucene-core</artifactId>
|
<artifactId>lucene-core</artifactId>
|
||||||
<version>${project.version}</version>
|
<version>${project.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>${project.groupId}</groupId>
|
<groupId>${project.groupId}</groupId>
|
||||||
<artifactId>lucene-analyzers-common</artifactId>
|
<artifactId>lucene-analyzers-common</artifactId>
|
||||||
<version>${project.version}</version>
|
<version>${project.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.carrot2</groupId>
|
<groupId>org.carrot2</groupId>
|
||||||
<artifactId>morfologik-polish</artifactId>
|
<artifactId>morfologik-polish</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<build>
|
<build>
|
||||||
<directory>${build-directory}</directory>
|
<directory>${build-directory}</directory>
|
||||||
<outputDirectory>${build-directory}/classes/java</outputDirectory>
|
<outputDirectory>${build-directory}/classes/java</outputDirectory>
|
||||||
<testOutputDirectory>${build-directory}/classes/test</testOutputDirectory>
|
<testOutputDirectory>${build-directory}/classes/test</testOutputDirectory>
|
||||||
<sourceDirectory>src/java</sourceDirectory>
|
<sourceDirectory>src/java</sourceDirectory>
|
||||||
<testSourceDirectory>src/test</testSourceDirectory>
|
<testSourceDirectory>src/test</testSourceDirectory>
|
||||||
<testResources>
|
<testResources>
|
||||||
<testResource>
|
<testResource>
|
||||||
<directory>${project.build.testSourceDirectory}</directory>
|
<directory>${project.build.testSourceDirectory}</directory>
|
||||||
<excludes>
|
<excludes>
|
||||||
<exclude>**/*.java</exclude>
|
<exclude>**/*.java</exclude>
|
||||||
</excludes>
|
</excludes>
|
||||||
</testResource>
|
</testResource>
|
||||||
</testResources>
|
</testResources>
|
||||||
</build>
|
</build>
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -1,101 +1,101 @@
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||||
<!--
|
<!--
|
||||||
Licensed to the Apache Software Foundation (ASF) under one
|
Licensed to the Apache Software Foundation (ASF) under one
|
||||||
or more contributor license agreements. See the NOTICE file
|
or more contributor license agreements. See the NOTICE file
|
||||||
distributed with this work for additional information
|
distributed with this work for additional information
|
||||||
regarding copyright ownership. The ASF licenses this file
|
regarding copyright ownership. The ASF licenses this file
|
||||||
to you under the Apache License, Version 2.0 (the
|
to you under the Apache License, Version 2.0 (the
|
||||||
"License"); you may not use this file except in compliance
|
"License"); you may not use this file except in compliance
|
||||||
with the License. You may obtain a copy of the License at
|
with the License. You may obtain a copy of the License at
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing,
|
Unless required by applicable law or agreed to in writing,
|
||||||
software distributed under the License is distributed on an
|
software distributed under the License is distributed on an
|
||||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
KIND, either express or implied. See the License for the
|
KIND, either express or implied. See the License for the
|
||||||
specific language governing permissions and limitations
|
specific language governing permissions and limitations
|
||||||
under the License.
|
under the License.
|
||||||
-->
|
-->
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>org.apache.lucene</groupId>
|
<groupId>org.apache.lucene</groupId>
|
||||||
<artifactId>lucene-parent</artifactId>
|
<artifactId>lucene-parent</artifactId>
|
||||||
<version>@version@</version>
|
<version>@version@</version>
|
||||||
<relativePath>../../../lucene/pom.xml</relativePath>
|
<relativePath>../../../lucene/pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
<groupId>org.apache.lucene</groupId>
|
<groupId>org.apache.lucene</groupId>
|
||||||
<artifactId>lucene-analyzers-uima</artifactId>
|
<artifactId>lucene-analyzers-uima</artifactId>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<name>Lucene UIMA Analysis Components</name>
|
<name>Lucene UIMA Analysis Components</name>
|
||||||
<description>
|
<description>
|
||||||
Lucene Integration with UIMA for extracting metadata from arbitrary (text)
|
Lucene Integration with UIMA for extracting metadata from arbitrary (text)
|
||||||
fields and enrich document with features extracted from UIMA types
|
fields and enrich document with features extracted from UIMA types
|
||||||
(language, sentences, concepts, named entities, etc.)
|
(language, sentences, concepts, named entities, etc.)
|
||||||
</description>
|
</description>
|
||||||
<properties>
|
<properties>
|
||||||
<module-directory>modules/analysis/uima</module-directory>
|
<module-directory>modules/analysis/uima</module-directory>
|
||||||
<build-directory>../build/uima</build-directory>
|
<build-directory>../build/uima</build-directory>
|
||||||
</properties>
|
</properties>
|
||||||
<scm>
|
<scm>
|
||||||
<connection>
|
<connection>
|
||||||
scm:svn:http://svn.apache.org/repos/asf/lucene/dev/trunk/${module-directory}
|
scm:svn:http://svn.apache.org/repos/asf/lucene/dev/trunk/${module-directory}
|
||||||
</connection>
|
</connection>
|
||||||
<developerConnection>
|
<developerConnection>
|
||||||
scm:svn:https://svn.apache.org/repos/asf/lucene/dev/trunk/${module-directory}
|
scm:svn:https://svn.apache.org/repos/asf/lucene/dev/trunk/${module-directory}
|
||||||
</developerConnection>
|
</developerConnection>
|
||||||
<url>
|
<url>
|
||||||
http://svn.apache.org/viewvc/lucene/dev/trunk/${module-directory}
|
http://svn.apache.org/viewvc/lucene/dev/trunk/${module-directory}
|
||||||
</url>
|
</url>
|
||||||
</scm>
|
</scm>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<!-- lucene-test-framework dependency must be declared before lucene-core -->
|
<!-- lucene-test-framework dependency must be declared before lucene-core -->
|
||||||
<groupId>${project.groupId}</groupId>
|
<groupId>${project.groupId}</groupId>
|
||||||
<artifactId>lucene-test-framework</artifactId>
|
<artifactId>lucene-test-framework</artifactId>
|
||||||
<version>${project.version}</version>
|
<version>${project.version}</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>${project.groupId}</groupId>
|
<groupId>${project.groupId}</groupId>
|
||||||
<artifactId>lucene-core</artifactId>
|
<artifactId>lucene-core</artifactId>
|
||||||
<version>${project.version}</version>
|
<version>${project.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>${project.groupId}</groupId>
|
<groupId>${project.groupId}</groupId>
|
||||||
<artifactId>lucene-analyzers-common</artifactId>
|
<artifactId>lucene-analyzers-common</artifactId>
|
||||||
<version>${project.version}</version>
|
<version>${project.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.uima</groupId>
|
<groupId>org.apache.uima</groupId>
|
||||||
<artifactId>Tagger</artifactId>
|
<artifactId>Tagger</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.uima</groupId>
|
<groupId>org.apache.uima</groupId>
|
||||||
<artifactId>WhitespaceTokenizer</artifactId>
|
<artifactId>WhitespaceTokenizer</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.uima</groupId>
|
<groupId>org.apache.uima</groupId>
|
||||||
<artifactId>uimaj-core</artifactId>
|
<artifactId>uimaj-core</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<build>
|
<build>
|
||||||
<directory>${build-directory}</directory>
|
<directory>${build-directory}</directory>
|
||||||
<outputDirectory>${build-directory}/classes/java</outputDirectory>
|
<outputDirectory>${build-directory}/classes/java</outputDirectory>
|
||||||
<testOutputDirectory>${build-directory}/classes/test</testOutputDirectory>
|
<testOutputDirectory>${build-directory}/classes/test</testOutputDirectory>
|
||||||
<sourceDirectory>src/java</sourceDirectory>
|
<sourceDirectory>src/java</sourceDirectory>
|
||||||
<testSourceDirectory>src/test</testSourceDirectory>
|
<testSourceDirectory>src/test</testSourceDirectory>
|
||||||
<resources>
|
<resources>
|
||||||
<resource>
|
<resource>
|
||||||
<directory>src/resources</directory>
|
<directory>src/resources</directory>
|
||||||
</resource>
|
</resource>
|
||||||
</resources>
|
</resources>
|
||||||
<testResources>
|
<testResources>
|
||||||
<testResource>
|
<testResource>
|
||||||
<directory>src/test-files</directory>
|
<directory>src/test-files</directory>
|
||||||
</testResource>
|
</testResource>
|
||||||
</testResources>
|
</testResources>
|
||||||
</build>
|
</build>
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -1,83 +1,83 @@
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||||
<!--
|
<!--
|
||||||
Licensed to the Apache Software Foundation (ASF) under one
|
Licensed to the Apache Software Foundation (ASF) under one
|
||||||
or more contributor license agreements. See the NOTICE file
|
or more contributor license agreements. See the NOTICE file
|
||||||
distributed with this work for additional information
|
distributed with this work for additional information
|
||||||
regarding copyright ownership. The ASF licenses this file
|
regarding copyright ownership. The ASF licenses this file
|
||||||
to you under the Apache License, Version 2.0 (the
|
to you under the Apache License, Version 2.0 (the
|
||||||
"License"); you may not use this file except in compliance
|
"License"); you may not use this file except in compliance
|
||||||
with the License. You may obtain a copy of the License at
|
with the License. You may obtain a copy of the License at
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing,
|
Unless required by applicable law or agreed to in writing,
|
||||||
software distributed under the License is distributed on an
|
software distributed under the License is distributed on an
|
||||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
KIND, either express or implied. See the License for the
|
KIND, either express or implied. See the License for the
|
||||||
specific language governing permissions and limitations
|
specific language governing permissions and limitations
|
||||||
under the License.
|
under the License.
|
||||||
-->
|
-->
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>org.apache.lucene</groupId>
|
<groupId>org.apache.lucene</groupId>
|
||||||
<artifactId>lucene-parent</artifactId>
|
<artifactId>lucene-parent</artifactId>
|
||||||
<version>@version@</version>
|
<version>@version@</version>
|
||||||
<relativePath>../../lucene/pom.xml</relativePath>
|
<relativePath>../../lucene/pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
<groupId>org.apache.lucene</groupId>
|
<groupId>org.apache.lucene</groupId>
|
||||||
<artifactId>lucene-join</artifactId>
|
<artifactId>lucene-join</artifactId>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<name>Lucene Join</name>
|
<name>Lucene Join</name>
|
||||||
<description>Lucene Join Module</description>
|
<description>Lucene Join Module</description>
|
||||||
<properties>
|
<properties>
|
||||||
<module-directory>modules/join</module-directory>
|
<module-directory>modules/join</module-directory>
|
||||||
<build-directory>build</build-directory>
|
<build-directory>build</build-directory>
|
||||||
</properties>
|
</properties>
|
||||||
<scm>
|
<scm>
|
||||||
<connection>
|
<connection>
|
||||||
scm:svn:http://svn.apache.org/repos/asf/lucene/dev/trunk/${module-directory}
|
scm:svn:http://svn.apache.org/repos/asf/lucene/dev/trunk/${module-directory}
|
||||||
</connection>
|
</connection>
|
||||||
<developerConnection>
|
<developerConnection>
|
||||||
scm:svn:https://svn.apache.org/repos/asf/lucene/dev/trunk/${module-directory}
|
scm:svn:https://svn.apache.org/repos/asf/lucene/dev/trunk/${module-directory}
|
||||||
</developerConnection>
|
</developerConnection>
|
||||||
<url>
|
<url>
|
||||||
http://svn.apache.org/viewvc/lucene/dev/trunk/${module-directory}
|
http://svn.apache.org/viewvc/lucene/dev/trunk/${module-directory}
|
||||||
</url>
|
</url>
|
||||||
</scm>
|
</scm>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<!-- lucene-test-framework dependency must be declared before lucene-core -->
|
<!-- lucene-test-framework dependency must be declared before lucene-core -->
|
||||||
<groupId>${project.groupId}</groupId>
|
<groupId>${project.groupId}</groupId>
|
||||||
<artifactId>lucene-test-framework</artifactId>
|
<artifactId>lucene-test-framework</artifactId>
|
||||||
<version>${project.version}</version>
|
<version>${project.version}</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>${project.groupId}</groupId>
|
<groupId>${project.groupId}</groupId>
|
||||||
<artifactId>lucene-core</artifactId>
|
<artifactId>lucene-core</artifactId>
|
||||||
<version>${project.version}</version>
|
<version>${project.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>${project.groupId}</groupId>
|
<groupId>${project.groupId}</groupId>
|
||||||
<artifactId>lucene-grouping</artifactId>
|
<artifactId>lucene-grouping</artifactId>
|
||||||
<version>${project.version}</version>
|
<version>${project.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<build>
|
<build>
|
||||||
<directory>${build-directory}</directory>
|
<directory>${build-directory}</directory>
|
||||||
<outputDirectory>${build-directory}/classes/java</outputDirectory>
|
<outputDirectory>${build-directory}/classes/java</outputDirectory>
|
||||||
<testOutputDirectory>${build-directory}/classes/test</testOutputDirectory>
|
<testOutputDirectory>${build-directory}/classes/test</testOutputDirectory>
|
||||||
<sourceDirectory>src/java</sourceDirectory>
|
<sourceDirectory>src/java</sourceDirectory>
|
||||||
<testSourceDirectory>src/test</testSourceDirectory>
|
<testSourceDirectory>src/test</testSourceDirectory>
|
||||||
<testResources>
|
<testResources>
|
||||||
<testResource>
|
<testResource>
|
||||||
<directory>${project.build.testSourceDirectory}</directory>
|
<directory>${project.build.testSourceDirectory}</directory>
|
||||||
<excludes>
|
<excludes>
|
||||||
<exclude>**/*.java</exclude>
|
<exclude>**/*.java</exclude>
|
||||||
</excludes>
|
</excludes>
|
||||||
</testResource>
|
</testResource>
|
||||||
</testResources>
|
</testResources>
|
||||||
</build>
|
</build>
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -1,75 +1,75 @@
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||||
<!--
|
<!--
|
||||||
Licensed to the Apache Software Foundation (ASF) under one
|
Licensed to the Apache Software Foundation (ASF) under one
|
||||||
or more contributor license agreements. See the NOTICE file
|
or more contributor license agreements. See the NOTICE file
|
||||||
distributed with this work for additional information
|
distributed with this work for additional information
|
||||||
regarding copyright ownership. The ASF licenses this file
|
regarding copyright ownership. The ASF licenses this file
|
||||||
to you under the Apache License, Version 2.0 (the
|
to you under the Apache License, Version 2.0 (the
|
||||||
"License"); you may not use this file except in compliance
|
"License"); you may not use this file except in compliance
|
||||||
with the License. You may obtain a copy of the License at
|
with the License. You may obtain a copy of the License at
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing,
|
Unless required by applicable law or agreed to in writing,
|
||||||
software distributed under the License is distributed on an
|
software distributed under the License is distributed on an
|
||||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
KIND, either express or implied. See the License for the
|
KIND, either express or implied. See the License for the
|
||||||
specific language governing permissions and limitations
|
specific language governing permissions and limitations
|
||||||
under the License.
|
under the License.
|
||||||
-->
|
-->
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>org.apache.lucene</groupId>
|
<groupId>org.apache.lucene</groupId>
|
||||||
<artifactId>lucene-parent</artifactId>
|
<artifactId>lucene-parent</artifactId>
|
||||||
<version>@version@</version>
|
<version>@version@</version>
|
||||||
<relativePath>../../lucene/pom.xml</relativePath>
|
<relativePath>../../lucene/pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
<groupId>org.apache.lucene</groupId>
|
<groupId>org.apache.lucene</groupId>
|
||||||
<artifactId>lucene-spatial</artifactId>
|
<artifactId>lucene-spatial</artifactId>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<name>Lucene Spatial</name>
|
<name>Lucene Spatial</name>
|
||||||
<description>
|
<description>
|
||||||
Spatial Strategies for Apache Lucene
|
Spatial Strategies for Apache Lucene
|
||||||
</description>
|
</description>
|
||||||
<properties>
|
<properties>
|
||||||
<module-directory>modules/spatial</module-directory>
|
<module-directory>modules/spatial</module-directory>
|
||||||
<build-directory>build</build-directory>
|
<build-directory>build</build-directory>
|
||||||
</properties>
|
</properties>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<!-- lucene-test-framework dependency must be declared before lucene-core -->
|
<!-- lucene-test-framework dependency must be declared before lucene-core -->
|
||||||
<groupId>${project.groupId}</groupId>
|
<groupId>${project.groupId}</groupId>
|
||||||
<artifactId>lucene-test-framework</artifactId>
|
<artifactId>lucene-test-framework</artifactId>
|
||||||
<version>${project.version}</version>
|
<version>${project.version}</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.spatial4j</groupId>
|
<groupId>com.spatial4j</groupId>
|
||||||
<artifactId>spatial4j</artifactId>
|
<artifactId>spatial4j</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>${project.groupId}</groupId>
|
<groupId>${project.groupId}</groupId>
|
||||||
<artifactId>lucene-core</artifactId>
|
<artifactId>lucene-core</artifactId>
|
||||||
<version>${project.version}</version>
|
<version>${project.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>${project.groupId}</groupId>
|
<groupId>${project.groupId}</groupId>
|
||||||
<artifactId>lucene-queries</artifactId>
|
<artifactId>lucene-queries</artifactId>
|
||||||
<version>${project.version}</version>
|
<version>${project.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<build>
|
<build>
|
||||||
<directory>${build-directory}</directory>
|
<directory>${build-directory}</directory>
|
||||||
<outputDirectory>${build-directory}/classes/java</outputDirectory>
|
<outputDirectory>${build-directory}/classes/java</outputDirectory>
|
||||||
<testOutputDirectory>${build-directory}/classes/test</testOutputDirectory>
|
<testOutputDirectory>${build-directory}/classes/test</testOutputDirectory>
|
||||||
<sourceDirectory>src/java</sourceDirectory>
|
<sourceDirectory>src/java</sourceDirectory>
|
||||||
<testSourceDirectory>src/test</testSourceDirectory>
|
<testSourceDirectory>src/test</testSourceDirectory>
|
||||||
<testResources>
|
<testResources>
|
||||||
<testResource>
|
<testResource>
|
||||||
<directory>src/test-files</directory>
|
<directory>src/test-files</directory>
|
||||||
</testResource>
|
</testResource>
|
||||||
</testResources>
|
</testResources>
|
||||||
</build>
|
</build>
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -1,83 +1,83 @@
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||||
<!--
|
<!--
|
||||||
Licensed to the Apache Software Foundation (ASF) under one
|
Licensed to the Apache Software Foundation (ASF) under one
|
||||||
or more contributor license agreements. See the NOTICE file
|
or more contributor license agreements. See the NOTICE file
|
||||||
distributed with this work for additional information
|
distributed with this work for additional information
|
||||||
regarding copyright ownership. The ASF licenses this file
|
regarding copyright ownership. The ASF licenses this file
|
||||||
to you under the Apache License, Version 2.0 (the
|
to you under the Apache License, Version 2.0 (the
|
||||||
"License"); you may not use this file except in compliance
|
"License"); you may not use this file except in compliance
|
||||||
with the License. You may obtain a copy of the License at
|
with the License. You may obtain a copy of the License at
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing,
|
Unless required by applicable law or agreed to in writing,
|
||||||
software distributed under the License is distributed on an
|
software distributed under the License is distributed on an
|
||||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
KIND, either express or implied. See the License for the
|
KIND, either express or implied. See the License for the
|
||||||
specific language governing permissions and limitations
|
specific language governing permissions and limitations
|
||||||
under the License.
|
under the License.
|
||||||
-->
|
-->
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>org.apache.lucene</groupId>
|
<groupId>org.apache.lucene</groupId>
|
||||||
<artifactId>lucene-parent</artifactId>
|
<artifactId>lucene-parent</artifactId>
|
||||||
<version>@version@</version>
|
<version>@version@</version>
|
||||||
<relativePath>../../lucene/pom.xml</relativePath>
|
<relativePath>../../lucene/pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
<groupId>org.apache.lucene</groupId>
|
<groupId>org.apache.lucene</groupId>
|
||||||
<artifactId>lucene-suggest</artifactId>
|
<artifactId>lucene-suggest</artifactId>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<name>Lucene Suggest</name>
|
<name>Lucene Suggest</name>
|
||||||
<description>Lucene Suggest Module</description>
|
<description>Lucene Suggest Module</description>
|
||||||
<properties>
|
<properties>
|
||||||
<module-directory>modules/suggest</module-directory>
|
<module-directory>modules/suggest</module-directory>
|
||||||
<build-directory>build</build-directory>
|
<build-directory>build</build-directory>
|
||||||
</properties>
|
</properties>
|
||||||
<scm>
|
<scm>
|
||||||
<connection>
|
<connection>
|
||||||
scm:svn:http://svn.apache.org/repos/asf/lucene/dev/trunk/${module-directory}
|
scm:svn:http://svn.apache.org/repos/asf/lucene/dev/trunk/${module-directory}
|
||||||
</connection>
|
</connection>
|
||||||
<developerConnection>
|
<developerConnection>
|
||||||
scm:svn:https://svn.apache.org/repos/asf/lucene/dev/trunk/${module-directory}
|
scm:svn:https://svn.apache.org/repos/asf/lucene/dev/trunk/${module-directory}
|
||||||
</developerConnection>
|
</developerConnection>
|
||||||
<url>
|
<url>
|
||||||
http://svn.apache.org/viewvc/lucene/dev/trunk/${module-directory}
|
http://svn.apache.org/viewvc/lucene/dev/trunk/${module-directory}
|
||||||
</url>
|
</url>
|
||||||
</scm>
|
</scm>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<!-- lucene-test-framework dependency must be declared before lucene-core -->
|
<!-- lucene-test-framework dependency must be declared before lucene-core -->
|
||||||
<groupId>${project.groupId}</groupId>
|
<groupId>${project.groupId}</groupId>
|
||||||
<artifactId>lucene-test-framework</artifactId>
|
<artifactId>lucene-test-framework</artifactId>
|
||||||
<version>${project.version}</version>
|
<version>${project.version}</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>${project.groupId}</groupId>
|
<groupId>${project.groupId}</groupId>
|
||||||
<artifactId>lucene-core</artifactId>
|
<artifactId>lucene-core</artifactId>
|
||||||
<version>${project.version}</version>
|
<version>${project.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>${project.groupId}</groupId>
|
<groupId>${project.groupId}</groupId>
|
||||||
<artifactId>lucene-analyzers-common</artifactId>
|
<artifactId>lucene-analyzers-common</artifactId>
|
||||||
<version>${project.version}</version>
|
<version>${project.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<build>
|
<build>
|
||||||
<directory>${build-directory}</directory>
|
<directory>${build-directory}</directory>
|
||||||
<outputDirectory>${build-directory}/classes/java</outputDirectory>
|
<outputDirectory>${build-directory}/classes/java</outputDirectory>
|
||||||
<testOutputDirectory>${build-directory}/classes/test</testOutputDirectory>
|
<testOutputDirectory>${build-directory}/classes/test</testOutputDirectory>
|
||||||
<sourceDirectory>src/java</sourceDirectory>
|
<sourceDirectory>src/java</sourceDirectory>
|
||||||
<testSourceDirectory>src/test</testSourceDirectory>
|
<testSourceDirectory>src/test</testSourceDirectory>
|
||||||
<testResources>
|
<testResources>
|
||||||
<testResource>
|
<testResource>
|
||||||
<directory>${project.build.testSourceDirectory}</directory>
|
<directory>${project.build.testSourceDirectory}</directory>
|
||||||
<excludes>
|
<excludes>
|
||||||
<exclude>**/*.java</exclude>
|
<exclude>**/*.java</exclude>
|
||||||
</excludes>
|
</excludes>
|
||||||
</testResource>
|
</testResource>
|
||||||
</testResources>
|
</testResources>
|
||||||
</build>
|
</build>
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -1,58 +1,58 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2010 The Apache Software Foundation.
|
* Copyright 2010 The Apache Software Foundation.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Generated using ICU4J 4.8.1.1 on Friday, January 13, 2012 6:20:39 PM UTC
|
// Generated using ICU4J 4.8.1.1 on Friday, January 13, 2012 6:20:39 PM UTC
|
||||||
// by org.apache.lucene.analysis.icu.GenerateHTMLStripCharFilterSupplementaryMacros
|
// by org.apache.lucene.analysis.icu.GenerateHTMLStripCharFilterSupplementaryMacros
|
||||||
|
|
||||||
|
|
||||||
ID_Start_Supp = (
|
ID_Start_Supp = (
|
||||||
[\uD81A][\uDC00-\uDE38]
|
[\uD81A][\uDC00-\uDE38]
|
||||||
| [\uD869][\uDC00-\uDED6\uDF00-\uDFFF]
|
| [\uD869][\uDC00-\uDED6\uDF00-\uDFFF]
|
||||||
| [\uD835][\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]
|
| [\uD835][\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]
|
||||||
| [\uD80C\uD840-\uD868\uD86A-\uD86C][\uDC00-\uDFFF]
|
| [\uD80C\uD840-\uD868\uD86A-\uD86C][\uDC00-\uDFFF]
|
||||||
| [\uD82C][\uDC00\uDC01]
|
| [\uD82C][\uDC00\uDC01]
|
||||||
| [\uD804][\uDC03-\uDC37\uDC83-\uDCAF]
|
| [\uD804][\uDC03-\uDC37\uDC83-\uDCAF]
|
||||||
| [\uD86D][\uDC00-\uDF34\uDF40-\uDFFF]
|
| [\uD86D][\uDC00-\uDF34\uDF40-\uDFFF]
|
||||||
| [\uD87E][\uDC00-\uDE1D]
|
| [\uD87E][\uDC00-\uDE1D]
|
||||||
| [\uD809][\uDC00-\uDC62]
|
| [\uD809][\uDC00-\uDC62]
|
||||||
| [\uD808][\uDC00-\uDF6E]
|
| [\uD808][\uDC00-\uDF6E]
|
||||||
| [\uD803][\uDC00-\uDC48]
|
| [\uD803][\uDC00-\uDC48]
|
||||||
| [\uD800][\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1E\uDF30-\uDF4A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]
|
| [\uD800][\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1E\uDF30-\uDF4A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]
|
||||||
| [\uD80D][\uDC00-\uDC2E]
|
| [\uD80D][\uDC00-\uDC2E]
|
||||||
| [\uD86E][\uDC00-\uDC1D]
|
| [\uD86E][\uDC00-\uDC1D]
|
||||||
| [\uD802][\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDD00-\uDD15\uDD20-\uDD39\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72]
|
| [\uD802][\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDD00-\uDD15\uDD20-\uDD39\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72]
|
||||||
| [\uD801][\uDC00-\uDC9D]
|
| [\uD801][\uDC00-\uDC9D]
|
||||||
)
|
)
|
||||||
ID_Continue_Supp = (
|
ID_Continue_Supp = (
|
||||||
[\uD81A][\uDC00-\uDE38]
|
[\uD81A][\uDC00-\uDE38]
|
||||||
| [\uD869][\uDC00-\uDED6\uDF00-\uDFFF]
|
| [\uD869][\uDC00-\uDED6\uDF00-\uDFFF]
|
||||||
| [\uD80C\uD840-\uD868\uD86A-\uD86C][\uDC00-\uDFFF]
|
| [\uD80C\uD840-\uD868\uD86A-\uD86C][\uDC00-\uDFFF]
|
||||||
| [\uD804][\uDC00-\uDC46\uDC66-\uDC6F\uDC80-\uDCBA]
|
| [\uD804][\uDC00-\uDC46\uDC66-\uDC6F\uDC80-\uDCBA]
|
||||||
| [\uD82C][\uDC00\uDC01]
|
| [\uD82C][\uDC00\uDC01]
|
||||||
| [\uD802][\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDD00-\uDD15\uDD20-\uDD39\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72]
|
| [\uD802][\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDD00-\uDD15\uDD20-\uDD39\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72]
|
||||||
| [\uD801][\uDC00-\uDC9D\uDCA0-\uDCA9]
|
| [\uD801][\uDC00-\uDC9D\uDCA0-\uDCA9]
|
||||||
| [\uD86D][\uDC00-\uDF34\uDF40-\uDFFF]
|
| [\uD86D][\uDC00-\uDF34\uDF40-\uDFFF]
|
||||||
| [\uD87E][\uDC00-\uDE1D]
|
| [\uD87E][\uDC00-\uDE1D]
|
||||||
| [\uD809][\uDC00-\uDC62]
|
| [\uD809][\uDC00-\uDC62]
|
||||||
| [\uD808][\uDC00-\uDF6E]
|
| [\uD808][\uDC00-\uDF6E]
|
||||||
| [\uD803][\uDC00-\uDC48]
|
| [\uD803][\uDC00-\uDC48]
|
||||||
| [\uD80D][\uDC00-\uDC2E]
|
| [\uD80D][\uDC00-\uDC2E]
|
||||||
| [\uD800][\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1E\uDF30-\uDF4A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]
|
| [\uD800][\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1E\uDF30-\uDF4A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]
|
||||||
| [\uD86E][\uDC00-\uDC1D]
|
| [\uD86E][\uDC00-\uDC1D]
|
||||||
| [\uDB40][\uDD00-\uDDEF]
|
| [\uDB40][\uDD00-\uDDEF]
|
||||||
| [\uD834][\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]
|
| [\uD834][\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]
|
||||||
| [\uD835][\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]
|
| [\uD835][\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]
|
||||||
)
|
)
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -1,61 +1,61 @@
|
||||||
#
|
#
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
# Licensed to the Apache Software Foundation (ASF) under one or more
|
||||||
# contributor license agreements. See the NOTICE file distributed with
|
# contributor license agreements. See the NOTICE file distributed with
|
||||||
# this work for additional information regarding copyright ownership.
|
# this work for additional information regarding copyright ownership.
|
||||||
# The ASF licenses this file to You under the Apache License, Version 2.0
|
# 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 not use this file except in compliance with
|
||||||
# the License. You may obtain a copy of the License at
|
# the License. You may obtain a copy of the License at
|
||||||
#
|
#
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
#
|
#
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# This is an example of rule tailoring for Hebrew.
|
# This is an example of rule tailoring for Hebrew.
|
||||||
# In this example the single-quote is added to the Extend category
|
# In this example the single-quote is added to the Extend category
|
||||||
# The double-quote is added to the MidLetter category.
|
# The double-quote is added to the MidLetter category.
|
||||||
#
|
#
|
||||||
!!chain;
|
!!chain;
|
||||||
$CR = [\p{Word_Break = CR}];
|
$CR = [\p{Word_Break = CR}];
|
||||||
$LF = [\p{Word_Break = LF}];
|
$LF = [\p{Word_Break = LF}];
|
||||||
$Newline = [\p{Word_Break = Newline}];
|
$Newline = [\p{Word_Break = Newline}];
|
||||||
$Extend = [\p{Word_Break = Extend}\u0027];
|
$Extend = [\p{Word_Break = Extend}\u0027];
|
||||||
$Format = [\p{Word_Break = Format}];
|
$Format = [\p{Word_Break = Format}];
|
||||||
$ALetter = [\p{Word_Break = ALetter}];
|
$ALetter = [\p{Word_Break = ALetter}];
|
||||||
$MidNumLet = [\p{Word_Break = MidNumLet}];
|
$MidNumLet = [\p{Word_Break = MidNumLet}];
|
||||||
$MidLetter = [\p{Word_Break = MidLetter}\u0022];
|
$MidLetter = [\p{Word_Break = MidLetter}\u0022];
|
||||||
$MidNum = [\p{Word_Break = MidNum}];
|
$MidNum = [\p{Word_Break = MidNum}];
|
||||||
$Numeric = [\p{Word_Break = Numeric}];
|
$Numeric = [\p{Word_Break = Numeric}];
|
||||||
$ExtendNumLet = [\p{Word_Break = ExtendNumLet}];
|
$ExtendNumLet = [\p{Word_Break = ExtendNumLet}];
|
||||||
$dictionary = [:LineBreak = Complex_Context:];
|
$dictionary = [:LineBreak = Complex_Context:];
|
||||||
$Control = [\p{Grapheme_Cluster_Break = Control}];
|
$Control = [\p{Grapheme_Cluster_Break = Control}];
|
||||||
$ALetterPlus = [$ALetter [$dictionary-$Extend-$Control]];
|
$ALetterPlus = [$ALetter [$dictionary-$Extend-$Control]];
|
||||||
|
|
||||||
$ALetterEx = $ALetterPlus ($Extend | $Format)*;
|
$ALetterEx = $ALetterPlus ($Extend | $Format)*;
|
||||||
$MidNumLetEx = $MidNumLet ($Extend | $Format)*;
|
$MidNumLetEx = $MidNumLet ($Extend | $Format)*;
|
||||||
$MidLetterEx = $MidLetter ($Extend | $Format)*;
|
$MidLetterEx = $MidLetter ($Extend | $Format)*;
|
||||||
$MidNumEx = $MidNum ($Extend | $Format)*;
|
$MidNumEx = $MidNum ($Extend | $Format)*;
|
||||||
$NumericEx = $Numeric ($Extend | $Format)*;
|
$NumericEx = $Numeric ($Extend | $Format)*;
|
||||||
$ExtendNumLetEx = $ExtendNumLet ($Extend | $Format)*;
|
$ExtendNumLetEx = $ExtendNumLet ($Extend | $Format)*;
|
||||||
|
|
||||||
!!forward;
|
!!forward;
|
||||||
|
|
||||||
$CR $LF;
|
$CR $LF;
|
||||||
[^$CR $LF $Newline]? ($Extend | $Format)+;
|
[^$CR $LF $Newline]? ($Extend | $Format)+;
|
||||||
$NumericEx {100};
|
$NumericEx {100};
|
||||||
$ALetterEx {200};
|
$ALetterEx {200};
|
||||||
$ALetterEx $ALetterEx {200};
|
$ALetterEx $ALetterEx {200};
|
||||||
$ALetterEx ($MidLetterEx | $MidNumLetEx) $ALetterEx {200};
|
$ALetterEx ($MidLetterEx | $MidNumLetEx) $ALetterEx {200};
|
||||||
$NumericEx $NumericEx {100};
|
$NumericEx $NumericEx {100};
|
||||||
$ALetterEx $NumericEx {200};
|
$ALetterEx $NumericEx {200};
|
||||||
$NumericEx $ALetterEx {200};
|
$NumericEx $ALetterEx {200};
|
||||||
$NumericEx ($MidNumEx | $MidNumLetEx) $NumericEx {100};
|
$NumericEx ($MidNumEx | $MidNumLetEx) $NumericEx {100};
|
||||||
$ALetterEx $ExtendNumLetEx {200};
|
$ALetterEx $ExtendNumLetEx {200};
|
||||||
$NumericEx $ExtendNumLetEx {100};
|
$NumericEx $ExtendNumLetEx {100};
|
||||||
$ExtendNumLetEx $ExtendNumLetEx {200};
|
$ExtendNumLetEx $ExtendNumLetEx {200};
|
||||||
$ExtendNumLetEx $ALetterEx {200};
|
$ExtendNumLetEx $ALetterEx {200};
|
||||||
$ExtendNumLetEx $NumericEx {100};
|
$ExtendNumLetEx $NumericEx {100};
|
||||||
|
|
|
@ -1,61 +1,61 @@
|
||||||
#
|
#
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
# Licensed to the Apache Software Foundation (ASF) under one or more
|
||||||
# contributor license agreements. See the NOTICE file distributed with
|
# contributor license agreements. See the NOTICE file distributed with
|
||||||
# this work for additional information regarding copyright ownership.
|
# this work for additional information regarding copyright ownership.
|
||||||
# The ASF licenses this file to You under the Apache License, Version 2.0
|
# 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 not use this file except in compliance with
|
||||||
# the License. You may obtain a copy of the License at
|
# the License. You may obtain a copy of the License at
|
||||||
#
|
#
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
#
|
#
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# Parses Khmer text, with orthographic syllable as token.
|
# Parses Khmer text, with orthographic syllable as token.
|
||||||
#
|
#
|
||||||
# The definition of Khmer orthographic syllable is taken from the Unicode Standard.
|
# The definition of Khmer orthographic syllable is taken from the Unicode Standard.
|
||||||
#
|
#
|
||||||
# B = base character (consonant, independent vowel, etc)
|
# B = base character (consonant, independent vowel, etc)
|
||||||
$KhmerBase = [\u1780-\u17B3];
|
$KhmerBase = [\u1780-\u17B3];
|
||||||
# R = robat
|
# R = robat
|
||||||
$KhmerRobat = [\u17CC];
|
$KhmerRobat = [\u17CC];
|
||||||
# C = consonant shifter
|
# C = consonant shifter
|
||||||
$KhmerShifter = [\u17C9\u17CA];
|
$KhmerShifter = [\u17C9\u17CA];
|
||||||
# S = subscript consonant or independent vowel sign
|
# S = subscript consonant or independent vowel sign
|
||||||
$KhmerSub = ([\u17D2] $KhmerBase);
|
$KhmerSub = ([\u17D2] $KhmerBase);
|
||||||
# V = dependent vowel sign
|
# V = dependent vowel sign
|
||||||
$KhmerVowel = [\u17B4-\u17C5];
|
$KhmerVowel = [\u17B4-\u17C5];
|
||||||
# Z = zero-width joiner or non-joiner
|
# Z = zero-width joiner or non-joiner
|
||||||
$KhmerZWC = [\u200C\u200D];
|
$KhmerZWC = [\u200C\u200D];
|
||||||
# O = any other sign
|
# O = any other sign
|
||||||
$KhmerSign = [\u17C6-\u17C8\u17CB\u17CD-\u17D1\u17DC\u17DD];
|
$KhmerSign = [\u17C6-\u17C8\u17CB\u17CD-\u17D1\u17DC\u17DD];
|
||||||
|
|
||||||
$WordJoin = [:Line_Break=Word_Joiner:];
|
$WordJoin = [:Line_Break=Word_Joiner:];
|
||||||
|
|
||||||
$KhmerSyllableEx = $KhmerBase ($KhmerRobat | $KhmerShifter)? ($KhmerSub ($KhmerRobat)?)* (($KhmerZWC)? $KhmerVowel)? ($KhmerSign)? ($KhmerSub)?;
|
$KhmerSyllableEx = $KhmerBase ($KhmerRobat | $KhmerShifter)? ($KhmerSub ($KhmerRobat)?)* (($KhmerZWC)? $KhmerVowel)? ($KhmerSign)? ($KhmerSub)?;
|
||||||
|
|
||||||
$KhmerJoinedSyllableEx = $KhmerSyllableEx ($WordJoin $KhmerSyllableEx)*;
|
$KhmerJoinedSyllableEx = $KhmerSyllableEx ($WordJoin $KhmerSyllableEx)*;
|
||||||
|
|
||||||
#
|
#
|
||||||
# default numerical definitions
|
# default numerical definitions
|
||||||
#
|
#
|
||||||
$Extend = [\p{Word_Break = Extend}];
|
$Extend = [\p{Word_Break = Extend}];
|
||||||
$Format = [\p{Word_Break = Format}];
|
$Format = [\p{Word_Break = Format}];
|
||||||
$MidNumLet = [\p{Word_Break = MidNumLet}];
|
$MidNumLet = [\p{Word_Break = MidNumLet}];
|
||||||
$MidNum = [\p{Word_Break = MidNum}];
|
$MidNum = [\p{Word_Break = MidNum}];
|
||||||
$Numeric = [\p{Word_Break = Numeric}];
|
$Numeric = [\p{Word_Break = Numeric}];
|
||||||
$ExtendNumLet = [\p{Word_Break = ExtendNumLet}];
|
$ExtendNumLet = [\p{Word_Break = ExtendNumLet}];
|
||||||
$MidNumLetEx = $MidNumLet ($Extend | $Format)*;
|
$MidNumLetEx = $MidNumLet ($Extend | $Format)*;
|
||||||
$MidNumEx = $MidNum ($Extend | $Format)*;
|
$MidNumEx = $MidNum ($Extend | $Format)*;
|
||||||
$NumericEx = $Numeric ($Extend | $Format)*;
|
$NumericEx = $Numeric ($Extend | $Format)*;
|
||||||
$ExtendNumLetEx = $ExtendNumLet ($Extend | $Format)*;
|
$ExtendNumLetEx = $ExtendNumLet ($Extend | $Format)*;
|
||||||
|
|
||||||
!!forward;
|
!!forward;
|
||||||
$KhmerJoinedSyllableEx {200};
|
$KhmerJoinedSyllableEx {200};
|
||||||
|
|
||||||
# default numeric rules
|
# default numeric rules
|
||||||
$NumericEx $ExtendNumLetEx? (($MidNumEx | $MidNumLetEx)? $NumericEx $ExtendNumLetEx?)* {100};
|
$NumericEx $ExtendNumLetEx? (($MidNumEx | $MidNumLetEx)? $NumericEx $ExtendNumLetEx?)* {100};
|
||||||
|
|
|
@ -1,192 +1,192 @@
|
||||||
#
|
#
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
# Licensed to the Apache Software Foundation (ASF) under one or more
|
||||||
# contributor license agreements. See the NOTICE file distributed with
|
# contributor license agreements. See the NOTICE file distributed with
|
||||||
# this work for additional information regarding copyright ownership.
|
# this work for additional information regarding copyright ownership.
|
||||||
# The ASF licenses this file to You under the Apache License, Version 2.0
|
# 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 not use this file except in compliance with
|
||||||
# the License. You may obtain a copy of the License at
|
# the License. You may obtain a copy of the License at
|
||||||
#
|
#
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
#
|
#
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
# Parses Lao text, with syllable as token.
|
# Parses Lao text, with syllable as token.
|
||||||
#
|
#
|
||||||
# The definition of Lao syllable is based from:
|
# The definition of Lao syllable is based from:
|
||||||
#
|
#
|
||||||
# Syllabification of Lao Script for Line Breaking
|
# Syllabification of Lao Script for Line Breaking
|
||||||
# Phonpasit Phissamay, Valaxay Dalolay, Chitaphone Chanhsililath, Oulaiphone Silimasak,
|
# Phonpasit Phissamay, Valaxay Dalolay, Chitaphone Chanhsililath, Oulaiphone Silimasak,
|
||||||
# Sarmad Hussain, Nadir Durrani, Science Technology and Environment Agency, CRULP
|
# Sarmad Hussain, Nadir Durrani, Science Technology and Environment Agency, CRULP
|
||||||
# http://www.panl10n.net/english/final%20reports/pdf%20files/Laos/LAO06.pdf
|
# http://www.panl10n.net/english/final%20reports/pdf%20files/Laos/LAO06.pdf
|
||||||
# http://www.panl10n.net/Presentations/Cambodia/Phonpassit/LineBreakingAlgo.pdf
|
# http://www.panl10n.net/Presentations/Cambodia/Phonpassit/LineBreakingAlgo.pdf
|
||||||
#
|
#
|
||||||
# NOTE:
|
# NOTE:
|
||||||
# There are some ambiguities in Lao syllabification without additional processing, as mentioned in the paper.
|
# There are some ambiguities in Lao syllabification without additional processing, as mentioned in the paper.
|
||||||
# For this reason, this RBBI grammar really only works with LaoBreakIterator, as it does this additional work.
|
# For this reason, this RBBI grammar really only works with LaoBreakIterator, as it does this additional work.
|
||||||
#
|
#
|
||||||
# Syllable structure, where X is the nuclear consonant:
|
# Syllable structure, where X is the nuclear consonant:
|
||||||
#
|
#
|
||||||
# +----+
|
# +----+
|
||||||
# | X5 |
|
# | X5 |
|
||||||
# +----+
|
# +----+
|
||||||
# | X4 |
|
# | X4 |
|
||||||
# +----+----+----+----+----+----+----+-----+
|
# +----+----+----+----+----+----+----+-----+
|
||||||
# | X0 | X1 | X | X6 | X7 | X8 | X9 | X10 |
|
# | X0 | X1 | X | X6 | X7 | X8 | X9 | X10 |
|
||||||
# +----+----+----+----+----+----+----+-----+
|
# +----+----+----+----+----+----+----+-----+
|
||||||
# | X2 |
|
# | X2 |
|
||||||
# +----+
|
# +----+
|
||||||
# | X3 |
|
# | X3 |
|
||||||
# +----+
|
# +----+
|
||||||
#
|
#
|
||||||
# X0 represents a vowel which occurs before the nuclear consonant.
|
# X0 represents a vowel which occurs before the nuclear consonant.
|
||||||
# It can always define the beginning of syllable.
|
# It can always define the beginning of syllable.
|
||||||
$X0 = [\u0EC0-\u0EC4];
|
$X0 = [\u0EC0-\u0EC4];
|
||||||
# X1 is a combination consonant which comes before the nuclear consonant,
|
# X1 is a combination consonant which comes before the nuclear consonant,
|
||||||
# but only if nuclear consonant is one of {ງ ຍ ລ ວ ຼ ມ ນ ຣ}
|
# but only if nuclear consonant is one of {ງ ຍ ລ ວ ຼ ມ ນ ຣ}
|
||||||
$X1 = [\u0EAB];
|
$X1 = [\u0EAB];
|
||||||
# X represents the nuclear consonant.
|
# X represents the nuclear consonant.
|
||||||
$X = [\u0E81-\u0EAE\u0EDC\u0EDD];
|
$X = [\u0E81-\u0EAE\u0EDC\u0EDD];
|
||||||
# X2 is a combination consonant which comes after the nuclear consonant,
|
# X2 is a combination consonant which comes after the nuclear consonant,
|
||||||
# which is placed under or next to the nuclear consonant.
|
# which is placed under or next to the nuclear consonant.
|
||||||
$X2 = [\u0EBC\u0EA3\u0EA7\u0EA5];
|
$X2 = [\u0EBC\u0EA3\u0EA7\u0EA5];
|
||||||
# X3 represents a vowel which occurs under the nuclear consonant.
|
# X3 represents a vowel which occurs under the nuclear consonant.
|
||||||
$X3 = [\u0EB8\u0EB9];
|
$X3 = [\u0EB8\u0EB9];
|
||||||
# X4 represents a vowel which occurs above the nuclear consonant.
|
# X4 represents a vowel which occurs above the nuclear consonant.
|
||||||
$X4 = [\u0EB4-\u0EB7\u0ECD\u0EBB\u0EB1];
|
$X4 = [\u0EB4-\u0EB7\u0ECD\u0EBB\u0EB1];
|
||||||
# X5 represents a tone mark which occurs above the nuclear consonant or upper vowel.
|
# X5 represents a tone mark which occurs above the nuclear consonant or upper vowel.
|
||||||
$X5 = [\u0EC8-\u0ECB];
|
$X5 = [\u0EC8-\u0ECB];
|
||||||
# X6 represents a consonant vowel, which occurs after the nuclear consonant.
|
# X6 represents a consonant vowel, which occurs after the nuclear consonant.
|
||||||
# It functions when the syllable doesn’t have any vowels. And it always exists with X8.
|
# It functions when the syllable doesn’t have any vowels. And it always exists with X8.
|
||||||
$X6 = [\u0EA7\u0EAD\u0EBD];
|
$X6 = [\u0EA7\u0EAD\u0EBD];
|
||||||
# X7 represents a final vowel.
|
# X7 represents a final vowel.
|
||||||
# However X7_1 always represents the end of syllable and it never exists with tone mark.
|
# However X7_1 always represents the end of syllable and it never exists with tone mark.
|
||||||
$X7 = [\u0EB0\u0EB2\u0EB3];
|
$X7 = [\u0EB0\u0EB2\u0EB3];
|
||||||
# X8 represents an alternate consonant.
|
# X8 represents an alternate consonant.
|
||||||
$X8 = [\u0E81\u0E87\u0E8D\u0E94\u0E99\u0EA1\u0E9A\u0EA7];
|
$X8 = [\u0E81\u0E87\u0E8D\u0E94\u0E99\u0EA1\u0E9A\u0EA7];
|
||||||
# X9 represents alternate consonants to pronounce foreign terms, it always exist with X10_3.
|
# X9 represents alternate consonants to pronounce foreign terms, it always exist with X10_3.
|
||||||
$X9 = [\u0E88\u0EAA\u0E8A\u0E9E\u0E9F\u0EA5];
|
$X9 = [\u0E88\u0EAA\u0E8A\u0E9E\u0E9F\u0EA5];
|
||||||
# X10 represents a sign mark.
|
# X10 represents a sign mark.
|
||||||
# It always occurs at the end of a syllable, but mostly people keep it separate from syllable.
|
# It always occurs at the end of a syllable, but mostly people keep it separate from syllable.
|
||||||
$X10 = [\u0EAF\u0EC6\u0ECC];
|
$X10 = [\u0EAF\u0EC6\u0ECC];
|
||||||
|
|
||||||
# Section 1
|
# Section 1
|
||||||
$X0_1 = [\u0EC0];
|
$X0_1 = [\u0EC0];
|
||||||
$X4_1_2 = [\u0EB4\u0EB5];
|
$X4_1_2 = [\u0EB4\u0EB5];
|
||||||
$X4_3_4 = [\u0EB6\u0EB7];
|
$X4_3_4 = [\u0EB6\u0EB7];
|
||||||
$X4_6 = [\u0EBB];
|
$X4_6 = [\u0EBB];
|
||||||
$X4_7 = [\u0EB1];
|
$X4_7 = [\u0EB1];
|
||||||
$X6_2 = [\u0EAD];
|
$X6_2 = [\u0EAD];
|
||||||
$X6_3 = [\u0EBD];
|
$X6_3 = [\u0EBD];
|
||||||
$X7_1 = [\u0EB0];
|
$X7_1 = [\u0EB0];
|
||||||
$X7_2 = [\u0EB2];
|
$X7_2 = [\u0EB2];
|
||||||
$X10_1 = [\u0EAF];
|
$X10_1 = [\u0EAF];
|
||||||
$X10_2 = [\u0EC6];
|
$X10_2 = [\u0EC6];
|
||||||
$X10_3 = [\u0ECC];
|
$X10_3 = [\u0ECC];
|
||||||
|
|
||||||
$Rule1_1 = $X0_1 ($X1)? $X ($X2)? ($X5)? ($X8)? ($X9 $X10_3)? ($X10_2)? ($X10_1)?;
|
$Rule1_1 = $X0_1 ($X1)? $X ($X2)? ($X5)? ($X8)? ($X9 $X10_3)? ($X10_2)? ($X10_1)?;
|
||||||
$Rule1_2 = $X0_1 ($X1)? $X ($X2)? $X4_1_2 ($X5)? ($X8)? ($X9 $X10_3)? ($X10_2)? ($X10_1)?;
|
$Rule1_2 = $X0_1 ($X1)? $X ($X2)? $X4_1_2 ($X5)? ($X8)? ($X9 $X10_3)? ($X10_2)? ($X10_1)?;
|
||||||
$Rule1_3 = $X0_1 ($X1)? $X ($X2)? $X4_3_4 ($X5)? $X6_2 ($X8)? ($X9 $X10_3)? ($X10_2)? ($X10_1)?;
|
$Rule1_3 = $X0_1 ($X1)? $X ($X2)? $X4_3_4 ($X5)? $X6_2 ($X8)? ($X9 $X10_3)? ($X10_2)? ($X10_1)?;
|
||||||
$Rule1_4 = $X0_1 ($X1)? $X ($X2)? ($X7_2)? $X7_1;
|
$Rule1_4 = $X0_1 ($X1)? $X ($X2)? ($X7_2)? $X7_1;
|
||||||
$Rule1_5 = $X0_1 ($X1)? $X ($X2)? $X4_6 ($X5)? $X7_2 ($X9 $X10_3)? ($X10_2)? ($X10_1)?;
|
$Rule1_5 = $X0_1 ($X1)? $X ($X2)? $X4_6 ($X5)? $X7_2 ($X9 $X10_3)? ($X10_2)? ($X10_1)?;
|
||||||
$Rule1_6 = $X0_1 ($X1)? $X ($X2)? $X4_7 ($X5)? $X8 ($X9 $X10_3)? ($X10_2)? ($X10_1)?;
|
$Rule1_6 = $X0_1 ($X1)? $X ($X2)? $X4_7 ($X5)? $X8 ($X9 $X10_3)? ($X10_2)? ($X10_1)?;
|
||||||
$Rule1_7 = $X0_1 ($X1)? $X ($X2)? ($X4_7)? ($X5)? $X6_3 ($X9 $X10_3)? ($X10_2)? ($X10_1)?;
|
$Rule1_7 = $X0_1 ($X1)? $X ($X2)? ($X4_7)? ($X5)? $X6_3 ($X9 $X10_3)? ($X10_2)? ($X10_1)?;
|
||||||
|
|
||||||
$Rule1 = ($Rule1_1 | $Rule1_2 | $Rule1_3 | $Rule1_4 | $Rule1_5 | $Rule1_6 | $Rule1_7);
|
$Rule1 = ($Rule1_1 | $Rule1_2 | $Rule1_3 | $Rule1_4 | $Rule1_5 | $Rule1_6 | $Rule1_7);
|
||||||
|
|
||||||
# Section 2
|
# Section 2
|
||||||
$X0_2 = [\u0EC1];
|
$X0_2 = [\u0EC1];
|
||||||
|
|
||||||
$Rule2_1 = $X0_2 ($X1)? $X ($X2)? ($X5)? ($X6)? ($X8)? ($X9 $X10_3)? ($X10_2)? ($X10_1)?;
|
$Rule2_1 = $X0_2 ($X1)? $X ($X2)? ($X5)? ($X6)? ($X8)? ($X9 $X10_3)? ($X10_2)? ($X10_1)?;
|
||||||
$Rule2_2 = $X0_2 ($X1)? $X ($X2)? $X7_1;
|
$Rule2_2 = $X0_2 ($X1)? $X ($X2)? $X7_1;
|
||||||
$Rule2_3 = $X0_2 ($X1)? $X ($X2)? $X4_7 ($X5)? $X8 ($X9 $X10_3)? ($X10_2)? ($X10_1)?;
|
$Rule2_3 = $X0_2 ($X1)? $X ($X2)? $X4_7 ($X5)? $X8 ($X9 $X10_3)? ($X10_2)? ($X10_1)?;
|
||||||
|
|
||||||
$Rule2 = ($Rule2_1 | $Rule2_2 | $Rule2_3);
|
$Rule2 = ($Rule2_1 | $Rule2_2 | $Rule2_3);
|
||||||
|
|
||||||
# Section 3
|
# Section 3
|
||||||
$X0_3 = [\u0EC2];
|
$X0_3 = [\u0EC2];
|
||||||
$X8_3 = [\u0E8D];
|
$X8_3 = [\u0E8D];
|
||||||
$X8_8 = [\u0EA7];
|
$X8_8 = [\u0EA7];
|
||||||
|
|
||||||
$Rule3_1 = $X0_3 ($X1)? $X ($X2)? ($X5)? ($X8)? ($X9 $X10_3)? ($X10_2)? ($X10_1)?;
|
$Rule3_1 = $X0_3 ($X1)? $X ($X2)? ($X5)? ($X8)? ($X9 $X10_3)? ($X10_2)? ($X10_1)?;
|
||||||
$Rule3_2 = $X0_3 ($X1)? $X ($X2)? $X7_1;
|
$Rule3_2 = $X0_3 ($X1)? $X ($X2)? $X7_1;
|
||||||
$Rule3_3 = $X0_3 ($X1)? $X ($X2)? $X4_7 ($X5)? ($X8_3 | $X8_8);
|
$Rule3_3 = $X0_3 ($X1)? $X ($X2)? $X4_7 ($X5)? ($X8_3 | $X8_8);
|
||||||
|
|
||||||
$Rule3 = ($Rule3_1 | $Rule3_2 | $Rule3_3);
|
$Rule3 = ($Rule3_1 | $Rule3_2 | $Rule3_3);
|
||||||
|
|
||||||
# Section 4
|
# Section 4
|
||||||
$X0_4 = [\u0EC4];
|
$X0_4 = [\u0EC4];
|
||||||
$X6_1 = [\u0EA7];
|
$X6_1 = [\u0EA7];
|
||||||
|
|
||||||
$Rule4 = $X0_4 ($X1)? $X ($X2)? ($X5)? ($X6_1)? ($X9 $X10_3)? ($X10_2)? ($X10_1)?;
|
$Rule4 = $X0_4 ($X1)? $X ($X2)? ($X5)? ($X6_1)? ($X9 $X10_3)? ($X10_2)? ($X10_1)?;
|
||||||
|
|
||||||
# Section 5
|
# Section 5
|
||||||
$X0_5 = [\u0EC3];
|
$X0_5 = [\u0EC3];
|
||||||
|
|
||||||
$Rule5 = $X0_5 ($X1)? $X ($X2)? ($X5)? ($X6_1)? ($X9 $X10_3)? ($X10_2)? ($X10_1)?;
|
$Rule5 = $X0_5 ($X1)? $X ($X2)? ($X5)? ($X6_1)? ($X9 $X10_3)? ($X10_2)? ($X10_1)?;
|
||||||
|
|
||||||
# Section 6
|
# Section 6
|
||||||
$Rule6 = ($X1)? $X ($X2)? $X3 ($X5)? ($X8)? ($X9 $X10_3)? ($X10_2)? ($X10_1)?;
|
$Rule6 = ($X1)? $X ($X2)? $X3 ($X5)? ($X8)? ($X9 $X10_3)? ($X10_2)? ($X10_1)?;
|
||||||
|
|
||||||
# Section 7
|
# Section 7
|
||||||
$X4_1_4 = [\u0EB4-\u0EB7];
|
$X4_1_4 = [\u0EB4-\u0EB7];
|
||||||
|
|
||||||
$Rule7 = ($X1)? $X ($X2)? $X4_1_4 ($X5)? ($X8)? ($X9 $X10_3)? ($X10_2)? ($X10_1)?;
|
$Rule7 = ($X1)? $X ($X2)? $X4_1_4 ($X5)? ($X8)? ($X9 $X10_3)? ($X10_2)? ($X10_1)?;
|
||||||
|
|
||||||
# Section 8
|
# Section 8
|
||||||
$X4_5 = [\u0ECD];
|
$X4_5 = [\u0ECD];
|
||||||
|
|
||||||
$Rule8 = ($X1)? $X ($X2)? $X4_5 ($X5)? ($X7_2)? ($X9 $X10_3)? ($X10_2)? ($X10_1)?;
|
$Rule8 = ($X1)? $X ($X2)? $X4_5 ($X5)? ($X7_2)? ($X9 $X10_3)? ($X10_2)? ($X10_1)?;
|
||||||
|
|
||||||
# Section 9
|
# Section 9
|
||||||
|
|
||||||
$Rule9_1 = ($X1)? $X ($X2)? $X4_6 ($X5)? $X8 ($X9 $X10_3)? ($X10_2)? ($X10_1)?;
|
$Rule9_1 = ($X1)? $X ($X2)? $X4_6 ($X5)? $X8 ($X9 $X10_3)? ($X10_2)? ($X10_1)?;
|
||||||
$Rule9_2 = ($X1)? $X ($X2)? $X4_6 ($X5)? $X6_1 $X7_1;
|
$Rule9_2 = ($X1)? $X ($X2)? $X4_6 ($X5)? $X6_1 $X7_1;
|
||||||
|
|
||||||
$Rule9 = ($Rule9_1 | $Rule9_2);
|
$Rule9 = ($Rule9_1 | $Rule9_2);
|
||||||
|
|
||||||
# Section 10
|
# Section 10
|
||||||
$Rule10 = ($X1)? $X ($X2)? $X4_7 ($X5)? ($X6_1)? $X8 ($X9 $X10_3)? ($X10_2)? ($X10_1)?;
|
$Rule10 = ($X1)? $X ($X2)? $X4_7 ($X5)? ($X6_1)? $X8 ($X9 $X10_3)? ($X10_2)? ($X10_1)?;
|
||||||
|
|
||||||
# Section 11
|
# Section 11
|
||||||
$Rule11 = ($X1)? $X ($X2)? ($X5)? $X6 $X8 ($X9 $X10_3)? ($X10_2)? ($X10_1)?;
|
$Rule11 = ($X1)? $X ($X2)? ($X5)? $X6 $X8 ($X9 $X10_3)? ($X10_2)? ($X10_1)?;
|
||||||
|
|
||||||
# Section 12
|
# Section 12
|
||||||
$Rule12 = ($X1)? $X ($X2)? ($X5)? $X7_1;
|
$Rule12 = ($X1)? $X ($X2)? ($X5)? $X7_1;
|
||||||
|
|
||||||
# Section 13
|
# Section 13
|
||||||
$Rule13 = ($X1)? $X ($X2)? ($X5)? $X7_2 ($X8)? ($X9 $X10_3)? ($X10_2)? ($X10_1)?;
|
$Rule13 = ($X1)? $X ($X2)? ($X5)? $X7_2 ($X8)? ($X9 $X10_3)? ($X10_2)? ($X10_1)?;
|
||||||
|
|
||||||
# Section 14
|
# Section 14
|
||||||
$X7_3 = [\u0EB3];
|
$X7_3 = [\u0EB3];
|
||||||
|
|
||||||
$Rule14 = ($X1)? $X ($X2)? ($X5)? $X7_3 ($X9 $X10_3)? ($X10_2)? ($X10_1)?;
|
$Rule14 = ($X1)? $X ($X2)? ($X5)? $X7_3 ($X9 $X10_3)? ($X10_2)? ($X10_1)?;
|
||||||
|
|
||||||
$LaoSyllableEx = ($Rule1 | $Rule2 | $Rule3 | $Rule4 | $Rule5 | $Rule6 | $Rule7 | $Rule8 | $Rule9 | $Rule10 | $Rule11 | $Rule12 | $Rule13 | $Rule14);
|
$LaoSyllableEx = ($Rule1 | $Rule2 | $Rule3 | $Rule4 | $Rule5 | $Rule6 | $Rule7 | $Rule8 | $Rule9 | $Rule10 | $Rule11 | $Rule12 | $Rule13 | $Rule14);
|
||||||
|
|
||||||
$WordJoin = [:Line_Break=Word_Joiner:];
|
$WordJoin = [:Line_Break=Word_Joiner:];
|
||||||
|
|
||||||
$LaoJoinedSyllableEx = $LaoSyllableEx ($WordJoin $LaoSyllableEx)*;
|
$LaoJoinedSyllableEx = $LaoSyllableEx ($WordJoin $LaoSyllableEx)*;
|
||||||
|
|
||||||
#
|
#
|
||||||
# default numerical definitions
|
# default numerical definitions
|
||||||
#
|
#
|
||||||
$Extend = [\p{Word_Break = Extend}];
|
$Extend = [\p{Word_Break = Extend}];
|
||||||
$Format = [\p{Word_Break = Format}];
|
$Format = [\p{Word_Break = Format}];
|
||||||
$MidNumLet = [\p{Word_Break = MidNumLet}];
|
$MidNumLet = [\p{Word_Break = MidNumLet}];
|
||||||
$MidNum = [\p{Word_Break = MidNum}];
|
$MidNum = [\p{Word_Break = MidNum}];
|
||||||
$Numeric = [\p{Word_Break = Numeric}];
|
$Numeric = [\p{Word_Break = Numeric}];
|
||||||
$ExtendNumLet = [\p{Word_Break = ExtendNumLet}];
|
$ExtendNumLet = [\p{Word_Break = ExtendNumLet}];
|
||||||
$MidNumLetEx = $MidNumLet ($Extend | $Format)*;
|
$MidNumLetEx = $MidNumLet ($Extend | $Format)*;
|
||||||
$MidNumEx = $MidNum ($Extend | $Format)*;
|
$MidNumEx = $MidNum ($Extend | $Format)*;
|
||||||
$NumericEx = $Numeric ($Extend | $Format)*;
|
$NumericEx = $Numeric ($Extend | $Format)*;
|
||||||
$ExtendNumLetEx = $ExtendNumLet ($Extend | $Format)*;
|
$ExtendNumLetEx = $ExtendNumLet ($Extend | $Format)*;
|
||||||
|
|
||||||
!!forward;
|
!!forward;
|
||||||
|
|
||||||
$LaoJoinedSyllableEx {200};
|
$LaoJoinedSyllableEx {200};
|
||||||
# default numeric rules
|
# default numeric rules
|
||||||
$NumericEx $ExtendNumLetEx? (($MidNumEx | $MidNumLetEx)? $NumericEx $ExtendNumLetEx?)* {100};
|
$NumericEx $ExtendNumLetEx? (($MidNumEx | $MidNumLetEx)? $NumericEx $ExtendNumLetEx?)* {100};
|
||||||
|
|
|
@ -1,50 +1,50 @@
|
||||||
#
|
#
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
# Licensed to the Apache Software Foundation (ASF) under one or more
|
||||||
# contributor license agreements. See the NOTICE file distributed with
|
# contributor license agreements. See the NOTICE file distributed with
|
||||||
# this work for additional information regarding copyright ownership.
|
# this work for additional information regarding copyright ownership.
|
||||||
# The ASF licenses this file to You under the Apache License, Version 2.0
|
# 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 not use this file except in compliance with
|
||||||
# the License. You may obtain a copy of the License at
|
# the License. You may obtain a copy of the License at
|
||||||
#
|
#
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
#
|
#
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# Parses Myanmar text, with syllable as token.
|
# Parses Myanmar text, with syllable as token.
|
||||||
#
|
#
|
||||||
|
|
||||||
$Cons = [[:Other_Letter:]&[:Myanmar:]];
|
$Cons = [[:Other_Letter:]&[:Myanmar:]];
|
||||||
$Virama = [\u1039];
|
$Virama = [\u1039];
|
||||||
$Asat = [\u103A];
|
$Asat = [\u103A];
|
||||||
|
|
||||||
$WordJoin = [:Line_Break=Word_Joiner:];
|
$WordJoin = [:Line_Break=Word_Joiner:];
|
||||||
|
|
||||||
#
|
#
|
||||||
# default numerical definitions
|
# default numerical definitions
|
||||||
#
|
#
|
||||||
$Extend = [\p{Word_Break = Extend}];
|
$Extend = [\p{Word_Break = Extend}];
|
||||||
$Format = [\p{Word_Break = Format}];
|
$Format = [\p{Word_Break = Format}];
|
||||||
$MidNumLet = [\p{Word_Break = MidNumLet}];
|
$MidNumLet = [\p{Word_Break = MidNumLet}];
|
||||||
$MidNum = [\p{Word_Break = MidNum}];
|
$MidNum = [\p{Word_Break = MidNum}];
|
||||||
$Numeric = [\p{Word_Break = Numeric}];
|
$Numeric = [\p{Word_Break = Numeric}];
|
||||||
$ExtendNumLet = [\p{Word_Break = ExtendNumLet}];
|
$ExtendNumLet = [\p{Word_Break = ExtendNumLet}];
|
||||||
$MidNumLetEx = $MidNumLet ($Extend | $Format)*;
|
$MidNumLetEx = $MidNumLet ($Extend | $Format)*;
|
||||||
$MidNumEx = $MidNum ($Extend | $Format)*;
|
$MidNumEx = $MidNum ($Extend | $Format)*;
|
||||||
$NumericEx = $Numeric ($Extend | $Format)*;
|
$NumericEx = $Numeric ($Extend | $Format)*;
|
||||||
$ExtendNumLetEx = $ExtendNumLet ($Extend | $Format)*;
|
$ExtendNumLetEx = $ExtendNumLet ($Extend | $Format)*;
|
||||||
|
|
||||||
$ConsEx = $Cons ($Extend | $Format)*;
|
$ConsEx = $Cons ($Extend | $Format)*;
|
||||||
$AsatEx = $Cons $Asat ($Virama $ConsEx)? ($Extend | $Format)*;
|
$AsatEx = $Cons $Asat ($Virama $ConsEx)? ($Extend | $Format)*;
|
||||||
$MyanmarSyllableEx = $ConsEx ($Virama $ConsEx)? ($AsatEx)*;
|
$MyanmarSyllableEx = $ConsEx ($Virama $ConsEx)? ($AsatEx)*;
|
||||||
$MyanmarJoinedSyllableEx = $MyanmarSyllableEx ($WordJoin $MyanmarSyllableEx)*;
|
$MyanmarJoinedSyllableEx = $MyanmarSyllableEx ($WordJoin $MyanmarSyllableEx)*;
|
||||||
|
|
||||||
!!forward;
|
!!forward;
|
||||||
$MyanmarJoinedSyllableEx {200};
|
$MyanmarJoinedSyllableEx {200};
|
||||||
|
|
||||||
# default numeric rules
|
# default numeric rules
|
||||||
$NumericEx $ExtendNumLetEx? (($MidNumEx | $MidNumLetEx)? $NumericEx $ExtendNumLetEx?)* {100};
|
$NumericEx $ExtendNumLetEx? (($MidNumEx | $MidNumLetEx)? $NumericEx $ExtendNumLetEx?)* {100};
|
||||||
|
|
|
@ -1,202 +1,202 @@
|
||||||
|
|
||||||
Apache License
|
Apache License
|
||||||
Version 2.0, January 2004
|
Version 2.0, January 2004
|
||||||
http://www.apache.org/licenses/
|
http://www.apache.org/licenses/
|
||||||
|
|
||||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||||
|
|
||||||
1. Definitions.
|
1. Definitions.
|
||||||
|
|
||||||
"License" shall mean the terms and conditions for use, reproduction,
|
"License" shall mean the terms and conditions for use, reproduction,
|
||||||
and distribution as defined by Sections 1 through 9 of this document.
|
and distribution as defined by Sections 1 through 9 of this document.
|
||||||
|
|
||||||
"Licensor" shall mean the copyright owner or entity authorized by
|
"Licensor" shall mean the copyright owner or entity authorized by
|
||||||
the copyright owner that is granting the License.
|
the copyright owner that is granting the License.
|
||||||
|
|
||||||
"Legal Entity" shall mean the union of the acting entity and all
|
"Legal Entity" shall mean the union of the acting entity and all
|
||||||
other entities that control, are controlled by, or are under common
|
other entities that control, are controlled by, or are under common
|
||||||
control with that entity. For the purposes of this definition,
|
control with that entity. For the purposes of this definition,
|
||||||
"control" means (i) the power, direct or indirect, to cause the
|
"control" means (i) the power, direct or indirect, to cause the
|
||||||
direction or management of such entity, whether by contract or
|
direction or management of such entity, whether by contract or
|
||||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||||
|
|
||||||
"You" (or "Your") shall mean an individual or Legal Entity
|
"You" (or "Your") shall mean an individual or Legal Entity
|
||||||
exercising permissions granted by this License.
|
exercising permissions granted by this License.
|
||||||
|
|
||||||
"Source" form shall mean the preferred form for making modifications,
|
"Source" form shall mean the preferred form for making modifications,
|
||||||
including but not limited to software source code, documentation
|
including but not limited to software source code, documentation
|
||||||
source, and configuration files.
|
source, and configuration files.
|
||||||
|
|
||||||
"Object" form shall mean any form resulting from mechanical
|
"Object" form shall mean any form resulting from mechanical
|
||||||
transformation or translation of a Source form, including but
|
transformation or translation of a Source form, including but
|
||||||
not limited to compiled object code, generated documentation,
|
not limited to compiled object code, generated documentation,
|
||||||
and conversions to other media types.
|
and conversions to other media types.
|
||||||
|
|
||||||
"Work" shall mean the work of authorship, whether in Source or
|
"Work" shall mean the work of authorship, whether in Source or
|
||||||
Object form, made available under the License, as indicated by a
|
Object form, made available under the License, as indicated by a
|
||||||
copyright notice that is included in or attached to the work
|
copyright notice that is included in or attached to the work
|
||||||
(an example is provided in the Appendix below).
|
(an example is provided in the Appendix below).
|
||||||
|
|
||||||
"Derivative Works" shall mean any work, whether in Source or Object
|
"Derivative Works" shall mean any work, whether in Source or Object
|
||||||
form, that is based on (or derived from) the Work and for which the
|
form, that is based on (or derived from) the Work and for which the
|
||||||
editorial revisions, annotations, elaborations, or other modifications
|
editorial revisions, annotations, elaborations, or other modifications
|
||||||
represent, as a whole, an original work of authorship. For the purposes
|
represent, as a whole, an original work of authorship. For the purposes
|
||||||
of this License, Derivative Works shall not include works that remain
|
of this License, Derivative Works shall not include works that remain
|
||||||
separable from, or merely link (or bind by name) to the interfaces of,
|
separable from, or merely link (or bind by name) to the interfaces of,
|
||||||
the Work and Derivative Works thereof.
|
the Work and Derivative Works thereof.
|
||||||
|
|
||||||
"Contribution" shall mean any work of authorship, including
|
"Contribution" shall mean any work of authorship, including
|
||||||
the original version of the Work and any modifications or additions
|
the original version of the Work and any modifications or additions
|
||||||
to that Work or Derivative Works thereof, that is intentionally
|
to that Work or Derivative Works thereof, that is intentionally
|
||||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||||
or by an individual or Legal Entity authorized to submit on behalf of
|
or by an individual or Legal Entity authorized to submit on behalf of
|
||||||
the copyright owner. For the purposes of this definition, "submitted"
|
the copyright owner. For the purposes of this definition, "submitted"
|
||||||
means any form of electronic, verbal, or written communication sent
|
means any form of electronic, verbal, or written communication sent
|
||||||
to the Licensor or its representatives, including but not limited to
|
to the Licensor or its representatives, including but not limited to
|
||||||
communication on electronic mailing lists, source code control systems,
|
communication on electronic mailing lists, source code control systems,
|
||||||
and issue tracking systems that are managed by, or on behalf of, the
|
and issue tracking systems that are managed by, or on behalf of, the
|
||||||
Licensor for the purpose of discussing and improving the Work, but
|
Licensor for the purpose of discussing and improving the Work, but
|
||||||
excluding communication that is conspicuously marked or otherwise
|
excluding communication that is conspicuously marked or otherwise
|
||||||
designated in writing by the copyright owner as "Not a Contribution."
|
designated in writing by the copyright owner as "Not a Contribution."
|
||||||
|
|
||||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||||
on behalf of whom a Contribution has been received by Licensor and
|
on behalf of whom a Contribution has been received by Licensor and
|
||||||
subsequently incorporated within the Work.
|
subsequently incorporated within the Work.
|
||||||
|
|
||||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
copyright license to reproduce, prepare Derivative Works of,
|
copyright license to reproduce, prepare Derivative Works of,
|
||||||
publicly display, publicly perform, sublicense, and distribute the
|
publicly display, publicly perform, sublicense, and distribute the
|
||||||
Work and such Derivative Works in Source or Object form.
|
Work and such Derivative Works in Source or Object form.
|
||||||
|
|
||||||
3. Grant of Patent License. Subject to the terms and conditions of
|
3. Grant of Patent License. Subject to the terms and conditions of
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
(except as stated in this section) patent license to make, have made,
|
(except as stated in this section) patent license to make, have made,
|
||||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||||
where such license applies only to those patent claims licensable
|
where such license applies only to those patent claims licensable
|
||||||
by such Contributor that are necessarily infringed by their
|
by such Contributor that are necessarily infringed by their
|
||||||
Contribution(s) alone or by combination of their Contribution(s)
|
Contribution(s) alone or by combination of their Contribution(s)
|
||||||
with the Work to which such Contribution(s) was submitted. If You
|
with the Work to which such Contribution(s) was submitted. If You
|
||||||
institute patent litigation against any entity (including a
|
institute patent litigation against any entity (including a
|
||||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||||
or a Contribution incorporated within the Work constitutes direct
|
or a Contribution incorporated within the Work constitutes direct
|
||||||
or contributory patent infringement, then any patent licenses
|
or contributory patent infringement, then any patent licenses
|
||||||
granted to You under this License for that Work shall terminate
|
granted to You under this License for that Work shall terminate
|
||||||
as of the date such litigation is filed.
|
as of the date such litigation is filed.
|
||||||
|
|
||||||
4. Redistribution. You may reproduce and distribute copies of the
|
4. Redistribution. You may reproduce and distribute copies of the
|
||||||
Work or Derivative Works thereof in any medium, with or without
|
Work or Derivative Works thereof in any medium, with or without
|
||||||
modifications, and in Source or Object form, provided that You
|
modifications, and in Source or Object form, provided that You
|
||||||
meet the following conditions:
|
meet the following conditions:
|
||||||
|
|
||||||
(a) You must give any other recipients of the Work or
|
(a) You must give any other recipients of the Work or
|
||||||
Derivative Works a copy of this License; and
|
Derivative Works a copy of this License; and
|
||||||
|
|
||||||
(b) You must cause any modified files to carry prominent notices
|
(b) You must cause any modified files to carry prominent notices
|
||||||
stating that You changed the files; and
|
stating that You changed the files; and
|
||||||
|
|
||||||
(c) You must retain, in the Source form of any Derivative Works
|
(c) You must retain, in the Source form of any Derivative Works
|
||||||
that You distribute, all copyright, patent, trademark, and
|
that You distribute, all copyright, patent, trademark, and
|
||||||
attribution notices from the Source form of the Work,
|
attribution notices from the Source form of the Work,
|
||||||
excluding those notices that do not pertain to any part of
|
excluding those notices that do not pertain to any part of
|
||||||
the Derivative Works; and
|
the Derivative Works; and
|
||||||
|
|
||||||
(d) If the Work includes a "NOTICE" text file as part of its
|
(d) If the Work includes a "NOTICE" text file as part of its
|
||||||
distribution, then any Derivative Works that You distribute must
|
distribution, then any Derivative Works that You distribute must
|
||||||
include a readable copy of the attribution notices contained
|
include a readable copy of the attribution notices contained
|
||||||
within such NOTICE file, excluding those notices that do not
|
within such NOTICE file, excluding those notices that do not
|
||||||
pertain to any part of the Derivative Works, in at least one
|
pertain to any part of the Derivative Works, in at least one
|
||||||
of the following places: within a NOTICE text file distributed
|
of the following places: within a NOTICE text file distributed
|
||||||
as part of the Derivative Works; within the Source form or
|
as part of the Derivative Works; within the Source form or
|
||||||
documentation, if provided along with the Derivative Works; or,
|
documentation, if provided along with the Derivative Works; or,
|
||||||
within a display generated by the Derivative Works, if and
|
within a display generated by the Derivative Works, if and
|
||||||
wherever such third-party notices normally appear. The contents
|
wherever such third-party notices normally appear. The contents
|
||||||
of the NOTICE file are for informational purposes only and
|
of the NOTICE file are for informational purposes only and
|
||||||
do not modify the License. You may add Your own attribution
|
do not modify the License. You may add Your own attribution
|
||||||
notices within Derivative Works that You distribute, alongside
|
notices within Derivative Works that You distribute, alongside
|
||||||
or as an addendum to the NOTICE text from the Work, provided
|
or as an addendum to the NOTICE text from the Work, provided
|
||||||
that such additional attribution notices cannot be construed
|
that such additional attribution notices cannot be construed
|
||||||
as modifying the License.
|
as modifying the License.
|
||||||
|
|
||||||
You may add Your own copyright statement to Your modifications and
|
You may add Your own copyright statement to Your modifications and
|
||||||
may provide additional or different license terms and conditions
|
may provide additional or different license terms and conditions
|
||||||
for use, reproduction, or distribution of Your modifications, or
|
for use, reproduction, or distribution of Your modifications, or
|
||||||
for any such Derivative Works as a whole, provided Your use,
|
for any such Derivative Works as a whole, provided Your use,
|
||||||
reproduction, and distribution of the Work otherwise complies with
|
reproduction, and distribution of the Work otherwise complies with
|
||||||
the conditions stated in this License.
|
the conditions stated in this License.
|
||||||
|
|
||||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||||
any Contribution intentionally submitted for inclusion in the Work
|
any Contribution intentionally submitted for inclusion in the Work
|
||||||
by You to the Licensor shall be under the terms and conditions of
|
by You to the Licensor shall be under the terms and conditions of
|
||||||
this License, without any additional terms or conditions.
|
this License, without any additional terms or conditions.
|
||||||
Notwithstanding the above, nothing herein shall supersede or modify
|
Notwithstanding the above, nothing herein shall supersede or modify
|
||||||
the terms of any separate license agreement you may have executed
|
the terms of any separate license agreement you may have executed
|
||||||
with Licensor regarding such Contributions.
|
with Licensor regarding such Contributions.
|
||||||
|
|
||||||
6. Trademarks. This License does not grant permission to use the trade
|
6. Trademarks. This License does not grant permission to use the trade
|
||||||
names, trademarks, service marks, or product names of the Licensor,
|
names, trademarks, service marks, or product names of the Licensor,
|
||||||
except as required for reasonable and customary use in describing the
|
except as required for reasonable and customary use in describing the
|
||||||
origin of the Work and reproducing the content of the NOTICE file.
|
origin of the Work and reproducing the content of the NOTICE file.
|
||||||
|
|
||||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||||
agreed to in writing, Licensor provides the Work (and each
|
agreed to in writing, Licensor provides the Work (and each
|
||||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||||
implied, including, without limitation, any warranties or conditions
|
implied, including, without limitation, any warranties or conditions
|
||||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||||
appropriateness of using or redistributing the Work and assume any
|
appropriateness of using or redistributing the Work and assume any
|
||||||
risks associated with Your exercise of permissions under this License.
|
risks associated with Your exercise of permissions under this License.
|
||||||
|
|
||||||
8. Limitation of Liability. In no event and under no legal theory,
|
8. Limitation of Liability. In no event and under no legal theory,
|
||||||
whether in tort (including negligence), contract, or otherwise,
|
whether in tort (including negligence), contract, or otherwise,
|
||||||
unless required by applicable law (such as deliberate and grossly
|
unless required by applicable law (such as deliberate and grossly
|
||||||
negligent acts) or agreed to in writing, shall any Contributor be
|
negligent acts) or agreed to in writing, shall any Contributor be
|
||||||
liable to You for damages, including any direct, indirect, special,
|
liable to You for damages, including any direct, indirect, special,
|
||||||
incidental, or consequential damages of any character arising as a
|
incidental, or consequential damages of any character arising as a
|
||||||
result of this License or out of the use or inability to use the
|
result of this License or out of the use or inability to use the
|
||||||
Work (including but not limited to damages for loss of goodwill,
|
Work (including but not limited to damages for loss of goodwill,
|
||||||
work stoppage, computer failure or malfunction, or any and all
|
work stoppage, computer failure or malfunction, or any and all
|
||||||
other commercial damages or losses), even if such Contributor
|
other commercial damages or losses), even if such Contributor
|
||||||
has been advised of the possibility of such damages.
|
has been advised of the possibility of such damages.
|
||||||
|
|
||||||
9. Accepting Warranty or Additional Liability. While redistributing
|
9. Accepting Warranty or Additional Liability. While redistributing
|
||||||
the Work or Derivative Works thereof, You may choose to offer,
|
the Work or Derivative Works thereof, You may choose to offer,
|
||||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||||
or other liability obligations and/or rights consistent with this
|
or other liability obligations and/or rights consistent with this
|
||||||
License. However, in accepting such obligations, You may act only
|
License. However, in accepting such obligations, You may act only
|
||||||
on Your own behalf and on Your sole responsibility, not on behalf
|
on Your own behalf and on Your sole responsibility, not on behalf
|
||||||
of any other Contributor, and only if You agree to indemnify,
|
of any other Contributor, and only if You agree to indemnify,
|
||||||
defend, and hold each Contributor harmless for any liability
|
defend, and hold each Contributor harmless for any liability
|
||||||
incurred by, or claims asserted against, such Contributor by reason
|
incurred by, or claims asserted against, such Contributor by reason
|
||||||
of your accepting any such warranty or additional liability.
|
of your accepting any such warranty or additional liability.
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
APPENDIX: How to apply the Apache License to your work.
|
APPENDIX: How to apply the Apache License to your work.
|
||||||
|
|
||||||
To apply the Apache License to your work, attach the following
|
To apply the Apache License to your work, attach the following
|
||||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||||
replaced with your own identifying information. (Don't include
|
replaced with your own identifying information. (Don't include
|
||||||
the brackets!) The text should be enclosed in the appropriate
|
the brackets!) The text should be enclosed in the appropriate
|
||||||
comment syntax for the file format. We also recommend that a
|
comment syntax for the file format. We also recommend that a
|
||||||
file or class name and description of purpose be included on the
|
file or class name and description of purpose be included on the
|
||||||
same "printed page" as the copyright notice for easier
|
same "printed page" as the copyright notice for easier
|
||||||
identification within third-party archives.
|
identification within third-party archives.
|
||||||
|
|
||||||
Copyright [yyyy] [name of copyright owner]
|
Copyright [yyyy] [name of copyright owner]
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
You may obtain a copy of the License at
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
Unless required by applicable law or agreed to in writing, software
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
See the License for the specific language governing permissions and
|
See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
|
|
|
@ -1,202 +1,202 @@
|
||||||
|
|
||||||
Apache License
|
Apache License
|
||||||
Version 2.0, January 2004
|
Version 2.0, January 2004
|
||||||
http://www.apache.org/licenses/
|
http://www.apache.org/licenses/
|
||||||
|
|
||||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||||
|
|
||||||
1. Definitions.
|
1. Definitions.
|
||||||
|
|
||||||
"License" shall mean the terms and conditions for use, reproduction,
|
"License" shall mean the terms and conditions for use, reproduction,
|
||||||
and distribution as defined by Sections 1 through 9 of this document.
|
and distribution as defined by Sections 1 through 9 of this document.
|
||||||
|
|
||||||
"Licensor" shall mean the copyright owner or entity authorized by
|
"Licensor" shall mean the copyright owner or entity authorized by
|
||||||
the copyright owner that is granting the License.
|
the copyright owner that is granting the License.
|
||||||
|
|
||||||
"Legal Entity" shall mean the union of the acting entity and all
|
"Legal Entity" shall mean the union of the acting entity and all
|
||||||
other entities that control, are controlled by, or are under common
|
other entities that control, are controlled by, or are under common
|
||||||
control with that entity. For the purposes of this definition,
|
control with that entity. For the purposes of this definition,
|
||||||
"control" means (i) the power, direct or indirect, to cause the
|
"control" means (i) the power, direct or indirect, to cause the
|
||||||
direction or management of such entity, whether by contract or
|
direction or management of such entity, whether by contract or
|
||||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||||
|
|
||||||
"You" (or "Your") shall mean an individual or Legal Entity
|
"You" (or "Your") shall mean an individual or Legal Entity
|
||||||
exercising permissions granted by this License.
|
exercising permissions granted by this License.
|
||||||
|
|
||||||
"Source" form shall mean the preferred form for making modifications,
|
"Source" form shall mean the preferred form for making modifications,
|
||||||
including but not limited to software source code, documentation
|
including but not limited to software source code, documentation
|
||||||
source, and configuration files.
|
source, and configuration files.
|
||||||
|
|
||||||
"Object" form shall mean any form resulting from mechanical
|
"Object" form shall mean any form resulting from mechanical
|
||||||
transformation or translation of a Source form, including but
|
transformation or translation of a Source form, including but
|
||||||
not limited to compiled object code, generated documentation,
|
not limited to compiled object code, generated documentation,
|
||||||
and conversions to other media types.
|
and conversions to other media types.
|
||||||
|
|
||||||
"Work" shall mean the work of authorship, whether in Source or
|
"Work" shall mean the work of authorship, whether in Source or
|
||||||
Object form, made available under the License, as indicated by a
|
Object form, made available under the License, as indicated by a
|
||||||
copyright notice that is included in or attached to the work
|
copyright notice that is included in or attached to the work
|
||||||
(an example is provided in the Appendix below).
|
(an example is provided in the Appendix below).
|
||||||
|
|
||||||
"Derivative Works" shall mean any work, whether in Source or Object
|
"Derivative Works" shall mean any work, whether in Source or Object
|
||||||
form, that is based on (or derived from) the Work and for which the
|
form, that is based on (or derived from) the Work and for which the
|
||||||
editorial revisions, annotations, elaborations, or other modifications
|
editorial revisions, annotations, elaborations, or other modifications
|
||||||
represent, as a whole, an original work of authorship. For the purposes
|
represent, as a whole, an original work of authorship. For the purposes
|
||||||
of this License, Derivative Works shall not include works that remain
|
of this License, Derivative Works shall not include works that remain
|
||||||
separable from, or merely link (or bind by name) to the interfaces of,
|
separable from, or merely link (or bind by name) to the interfaces of,
|
||||||
the Work and Derivative Works thereof.
|
the Work and Derivative Works thereof.
|
||||||
|
|
||||||
"Contribution" shall mean any work of authorship, including
|
"Contribution" shall mean any work of authorship, including
|
||||||
the original version of the Work and any modifications or additions
|
the original version of the Work and any modifications or additions
|
||||||
to that Work or Derivative Works thereof, that is intentionally
|
to that Work or Derivative Works thereof, that is intentionally
|
||||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||||
or by an individual or Legal Entity authorized to submit on behalf of
|
or by an individual or Legal Entity authorized to submit on behalf of
|
||||||
the copyright owner. For the purposes of this definition, "submitted"
|
the copyright owner. For the purposes of this definition, "submitted"
|
||||||
means any form of electronic, verbal, or written communication sent
|
means any form of electronic, verbal, or written communication sent
|
||||||
to the Licensor or its representatives, including but not limited to
|
to the Licensor or its representatives, including but not limited to
|
||||||
communication on electronic mailing lists, source code control systems,
|
communication on electronic mailing lists, source code control systems,
|
||||||
and issue tracking systems that are managed by, or on behalf of, the
|
and issue tracking systems that are managed by, or on behalf of, the
|
||||||
Licensor for the purpose of discussing and improving the Work, but
|
Licensor for the purpose of discussing and improving the Work, but
|
||||||
excluding communication that is conspicuously marked or otherwise
|
excluding communication that is conspicuously marked or otherwise
|
||||||
designated in writing by the copyright owner as "Not a Contribution."
|
designated in writing by the copyright owner as "Not a Contribution."
|
||||||
|
|
||||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||||
on behalf of whom a Contribution has been received by Licensor and
|
on behalf of whom a Contribution has been received by Licensor and
|
||||||
subsequently incorporated within the Work.
|
subsequently incorporated within the Work.
|
||||||
|
|
||||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
copyright license to reproduce, prepare Derivative Works of,
|
copyright license to reproduce, prepare Derivative Works of,
|
||||||
publicly display, publicly perform, sublicense, and distribute the
|
publicly display, publicly perform, sublicense, and distribute the
|
||||||
Work and such Derivative Works in Source or Object form.
|
Work and such Derivative Works in Source or Object form.
|
||||||
|
|
||||||
3. Grant of Patent License. Subject to the terms and conditions of
|
3. Grant of Patent License. Subject to the terms and conditions of
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
(except as stated in this section) patent license to make, have made,
|
(except as stated in this section) patent license to make, have made,
|
||||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||||
where such license applies only to those patent claims licensable
|
where such license applies only to those patent claims licensable
|
||||||
by such Contributor that are necessarily infringed by their
|
by such Contributor that are necessarily infringed by their
|
||||||
Contribution(s) alone or by combination of their Contribution(s)
|
Contribution(s) alone or by combination of their Contribution(s)
|
||||||
with the Work to which such Contribution(s) was submitted. If You
|
with the Work to which such Contribution(s) was submitted. If You
|
||||||
institute patent litigation against any entity (including a
|
institute patent litigation against any entity (including a
|
||||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||||
or a Contribution incorporated within the Work constitutes direct
|
or a Contribution incorporated within the Work constitutes direct
|
||||||
or contributory patent infringement, then any patent licenses
|
or contributory patent infringement, then any patent licenses
|
||||||
granted to You under this License for that Work shall terminate
|
granted to You under this License for that Work shall terminate
|
||||||
as of the date such litigation is filed.
|
as of the date such litigation is filed.
|
||||||
|
|
||||||
4. Redistribution. You may reproduce and distribute copies of the
|
4. Redistribution. You may reproduce and distribute copies of the
|
||||||
Work or Derivative Works thereof in any medium, with or without
|
Work or Derivative Works thereof in any medium, with or without
|
||||||
modifications, and in Source or Object form, provided that You
|
modifications, and in Source or Object form, provided that You
|
||||||
meet the following conditions:
|
meet the following conditions:
|
||||||
|
|
||||||
(a) You must give any other recipients of the Work or
|
(a) You must give any other recipients of the Work or
|
||||||
Derivative Works a copy of this License; and
|
Derivative Works a copy of this License; and
|
||||||
|
|
||||||
(b) You must cause any modified files to carry prominent notices
|
(b) You must cause any modified files to carry prominent notices
|
||||||
stating that You changed the files; and
|
stating that You changed the files; and
|
||||||
|
|
||||||
(c) You must retain, in the Source form of any Derivative Works
|
(c) You must retain, in the Source form of any Derivative Works
|
||||||
that You distribute, all copyright, patent, trademark, and
|
that You distribute, all copyright, patent, trademark, and
|
||||||
attribution notices from the Source form of the Work,
|
attribution notices from the Source form of the Work,
|
||||||
excluding those notices that do not pertain to any part of
|
excluding those notices that do not pertain to any part of
|
||||||
the Derivative Works; and
|
the Derivative Works; and
|
||||||
|
|
||||||
(d) If the Work includes a "NOTICE" text file as part of its
|
(d) If the Work includes a "NOTICE" text file as part of its
|
||||||
distribution, then any Derivative Works that You distribute must
|
distribution, then any Derivative Works that You distribute must
|
||||||
include a readable copy of the attribution notices contained
|
include a readable copy of the attribution notices contained
|
||||||
within such NOTICE file, excluding those notices that do not
|
within such NOTICE file, excluding those notices that do not
|
||||||
pertain to any part of the Derivative Works, in at least one
|
pertain to any part of the Derivative Works, in at least one
|
||||||
of the following places: within a NOTICE text file distributed
|
of the following places: within a NOTICE text file distributed
|
||||||
as part of the Derivative Works; within the Source form or
|
as part of the Derivative Works; within the Source form or
|
||||||
documentation, if provided along with the Derivative Works; or,
|
documentation, if provided along with the Derivative Works; or,
|
||||||
within a display generated by the Derivative Works, if and
|
within a display generated by the Derivative Works, if and
|
||||||
wherever such third-party notices normally appear. The contents
|
wherever such third-party notices normally appear. The contents
|
||||||
of the NOTICE file are for informational purposes only and
|
of the NOTICE file are for informational purposes only and
|
||||||
do not modify the License. You may add Your own attribution
|
do not modify the License. You may add Your own attribution
|
||||||
notices within Derivative Works that You distribute, alongside
|
notices within Derivative Works that You distribute, alongside
|
||||||
or as an addendum to the NOTICE text from the Work, provided
|
or as an addendum to the NOTICE text from the Work, provided
|
||||||
that such additional attribution notices cannot be construed
|
that such additional attribution notices cannot be construed
|
||||||
as modifying the License.
|
as modifying the License.
|
||||||
|
|
||||||
You may add Your own copyright statement to Your modifications and
|
You may add Your own copyright statement to Your modifications and
|
||||||
may provide additional or different license terms and conditions
|
may provide additional or different license terms and conditions
|
||||||
for use, reproduction, or distribution of Your modifications, or
|
for use, reproduction, or distribution of Your modifications, or
|
||||||
for any such Derivative Works as a whole, provided Your use,
|
for any such Derivative Works as a whole, provided Your use,
|
||||||
reproduction, and distribution of the Work otherwise complies with
|
reproduction, and distribution of the Work otherwise complies with
|
||||||
the conditions stated in this License.
|
the conditions stated in this License.
|
||||||
|
|
||||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||||
any Contribution intentionally submitted for inclusion in the Work
|
any Contribution intentionally submitted for inclusion in the Work
|
||||||
by You to the Licensor shall be under the terms and conditions of
|
by You to the Licensor shall be under the terms and conditions of
|
||||||
this License, without any additional terms or conditions.
|
this License, without any additional terms or conditions.
|
||||||
Notwithstanding the above, nothing herein shall supersede or modify
|
Notwithstanding the above, nothing herein shall supersede or modify
|
||||||
the terms of any separate license agreement you may have executed
|
the terms of any separate license agreement you may have executed
|
||||||
with Licensor regarding such Contributions.
|
with Licensor regarding such Contributions.
|
||||||
|
|
||||||
6. Trademarks. This License does not grant permission to use the trade
|
6. Trademarks. This License does not grant permission to use the trade
|
||||||
names, trademarks, service marks, or product names of the Licensor,
|
names, trademarks, service marks, or product names of the Licensor,
|
||||||
except as required for reasonable and customary use in describing the
|
except as required for reasonable and customary use in describing the
|
||||||
origin of the Work and reproducing the content of the NOTICE file.
|
origin of the Work and reproducing the content of the NOTICE file.
|
||||||
|
|
||||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||||
agreed to in writing, Licensor provides the Work (and each
|
agreed to in writing, Licensor provides the Work (and each
|
||||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||||
implied, including, without limitation, any warranties or conditions
|
implied, including, without limitation, any warranties or conditions
|
||||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||||
appropriateness of using or redistributing the Work and assume any
|
appropriateness of using or redistributing the Work and assume any
|
||||||
risks associated with Your exercise of permissions under this License.
|
risks associated with Your exercise of permissions under this License.
|
||||||
|
|
||||||
8. Limitation of Liability. In no event and under no legal theory,
|
8. Limitation of Liability. In no event and under no legal theory,
|
||||||
whether in tort (including negligence), contract, or otherwise,
|
whether in tort (including negligence), contract, or otherwise,
|
||||||
unless required by applicable law (such as deliberate and grossly
|
unless required by applicable law (such as deliberate and grossly
|
||||||
negligent acts) or agreed to in writing, shall any Contributor be
|
negligent acts) or agreed to in writing, shall any Contributor be
|
||||||
liable to You for damages, including any direct, indirect, special,
|
liable to You for damages, including any direct, indirect, special,
|
||||||
incidental, or consequential damages of any character arising as a
|
incidental, or consequential damages of any character arising as a
|
||||||
result of this License or out of the use or inability to use the
|
result of this License or out of the use or inability to use the
|
||||||
Work (including but not limited to damages for loss of goodwill,
|
Work (including but not limited to damages for loss of goodwill,
|
||||||
work stoppage, computer failure or malfunction, or any and all
|
work stoppage, computer failure or malfunction, or any and all
|
||||||
other commercial damages or losses), even if such Contributor
|
other commercial damages or losses), even if such Contributor
|
||||||
has been advised of the possibility of such damages.
|
has been advised of the possibility of such damages.
|
||||||
|
|
||||||
9. Accepting Warranty or Additional Liability. While redistributing
|
9. Accepting Warranty or Additional Liability. While redistributing
|
||||||
the Work or Derivative Works thereof, You may choose to offer,
|
the Work or Derivative Works thereof, You may choose to offer,
|
||||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||||
or other liability obligations and/or rights consistent with this
|
or other liability obligations and/or rights consistent with this
|
||||||
License. However, in accepting such obligations, You may act only
|
License. However, in accepting such obligations, You may act only
|
||||||
on Your own behalf and on Your sole responsibility, not on behalf
|
on Your own behalf and on Your sole responsibility, not on behalf
|
||||||
of any other Contributor, and only if You agree to indemnify,
|
of any other Contributor, and only if You agree to indemnify,
|
||||||
defend, and hold each Contributor harmless for any liability
|
defend, and hold each Contributor harmless for any liability
|
||||||
incurred by, or claims asserted against, such Contributor by reason
|
incurred by, or claims asserted against, such Contributor by reason
|
||||||
of your accepting any such warranty or additional liability.
|
of your accepting any such warranty or additional liability.
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
APPENDIX: How to apply the Apache License to your work.
|
APPENDIX: How to apply the Apache License to your work.
|
||||||
|
|
||||||
To apply the Apache License to your work, attach the following
|
To apply the Apache License to your work, attach the following
|
||||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||||
replaced with your own identifying information. (Don't include
|
replaced with your own identifying information. (Don't include
|
||||||
the brackets!) The text should be enclosed in the appropriate
|
the brackets!) The text should be enclosed in the appropriate
|
||||||
comment syntax for the file format. We also recommend that a
|
comment syntax for the file format. We also recommend that a
|
||||||
file or class name and description of purpose be included on the
|
file or class name and description of purpose be included on the
|
||||||
same "printed page" as the copyright notice for easier
|
same "printed page" as the copyright notice for easier
|
||||||
identification within third-party archives.
|
identification within third-party archives.
|
||||||
|
|
||||||
Copyright [yyyy] [name of copyright owner]
|
Copyright [yyyy] [name of copyright owner]
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
You may obtain a copy of the License at
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
Unless required by applicable law or agreed to in writing, software
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
See the License for the specific language governing permissions and
|
See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
Apache Commons Lang
|
Apache Commons Lang
|
||||||
Copyright 2001-2008 The Apache Software Foundation
|
Copyright 2001-2008 The Apache Software Foundation
|
||||||
|
|
||||||
This product includes software developed by
|
This product includes software developed by
|
||||||
The Apache Software Foundation (http://www.apache.org/).
|
The Apache Software Foundation (http://www.apache.org/).
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
customsolrstoplabel
|
customsolrstoplabel
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
customsolrstopword
|
customsolrstopword
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
customsolrstoplabelcustomdir
|
customsolrstoplabelcustomdir
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
customsolrstopwordcustomdir
|
customsolrstopwordcustomdir
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
|
|
||||||
jsonic - simple json encoder/decoder for java
|
jsonic - simple json encoder/decoder for java
|
||||||
http://jsonic.sourceforge.jp/
|
http://jsonic.sourceforge.jp/
|
|
@ -1,36 +1,36 @@
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Licensed to the Apache Software Foundation (ASF) under one
|
Licensed to the Apache Software Foundation (ASF) under one
|
||||||
or more contributor license agreements. See the NOTICE file
|
or more contributor license agreements. See the NOTICE file
|
||||||
distributed with this work for additional information
|
distributed with this work for additional information
|
||||||
regarding copyright ownership. The ASF licenses this file
|
regarding copyright ownership. The ASF licenses this file
|
||||||
to you under the Apache License, Version 2.0 (the
|
to you under the Apache License, Version 2.0 (the
|
||||||
"License"); you may not use this file except in compliance
|
"License"); you may not use this file except in compliance
|
||||||
with the License. You may obtain a copy of the License at
|
with the License. You may obtain a copy of the License at
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing,
|
Unless required by applicable law or agreed to in writing,
|
||||||
software distributed under the License is distributed on an
|
software distributed under the License is distributed on an
|
||||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
KIND, either express or implied. See the License for the
|
KIND, either express or implied. See the License for the
|
||||||
specific language governing permissions and limitations
|
specific language governing permissions and limitations
|
||||||
under the License.
|
under the License.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>org.apache.solr</groupId>
|
<groupId>org.apache.solr</groupId>
|
||||||
<artifactId>solr-parent</artifactId>
|
<artifactId>solr-parent</artifactId>
|
||||||
<version>@version@</version>
|
<version>@version@</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>org.apache.solr</groupId>
|
<groupId>org.apache.solr</groupId>
|
||||||
<artifactId>solr-jsonic</artifactId>
|
<artifactId>solr-jsonic</artifactId>
|
||||||
<name>Solr Specific JSONIC</name>
|
<name>Solr Specific JSONIC</name>
|
||||||
<version>@version@</version>
|
<version>@version@</version>
|
||||||
<description>Solr Specific JSONIC v1.2.0</description>
|
<description>Solr Specific JSONIC v1.2.0</description>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
langdetect
|
langdetect
|
||||||
|
|
||||||
http://code.google.com/p/language-detection/
|
http://code.google.com/p/language-detection/
|
|
@ -1,36 +1,36 @@
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Licensed to the Apache Software Foundation (ASF) under one
|
Licensed to the Apache Software Foundation (ASF) under one
|
||||||
or more contributor license agreements. See the NOTICE file
|
or more contributor license agreements. See the NOTICE file
|
||||||
distributed with this work for additional information
|
distributed with this work for additional information
|
||||||
regarding copyright ownership. The ASF licenses this file
|
regarding copyright ownership. The ASF licenses this file
|
||||||
to you under the Apache License, Version 2.0 (the
|
to you under the Apache License, Version 2.0 (the
|
||||||
"License"); you may not use this file except in compliance
|
"License"); you may not use this file except in compliance
|
||||||
with the License. You may obtain a copy of the License at
|
with the License. You may obtain a copy of the License at
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing,
|
Unless required by applicable law or agreed to in writing,
|
||||||
software distributed under the License is distributed on an
|
software distributed under the License is distributed on an
|
||||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
KIND, either express or implied. See the License for the
|
KIND, either express or implied. See the License for the
|
||||||
specific language governing permissions and limitations
|
specific language governing permissions and limitations
|
||||||
under the License.
|
under the License.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>org.apache.solr</groupId>
|
<groupId>org.apache.solr</groupId>
|
||||||
<artifactId>solr-parent</artifactId>
|
<artifactId>solr-parent</artifactId>
|
||||||
<version>@version@</version>
|
<version>@version@</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>org.apache.solr</groupId>
|
<groupId>org.apache.solr</groupId>
|
||||||
<artifactId>solr-langdetect</artifactId>
|
<artifactId>solr-langdetect</artifactId>
|
||||||
<name>Solr Specific langdetect</name>
|
<name>Solr Specific langdetect</name>
|
||||||
<version>@version@</version>
|
<version>@version@</version>
|
||||||
<description>Solr Specific langdetect r111</description>
|
<description>Solr Specific langdetect r111</description>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -1,44 +1,44 @@
|
||||||
package org.apache.solr.handler.component;
|
package org.apache.solr.handler.component;
|
||||||
/**
|
/**
|
||||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||||
* contributor license agreements. See the NOTICE file distributed with
|
* contributor license agreements. See the NOTICE file distributed with
|
||||||
* this work for additional information regarding copyright ownership.
|
* this work for additional information regarding copyright ownership.
|
||||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
* 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 not use this file except in compliance with
|
||||||
* the License. You may obtain a copy of the License at
|
* the License. You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import org.apache.commons.httpclient.HttpClient;
|
import org.apache.commons.httpclient.HttpClient;
|
||||||
import org.apache.solr.client.solrj.SolrRequest;
|
import org.apache.solr.client.solrj.SolrRequest;
|
||||||
import org.apache.solr.client.solrj.SolrResponse;
|
import org.apache.solr.client.solrj.SolrResponse;
|
||||||
import org.apache.solr.client.solrj.SolrServer;
|
import org.apache.solr.client.solrj.SolrServer;
|
||||||
import org.apache.solr.client.solrj.impl.CommonsHttpSolrServer;
|
import org.apache.solr.client.solrj.impl.CommonsHttpSolrServer;
|
||||||
import org.apache.solr.client.solrj.impl.LBHttpSolrServer;
|
import org.apache.solr.client.solrj.impl.LBHttpSolrServer;
|
||||||
import org.apache.solr.client.solrj.request.QueryRequest;
|
import org.apache.solr.client.solrj.request.QueryRequest;
|
||||||
import org.apache.solr.client.solrj.util.ClientUtils;
|
import org.apache.solr.client.solrj.util.ClientUtils;
|
||||||
import org.apache.solr.cloud.CloudDescriptor;
|
import org.apache.solr.cloud.CloudDescriptor;
|
||||||
import org.apache.solr.cloud.ZkController;
|
import org.apache.solr.cloud.ZkController;
|
||||||
import org.apache.solr.common.SolrException;
|
import org.apache.solr.common.SolrException;
|
||||||
import org.apache.solr.common.SolrException.ErrorCode;
|
import org.apache.solr.common.SolrException.ErrorCode;
|
||||||
import org.apache.solr.common.cloud.CloudState;
|
import org.apache.solr.common.cloud.CloudState;
|
||||||
import org.apache.solr.common.cloud.Slice;
|
import org.apache.solr.common.cloud.Slice;
|
||||||
import org.apache.solr.common.cloud.ZkCoreNodeProps;
|
import org.apache.solr.common.cloud.ZkCoreNodeProps;
|
||||||
import org.apache.solr.common.cloud.ZkNodeProps;
|
import org.apache.solr.common.cloud.ZkNodeProps;
|
||||||
import org.apache.solr.common.cloud.ZkStateReader;
|
import org.apache.solr.common.cloud.ZkStateReader;
|
||||||
import org.apache.solr.common.params.CommonParams;
|
import org.apache.solr.common.params.CommonParams;
|
||||||
import org.apache.solr.common.params.ModifiableSolrParams;
|
import org.apache.solr.common.params.ModifiableSolrParams;
|
||||||
import org.apache.solr.common.params.ShardParams;
|
import org.apache.solr.common.params.ShardParams;
|
||||||
import org.apache.solr.common.params.SolrParams;
|
import org.apache.solr.common.params.SolrParams;
|
||||||
import org.apache.solr.common.util.NamedList;
|
import org.apache.solr.common.util.NamedList;
|
||||||
import org.apache.solr.common.util.StrUtils;
|
import org.apache.solr.common.util.StrUtils;
|
||||||
import org.apache.solr.core.CoreDescriptor;
|
import org.apache.solr.core.CoreDescriptor;
|
||||||
import org.apache.solr.request.SolrQueryRequest;
|
import org.apache.solr.request.SolrQueryRequest;
|
||||||
|
|
||||||
|
@ -46,116 +46,116 @@ import java.net.ConnectException;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.util.concurrent.*;
|
import java.util.concurrent.*;
|
||||||
|
|
||||||
public class HttpShardHandler extends ShardHandler {
|
public class HttpShardHandler extends ShardHandler {
|
||||||
|
|
||||||
private HttpShardHandlerFactory httpShardHandlerFactory;
|
private HttpShardHandlerFactory httpShardHandlerFactory;
|
||||||
private CompletionService<ShardResponse> completionService;
|
private CompletionService<ShardResponse> completionService;
|
||||||
private Set<Future<ShardResponse>> pending;
|
private Set<Future<ShardResponse>> pending;
|
||||||
private Map<String,List<String>> shardToURLs;
|
private Map<String,List<String>> shardToURLs;
|
||||||
private HttpClient httpClient;
|
private HttpClient httpClient;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public HttpShardHandler(HttpShardHandlerFactory httpShardHandlerFactory, HttpClient httpClient) {
|
public HttpShardHandler(HttpShardHandlerFactory httpShardHandlerFactory, HttpClient httpClient) {
|
||||||
this.httpClient = httpClient;
|
this.httpClient = httpClient;
|
||||||
this.httpShardHandlerFactory = httpShardHandlerFactory;
|
this.httpShardHandlerFactory = httpShardHandlerFactory;
|
||||||
completionService = new ExecutorCompletionService<ShardResponse>(httpShardHandlerFactory.commExecutor);
|
completionService = new ExecutorCompletionService<ShardResponse>(httpShardHandlerFactory.commExecutor);
|
||||||
pending = new HashSet<Future<ShardResponse>>();
|
pending = new HashSet<Future<ShardResponse>>();
|
||||||
|
|
||||||
// maps "localhost:8983|localhost:7574" to a shuffled List("http://localhost:8983","http://localhost:7574")
|
// maps "localhost:8983|localhost:7574" to a shuffled List("http://localhost:8983","http://localhost:7574")
|
||||||
// This is primarily to keep track of what order we should use to query the replicas of a shard
|
// This is primarily to keep track of what order we should use to query the replicas of a shard
|
||||||
// so that we use the same replica for all phases of a distributed request.
|
// so that we use the same replica for all phases of a distributed request.
|
||||||
shardToURLs = new HashMap<String,List<String>>();
|
shardToURLs = new HashMap<String,List<String>>();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private static class SimpleSolrResponse extends SolrResponse {
|
private static class SimpleSolrResponse extends SolrResponse {
|
||||||
long elapsedTime;
|
long elapsedTime;
|
||||||
NamedList<Object> nl;
|
NamedList<Object> nl;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public long getElapsedTime() {
|
public long getElapsedTime() {
|
||||||
return elapsedTime;
|
return elapsedTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public NamedList<Object> getResponse() {
|
public NamedList<Object> getResponse() {
|
||||||
return nl;
|
return nl;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setResponse(NamedList<Object> rsp) {
|
public void setResponse(NamedList<Object> rsp) {
|
||||||
nl = rsp;
|
nl = rsp;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Not thread safe... don't use in Callable.
|
// Not thread safe... don't use in Callable.
|
||||||
// Don't modify the returned URL list.
|
// Don't modify the returned URL list.
|
||||||
private List<String> getURLs(String shard) {
|
private List<String> getURLs(String shard) {
|
||||||
List<String> urls = shardToURLs.get(shard);
|
List<String> urls = shardToURLs.get(shard);
|
||||||
if (urls==null) {
|
if (urls==null) {
|
||||||
urls = StrUtils.splitSmart(shard, "|", true);
|
urls = StrUtils.splitSmart(shard, "|", true);
|
||||||
|
|
||||||
// convert shard to URL
|
// convert shard to URL
|
||||||
for (int i=0; i<urls.size(); i++) {
|
for (int i=0; i<urls.size(); i++) {
|
||||||
urls.set(i, httpShardHandlerFactory.scheme + urls.get(i));
|
urls.set(i, httpShardHandlerFactory.scheme + urls.get(i));
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Shuffle the list instead of use round-robin by default.
|
// Shuffle the list instead of use round-robin by default.
|
||||||
// This prevents accidental synchronization where multiple shards could get in sync
|
// This prevents accidental synchronization where multiple shards could get in sync
|
||||||
// and query the same replica at the same time.
|
// and query the same replica at the same time.
|
||||||
//
|
//
|
||||||
if (urls.size() > 1)
|
if (urls.size() > 1)
|
||||||
Collections.shuffle(urls, httpShardHandlerFactory.r);
|
Collections.shuffle(urls, httpShardHandlerFactory.r);
|
||||||
shardToURLs.put(shard, urls);
|
shardToURLs.put(shard, urls);
|
||||||
}
|
}
|
||||||
return urls;
|
return urls;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public void submit(final ShardRequest sreq, final String shard, final ModifiableSolrParams params) {
|
public void submit(final ShardRequest sreq, final String shard, final ModifiableSolrParams params) {
|
||||||
// do this outside of the callable for thread safety reasons
|
// do this outside of the callable for thread safety reasons
|
||||||
final List<String> urls = getURLs(shard);
|
final List<String> urls = getURLs(shard);
|
||||||
|
|
||||||
Callable<ShardResponse> task = new Callable<ShardResponse>() {
|
Callable<ShardResponse> task = new Callable<ShardResponse>() {
|
||||||
public ShardResponse call() throws Exception {
|
public ShardResponse call() throws Exception {
|
||||||
|
|
||||||
ShardResponse srsp = new ShardResponse();
|
ShardResponse srsp = new ShardResponse();
|
||||||
srsp.setShardRequest(sreq);
|
srsp.setShardRequest(sreq);
|
||||||
srsp.setShard(shard);
|
srsp.setShard(shard);
|
||||||
SimpleSolrResponse ssr = new SimpleSolrResponse();
|
SimpleSolrResponse ssr = new SimpleSolrResponse();
|
||||||
srsp.setSolrResponse(ssr);
|
srsp.setSolrResponse(ssr);
|
||||||
long startTime = System.currentTimeMillis();
|
long startTime = System.currentTimeMillis();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
params.remove(CommonParams.WT); // use default (currently javabin)
|
params.remove(CommonParams.WT); // use default (currently javabin)
|
||||||
params.remove(CommonParams.VERSION);
|
params.remove(CommonParams.VERSION);
|
||||||
|
|
||||||
// SolrRequest req = new QueryRequest(SolrRequest.METHOD.POST, "/select");
|
// SolrRequest req = new QueryRequest(SolrRequest.METHOD.POST, "/select");
|
||||||
// use generic request to avoid extra processing of queries
|
// use generic request to avoid extra processing of queries
|
||||||
QueryRequest req = new QueryRequest(params);
|
QueryRequest req = new QueryRequest(params);
|
||||||
req.setMethod(SolrRequest.METHOD.POST);
|
req.setMethod(SolrRequest.METHOD.POST);
|
||||||
|
|
||||||
// no need to set the response parser as binary is the default
|
// no need to set the response parser as binary is the default
|
||||||
// req.setResponseParser(new BinaryResponseParser());
|
// req.setResponseParser(new BinaryResponseParser());
|
||||||
|
|
||||||
// if there are no shards available for a slice, urls.size()==0
|
// if there are no shards available for a slice, urls.size()==0
|
||||||
if (urls.size()==0) {
|
if (urls.size()==0) {
|
||||||
// TODO: what's the right error code here? We should use the same thing when
|
// TODO: what's the right error code here? We should use the same thing when
|
||||||
// all of the servers for a shard are down.
|
// all of the servers for a shard are down.
|
||||||
throw new SolrException(SolrException.ErrorCode.SERVICE_UNAVAILABLE, "no servers hosting shard: " + shard);
|
throw new SolrException(SolrException.ErrorCode.SERVICE_UNAVAILABLE, "no servers hosting shard: " + shard);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (urls.size() <= 1) {
|
if (urls.size() <= 1) {
|
||||||
String url = urls.get(0);
|
String url = urls.get(0);
|
||||||
srsp.setShardAddress(url);
|
srsp.setShardAddress(url);
|
||||||
SolrServer server = new CommonsHttpSolrServer(url, httpClient == null ? httpShardHandlerFactory.client : httpClient);
|
SolrServer server = new CommonsHttpSolrServer(url, httpClient == null ? httpShardHandlerFactory.client : httpClient);
|
||||||
ssr.nl = server.request(req);
|
ssr.nl = server.request(req);
|
||||||
} else {
|
} else {
|
||||||
LBHttpSolrServer.Rsp rsp = httpShardHandlerFactory.loadbalancer.request(new LBHttpSolrServer.Req(req, urls));
|
LBHttpSolrServer.Rsp rsp = httpShardHandlerFactory.loadbalancer.request(new LBHttpSolrServer.Req(req, urls));
|
||||||
ssr.nl = rsp.getResponse();
|
ssr.nl = rsp.getResponse();
|
||||||
srsp.setShardAddress(rsp.getServer());
|
srsp.setShardAddress(rsp.getServer());
|
||||||
}
|
}
|
||||||
|
@ -165,80 +165,80 @@ public class HttpShardHandler extends ShardHandler {
|
||||||
} catch (Throwable th) {
|
} catch (Throwable th) {
|
||||||
srsp.setException(th);
|
srsp.setException(th);
|
||||||
if (th instanceof SolrException) {
|
if (th instanceof SolrException) {
|
||||||
srsp.setResponseCode(((SolrException)th).code());
|
srsp.setResponseCode(((SolrException)th).code());
|
||||||
} else {
|
} else {
|
||||||
srsp.setResponseCode(-1);
|
srsp.setResponseCode(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ssr.elapsedTime = System.currentTimeMillis() - startTime;
|
ssr.elapsedTime = System.currentTimeMillis() - startTime;
|
||||||
|
|
||||||
return srsp;
|
return srsp;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
pending.add( completionService.submit(task) );
|
pending.add( completionService.submit(task) );
|
||||||
}
|
}
|
||||||
|
|
||||||
/** returns a ShardResponse of the last response correlated with a ShardRequest. This won't
|
/** returns a ShardResponse of the last response correlated with a ShardRequest. This won't
|
||||||
* return early if it runs into an error.
|
* return early if it runs into an error.
|
||||||
**/
|
**/
|
||||||
public ShardResponse takeCompletedIncludingErrors() {
|
public ShardResponse takeCompletedIncludingErrors() {
|
||||||
return take(false);
|
return take(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/** returns a ShardResponse of the last response correlated with a ShardRequest,
|
/** returns a ShardResponse of the last response correlated with a ShardRequest,
|
||||||
* or immediately returns a ShardResponse if there was an error detected
|
* or immediately returns a ShardResponse if there was an error detected
|
||||||
*/
|
*/
|
||||||
public ShardResponse takeCompletedOrError() {
|
public ShardResponse takeCompletedOrError() {
|
||||||
return take(true);
|
return take(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
private ShardResponse take(boolean bailOnError) {
|
private ShardResponse take(boolean bailOnError) {
|
||||||
|
|
||||||
while (pending.size() > 0) {
|
while (pending.size() > 0) {
|
||||||
try {
|
try {
|
||||||
Future<ShardResponse> future = completionService.take();
|
Future<ShardResponse> future = completionService.take();
|
||||||
pending.remove(future);
|
pending.remove(future);
|
||||||
ShardResponse rsp = future.get();
|
ShardResponse rsp = future.get();
|
||||||
if (bailOnError && rsp.getException() != null) return rsp; // if exception, return immediately
|
if (bailOnError && rsp.getException() != null) return rsp; // if exception, return immediately
|
||||||
// add response to the response list... we do this after the take() and
|
// add response to the response list... we do this after the take() and
|
||||||
// not after the completion of "call" so we know when the last response
|
// not after the completion of "call" so we know when the last response
|
||||||
// for a request was received. Otherwise we might return the same
|
// for a request was received. Otherwise we might return the same
|
||||||
// request more than once.
|
// request more than once.
|
||||||
rsp.getShardRequest().responses.add(rsp);
|
rsp.getShardRequest().responses.add(rsp);
|
||||||
if (rsp.getShardRequest().responses.size() == rsp.getShardRequest().actualShards.length) {
|
if (rsp.getShardRequest().responses.size() == rsp.getShardRequest().actualShards.length) {
|
||||||
return rsp;
|
return rsp;
|
||||||
}
|
}
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
throw new SolrException(SolrException.ErrorCode.SERVER_ERROR, e);
|
throw new SolrException(SolrException.ErrorCode.SERVER_ERROR, e);
|
||||||
} catch (ExecutionException e) {
|
} catch (ExecutionException e) {
|
||||||
// should be impossible... the problem with catching the exception
|
// should be impossible... the problem with catching the exception
|
||||||
// at this level is we don't know what ShardRequest it applied to
|
// at this level is we don't know what ShardRequest it applied to
|
||||||
throw new SolrException(SolrException.ErrorCode.SERVER_ERROR, "Impossible Exception",e);
|
throw new SolrException(SolrException.ErrorCode.SERVER_ERROR, "Impossible Exception",e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public void cancelAll() {
|
public void cancelAll() {
|
||||||
for (Future<ShardResponse> future : pending) {
|
for (Future<ShardResponse> future : pending) {
|
||||||
// TODO: any issues with interrupting? shouldn't be if
|
// TODO: any issues with interrupting? shouldn't be if
|
||||||
// there are finally blocks to release connections.
|
// there are finally blocks to release connections.
|
||||||
future.cancel(true);
|
future.cancel(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public void checkDistributed(ResponseBuilder rb) {
|
public void checkDistributed(ResponseBuilder rb) {
|
||||||
SolrQueryRequest req = rb.req;
|
SolrQueryRequest req = rb.req;
|
||||||
SolrParams params = req.getParams();
|
SolrParams params = req.getParams();
|
||||||
|
|
||||||
rb.isDistrib = params.getBool("distrib", req.getCore().getCoreDescriptor()
|
rb.isDistrib = params.getBool("distrib", req.getCore().getCoreDescriptor()
|
||||||
.getCoreContainer().isZooKeeperAware());
|
.getCoreContainer().isZooKeeperAware());
|
||||||
String shards = params.get(ShardParams.SHARDS);
|
String shards = params.get(ShardParams.SHARDS);
|
||||||
|
|
||||||
// for back compat, a shards param with URLs like localhost:8983/solr will mean that this
|
// for back compat, a shards param with URLs like localhost:8983/solr will mean that this
|
||||||
// search is distributed.
|
// search is distributed.
|
||||||
boolean hasShardURL = shards != null && shards.indexOf('/') > 0;
|
boolean hasShardURL = shards != null && shards.indexOf('/') > 0;
|
||||||
rb.isDistrib = hasShardURL | rb.isDistrib;
|
rb.isDistrib = hasShardURL | rb.isDistrib;
|
||||||
|
@ -246,137 +246,137 @@ public class HttpShardHandler extends ShardHandler {
|
||||||
if (rb.isDistrib) {
|
if (rb.isDistrib) {
|
||||||
// since the cost of grabbing cloud state is still up in the air, we grab it only
|
// since the cost of grabbing cloud state is still up in the air, we grab it only
|
||||||
// if we need it.
|
// if we need it.
|
||||||
CloudState cloudState = null;
|
CloudState cloudState = null;
|
||||||
Map<String,Slice> slices = null;
|
Map<String,Slice> slices = null;
|
||||||
CoreDescriptor coreDescriptor = req.getCore().getCoreDescriptor();
|
CoreDescriptor coreDescriptor = req.getCore().getCoreDescriptor();
|
||||||
CloudDescriptor cloudDescriptor = coreDescriptor.getCloudDescriptor();
|
CloudDescriptor cloudDescriptor = coreDescriptor.getCloudDescriptor();
|
||||||
ZkController zkController = coreDescriptor.getCoreContainer().getZkController();
|
ZkController zkController = coreDescriptor.getCoreContainer().getZkController();
|
||||||
|
|
||||||
|
|
||||||
if (shards != null) {
|
if (shards != null) {
|
||||||
List<String> lst = StrUtils.splitSmart(shards, ",", true);
|
List<String> lst = StrUtils.splitSmart(shards, ",", true);
|
||||||
rb.shards = lst.toArray(new String[lst.size()]);
|
rb.shards = lst.toArray(new String[lst.size()]);
|
||||||
rb.slices = new String[rb.shards.length];
|
rb.slices = new String[rb.shards.length];
|
||||||
|
|
||||||
if (zkController != null) {
|
if (zkController != null) {
|
||||||
// figure out which shards are slices
|
// figure out which shards are slices
|
||||||
for (int i=0; i<rb.shards.length; i++) {
|
for (int i=0; i<rb.shards.length; i++) {
|
||||||
if (rb.shards[i].indexOf('/') < 0) {
|
if (rb.shards[i].indexOf('/') < 0) {
|
||||||
// this is a logical shard
|
// this is a logical shard
|
||||||
rb.slices[i] = rb.shards[i];
|
rb.slices[i] = rb.shards[i];
|
||||||
rb.shards[i] = null;
|
rb.shards[i] = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (zkController != null) {
|
} else if (zkController != null) {
|
||||||
// we weren't provided with a list of slices to query, so find the list that will cover the complete index
|
// we weren't provided with a list of slices to query, so find the list that will cover the complete index
|
||||||
|
|
||||||
cloudState = zkController.getCloudState();
|
cloudState = zkController.getCloudState();
|
||||||
|
|
||||||
// This can be more efficient... we only record the name, even though we
|
// This can be more efficient... we only record the name, even though we
|
||||||
// have the shard info we need in the next step of mapping slice->shards
|
// have the shard info we need in the next step of mapping slice->shards
|
||||||
|
|
||||||
// Stores the comma-separated list of specified collections.
|
// Stores the comma-separated list of specified collections.
|
||||||
// Eg: "collection1,collection2,collection3"
|
// Eg: "collection1,collection2,collection3"
|
||||||
String collections = params.get("collection");
|
String collections = params.get("collection");
|
||||||
if (collections != null) {
|
if (collections != null) {
|
||||||
// If there were one or more collections specified in the query, split
|
// If there were one or more collections specified in the query, split
|
||||||
// each parameter and store as a seperate member of a List.
|
// each parameter and store as a seperate member of a List.
|
||||||
List<String> collectionList = StrUtils.splitSmart(collections, ",",
|
List<String> collectionList = StrUtils.splitSmart(collections, ",",
|
||||||
true);
|
true);
|
||||||
|
|
||||||
// First create an empty HashMap to add the slice info to.
|
// First create an empty HashMap to add the slice info to.
|
||||||
slices = new HashMap<String,Slice>();
|
slices = new HashMap<String,Slice>();
|
||||||
|
|
||||||
// In turn, retrieve the slices that cover each collection from the
|
// In turn, retrieve the slices that cover each collection from the
|
||||||
// cloud state and add them to the Map 'slices'.
|
// cloud state and add them to the Map 'slices'.
|
||||||
for (int i = 0; i < collectionList.size(); i++) {
|
for (int i = 0; i < collectionList.size(); i++) {
|
||||||
String collection = collectionList.get(i);
|
String collection = collectionList.get(i);
|
||||||
ClientUtils.appendMap(collection, slices, cloudState.getSlices(collection));
|
ClientUtils.appendMap(collection, slices, cloudState.getSlices(collection));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// If no collections were specified, default to the collection for
|
// If no collections were specified, default to the collection for
|
||||||
// this core.
|
// this core.
|
||||||
slices = cloudState.getSlices(cloudDescriptor.getCollectionName());
|
slices = cloudState.getSlices(cloudDescriptor.getCollectionName());
|
||||||
if (slices == null) {
|
if (slices == null) {
|
||||||
throw new SolrException(ErrorCode.BAD_REQUEST,
|
throw new SolrException(ErrorCode.BAD_REQUEST,
|
||||||
"Could not find collection:"
|
"Could not find collection:"
|
||||||
+ cloudDescriptor.getCollectionName());
|
+ cloudDescriptor.getCollectionName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Store the logical slices in the ResponseBuilder and create a new
|
// Store the logical slices in the ResponseBuilder and create a new
|
||||||
// String array to hold the physical shards (which will be mapped
|
// String array to hold the physical shards (which will be mapped
|
||||||
// later).
|
// later).
|
||||||
rb.slices = slices.keySet().toArray(new String[slices.size()]);
|
rb.slices = slices.keySet().toArray(new String[slices.size()]);
|
||||||
rb.shards = new String[rb.slices.length];
|
rb.shards = new String[rb.slices.length];
|
||||||
|
|
||||||
/***
|
/***
|
||||||
rb.slices = new String[slices.size()];
|
rb.slices = new String[slices.size()];
|
||||||
for (int i=0; i<rb.slices.length; i++) {
|
for (int i=0; i<rb.slices.length; i++) {
|
||||||
rb.slices[i] = slices.get(i).getName();
|
rb.slices[i] = slices.get(i).getName();
|
||||||
}
|
}
|
||||||
***/
|
***/
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Map slices to shards
|
// Map slices to shards
|
||||||
//
|
//
|
||||||
if (zkController != null) {
|
if (zkController != null) {
|
||||||
for (int i=0; i<rb.shards.length; i++) {
|
for (int i=0; i<rb.shards.length; i++) {
|
||||||
if (rb.shards[i] == null) {
|
if (rb.shards[i] == null) {
|
||||||
if (cloudState == null) {
|
if (cloudState == null) {
|
||||||
cloudState = zkController.getCloudState();
|
cloudState = zkController.getCloudState();
|
||||||
slices = cloudState.getSlices(cloudDescriptor.getCollectionName());
|
slices = cloudState.getSlices(cloudDescriptor.getCollectionName());
|
||||||
}
|
}
|
||||||
String sliceName = rb.slices[i];
|
String sliceName = rb.slices[i];
|
||||||
|
|
||||||
Slice slice = slices.get(sliceName);
|
Slice slice = slices.get(sliceName);
|
||||||
|
|
||||||
if (slice==null) {
|
if (slice==null) {
|
||||||
// Treat this the same as "all servers down" for a slice, and let things continue
|
// Treat this the same as "all servers down" for a slice, and let things continue
|
||||||
// if partial results are acceptable
|
// if partial results are acceptable
|
||||||
rb.shards[i] = "";
|
rb.shards[i] = "";
|
||||||
continue;
|
continue;
|
||||||
// throw new SolrException(SolrException.ErrorCode.BAD_REQUEST, "no such shard: " + sliceName);
|
// throw new SolrException(SolrException.ErrorCode.BAD_REQUEST, "no such shard: " + sliceName);
|
||||||
}
|
}
|
||||||
|
|
||||||
Map<String, ZkNodeProps> sliceShards = slice.getShards();
|
Map<String, ZkNodeProps> sliceShards = slice.getShards();
|
||||||
|
|
||||||
// For now, recreate the | delimited list of equivalent servers
|
// For now, recreate the | delimited list of equivalent servers
|
||||||
Set<String> liveNodes = cloudState.getLiveNodes();
|
Set<String> liveNodes = cloudState.getLiveNodes();
|
||||||
StringBuilder sliceShardsStr = new StringBuilder();
|
StringBuilder sliceShardsStr = new StringBuilder();
|
||||||
boolean first = true;
|
boolean first = true;
|
||||||
for (ZkNodeProps nodeProps : sliceShards.values()) {
|
for (ZkNodeProps nodeProps : sliceShards.values()) {
|
||||||
ZkCoreNodeProps coreNodeProps = new ZkCoreNodeProps(nodeProps);
|
ZkCoreNodeProps coreNodeProps = new ZkCoreNodeProps(nodeProps);
|
||||||
if (!liveNodes.contains(coreNodeProps.getNodeName())
|
if (!liveNodes.contains(coreNodeProps.getNodeName())
|
||||||
|| !coreNodeProps.getState().equals(
|
|| !coreNodeProps.getState().equals(
|
||||||
ZkStateReader.ACTIVE)) continue;
|
ZkStateReader.ACTIVE)) continue;
|
||||||
if (first) {
|
if (first) {
|
||||||
first = false;
|
first = false;
|
||||||
} else {
|
} else {
|
||||||
sliceShardsStr.append('|');
|
sliceShardsStr.append('|');
|
||||||
}
|
}
|
||||||
String url = coreNodeProps.getCoreUrl();
|
String url = coreNodeProps.getCoreUrl();
|
||||||
if (url.startsWith("http://"))
|
if (url.startsWith("http://"))
|
||||||
url = url.substring(7);
|
url = url.substring(7);
|
||||||
sliceShardsStr.append(url);
|
sliceShardsStr.append(url);
|
||||||
}
|
}
|
||||||
|
|
||||||
rb.shards[i] = sliceShardsStr.toString();
|
rb.shards[i] = sliceShardsStr.toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
String shards_rows = params.get(ShardParams.SHARDS_ROWS);
|
String shards_rows = params.get(ShardParams.SHARDS_ROWS);
|
||||||
if(shards_rows != null) {
|
if(shards_rows != null) {
|
||||||
rb.shards_rows = Integer.parseInt(shards_rows);
|
rb.shards_rows = Integer.parseInt(shards_rows);
|
||||||
}
|
}
|
||||||
String shards_start = params.get(ShardParams.SHARDS_START);
|
String shards_start = params.get(ShardParams.SHARDS_START);
|
||||||
if(shards_start != null) {
|
if(shards_start != null) {
|
||||||
rb.shards_start = Integer.parseInt(shards_start);
|
rb.shards_start = Integer.parseInt(shards_start);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,202 +1,202 @@
|
||||||
|
|
||||||
Apache License
|
Apache License
|
||||||
Version 2.0, January 2004
|
Version 2.0, January 2004
|
||||||
http://www.apache.org/licenses/
|
http://www.apache.org/licenses/
|
||||||
|
|
||||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||||
|
|
||||||
1. Definitions.
|
1. Definitions.
|
||||||
|
|
||||||
"License" shall mean the terms and conditions for use, reproduction,
|
"License" shall mean the terms and conditions for use, reproduction,
|
||||||
and distribution as defined by Sections 1 through 9 of this document.
|
and distribution as defined by Sections 1 through 9 of this document.
|
||||||
|
|
||||||
"Licensor" shall mean the copyright owner or entity authorized by
|
"Licensor" shall mean the copyright owner or entity authorized by
|
||||||
the copyright owner that is granting the License.
|
the copyright owner that is granting the License.
|
||||||
|
|
||||||
"Legal Entity" shall mean the union of the acting entity and all
|
"Legal Entity" shall mean the union of the acting entity and all
|
||||||
other entities that control, are controlled by, or are under common
|
other entities that control, are controlled by, or are under common
|
||||||
control with that entity. For the purposes of this definition,
|
control with that entity. For the purposes of this definition,
|
||||||
"control" means (i) the power, direct or indirect, to cause the
|
"control" means (i) the power, direct or indirect, to cause the
|
||||||
direction or management of such entity, whether by contract or
|
direction or management of such entity, whether by contract or
|
||||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||||
|
|
||||||
"You" (or "Your") shall mean an individual or Legal Entity
|
"You" (or "Your") shall mean an individual or Legal Entity
|
||||||
exercising permissions granted by this License.
|
exercising permissions granted by this License.
|
||||||
|
|
||||||
"Source" form shall mean the preferred form for making modifications,
|
"Source" form shall mean the preferred form for making modifications,
|
||||||
including but not limited to software source code, documentation
|
including but not limited to software source code, documentation
|
||||||
source, and configuration files.
|
source, and configuration files.
|
||||||
|
|
||||||
"Object" form shall mean any form resulting from mechanical
|
"Object" form shall mean any form resulting from mechanical
|
||||||
transformation or translation of a Source form, including but
|
transformation or translation of a Source form, including but
|
||||||
not limited to compiled object code, generated documentation,
|
not limited to compiled object code, generated documentation,
|
||||||
and conversions to other media types.
|
and conversions to other media types.
|
||||||
|
|
||||||
"Work" shall mean the work of authorship, whether in Source or
|
"Work" shall mean the work of authorship, whether in Source or
|
||||||
Object form, made available under the License, as indicated by a
|
Object form, made available under the License, as indicated by a
|
||||||
copyright notice that is included in or attached to the work
|
copyright notice that is included in or attached to the work
|
||||||
(an example is provided in the Appendix below).
|
(an example is provided in the Appendix below).
|
||||||
|
|
||||||
"Derivative Works" shall mean any work, whether in Source or Object
|
"Derivative Works" shall mean any work, whether in Source or Object
|
||||||
form, that is based on (or derived from) the Work and for which the
|
form, that is based on (or derived from) the Work and for which the
|
||||||
editorial revisions, annotations, elaborations, or other modifications
|
editorial revisions, annotations, elaborations, or other modifications
|
||||||
represent, as a whole, an original work of authorship. For the purposes
|
represent, as a whole, an original work of authorship. For the purposes
|
||||||
of this License, Derivative Works shall not include works that remain
|
of this License, Derivative Works shall not include works that remain
|
||||||
separable from, or merely link (or bind by name) to the interfaces of,
|
separable from, or merely link (or bind by name) to the interfaces of,
|
||||||
the Work and Derivative Works thereof.
|
the Work and Derivative Works thereof.
|
||||||
|
|
||||||
"Contribution" shall mean any work of authorship, including
|
"Contribution" shall mean any work of authorship, including
|
||||||
the original version of the Work and any modifications or additions
|
the original version of the Work and any modifications or additions
|
||||||
to that Work or Derivative Works thereof, that is intentionally
|
to that Work or Derivative Works thereof, that is intentionally
|
||||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||||
or by an individual or Legal Entity authorized to submit on behalf of
|
or by an individual or Legal Entity authorized to submit on behalf of
|
||||||
the copyright owner. For the purposes of this definition, "submitted"
|
the copyright owner. For the purposes of this definition, "submitted"
|
||||||
means any form of electronic, verbal, or written communication sent
|
means any form of electronic, verbal, or written communication sent
|
||||||
to the Licensor or its representatives, including but not limited to
|
to the Licensor or its representatives, including but not limited to
|
||||||
communication on electronic mailing lists, source code control systems,
|
communication on electronic mailing lists, source code control systems,
|
||||||
and issue tracking systems that are managed by, or on behalf of, the
|
and issue tracking systems that are managed by, or on behalf of, the
|
||||||
Licensor for the purpose of discussing and improving the Work, but
|
Licensor for the purpose of discussing and improving the Work, but
|
||||||
excluding communication that is conspicuously marked or otherwise
|
excluding communication that is conspicuously marked or otherwise
|
||||||
designated in writing by the copyright owner as "Not a Contribution."
|
designated in writing by the copyright owner as "Not a Contribution."
|
||||||
|
|
||||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||||
on behalf of whom a Contribution has been received by Licensor and
|
on behalf of whom a Contribution has been received by Licensor and
|
||||||
subsequently incorporated within the Work.
|
subsequently incorporated within the Work.
|
||||||
|
|
||||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
copyright license to reproduce, prepare Derivative Works of,
|
copyright license to reproduce, prepare Derivative Works of,
|
||||||
publicly display, publicly perform, sublicense, and distribute the
|
publicly display, publicly perform, sublicense, and distribute the
|
||||||
Work and such Derivative Works in Source or Object form.
|
Work and such Derivative Works in Source or Object form.
|
||||||
|
|
||||||
3. Grant of Patent License. Subject to the terms and conditions of
|
3. Grant of Patent License. Subject to the terms and conditions of
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
(except as stated in this section) patent license to make, have made,
|
(except as stated in this section) patent license to make, have made,
|
||||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||||
where such license applies only to those patent claims licensable
|
where such license applies only to those patent claims licensable
|
||||||
by such Contributor that are necessarily infringed by their
|
by such Contributor that are necessarily infringed by their
|
||||||
Contribution(s) alone or by combination of their Contribution(s)
|
Contribution(s) alone or by combination of their Contribution(s)
|
||||||
with the Work to which such Contribution(s) was submitted. If You
|
with the Work to which such Contribution(s) was submitted. If You
|
||||||
institute patent litigation against any entity (including a
|
institute patent litigation against any entity (including a
|
||||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||||
or a Contribution incorporated within the Work constitutes direct
|
or a Contribution incorporated within the Work constitutes direct
|
||||||
or contributory patent infringement, then any patent licenses
|
or contributory patent infringement, then any patent licenses
|
||||||
granted to You under this License for that Work shall terminate
|
granted to You under this License for that Work shall terminate
|
||||||
as of the date such litigation is filed.
|
as of the date such litigation is filed.
|
||||||
|
|
||||||
4. Redistribution. You may reproduce and distribute copies of the
|
4. Redistribution. You may reproduce and distribute copies of the
|
||||||
Work or Derivative Works thereof in any medium, with or without
|
Work or Derivative Works thereof in any medium, with or without
|
||||||
modifications, and in Source or Object form, provided that You
|
modifications, and in Source or Object form, provided that You
|
||||||
meet the following conditions:
|
meet the following conditions:
|
||||||
|
|
||||||
(a) You must give any other recipients of the Work or
|
(a) You must give any other recipients of the Work or
|
||||||
Derivative Works a copy of this License; and
|
Derivative Works a copy of this License; and
|
||||||
|
|
||||||
(b) You must cause any modified files to carry prominent notices
|
(b) You must cause any modified files to carry prominent notices
|
||||||
stating that You changed the files; and
|
stating that You changed the files; and
|
||||||
|
|
||||||
(c) You must retain, in the Source form of any Derivative Works
|
(c) You must retain, in the Source form of any Derivative Works
|
||||||
that You distribute, all copyright, patent, trademark, and
|
that You distribute, all copyright, patent, trademark, and
|
||||||
attribution notices from the Source form of the Work,
|
attribution notices from the Source form of the Work,
|
||||||
excluding those notices that do not pertain to any part of
|
excluding those notices that do not pertain to any part of
|
||||||
the Derivative Works; and
|
the Derivative Works; and
|
||||||
|
|
||||||
(d) If the Work includes a "NOTICE" text file as part of its
|
(d) If the Work includes a "NOTICE" text file as part of its
|
||||||
distribution, then any Derivative Works that You distribute must
|
distribution, then any Derivative Works that You distribute must
|
||||||
include a readable copy of the attribution notices contained
|
include a readable copy of the attribution notices contained
|
||||||
within such NOTICE file, excluding those notices that do not
|
within such NOTICE file, excluding those notices that do not
|
||||||
pertain to any part of the Derivative Works, in at least one
|
pertain to any part of the Derivative Works, in at least one
|
||||||
of the following places: within a NOTICE text file distributed
|
of the following places: within a NOTICE text file distributed
|
||||||
as part of the Derivative Works; within the Source form or
|
as part of the Derivative Works; within the Source form or
|
||||||
documentation, if provided along with the Derivative Works; or,
|
documentation, if provided along with the Derivative Works; or,
|
||||||
within a display generated by the Derivative Works, if and
|
within a display generated by the Derivative Works, if and
|
||||||
wherever such third-party notices normally appear. The contents
|
wherever such third-party notices normally appear. The contents
|
||||||
of the NOTICE file are for informational purposes only and
|
of the NOTICE file are for informational purposes only and
|
||||||
do not modify the License. You may add Your own attribution
|
do not modify the License. You may add Your own attribution
|
||||||
notices within Derivative Works that You distribute, alongside
|
notices within Derivative Works that You distribute, alongside
|
||||||
or as an addendum to the NOTICE text from the Work, provided
|
or as an addendum to the NOTICE text from the Work, provided
|
||||||
that such additional attribution notices cannot be construed
|
that such additional attribution notices cannot be construed
|
||||||
as modifying the License.
|
as modifying the License.
|
||||||
|
|
||||||
You may add Your own copyright statement to Your modifications and
|
You may add Your own copyright statement to Your modifications and
|
||||||
may provide additional or different license terms and conditions
|
may provide additional or different license terms and conditions
|
||||||
for use, reproduction, or distribution of Your modifications, or
|
for use, reproduction, or distribution of Your modifications, or
|
||||||
for any such Derivative Works as a whole, provided Your use,
|
for any such Derivative Works as a whole, provided Your use,
|
||||||
reproduction, and distribution of the Work otherwise complies with
|
reproduction, and distribution of the Work otherwise complies with
|
||||||
the conditions stated in this License.
|
the conditions stated in this License.
|
||||||
|
|
||||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||||
any Contribution intentionally submitted for inclusion in the Work
|
any Contribution intentionally submitted for inclusion in the Work
|
||||||
by You to the Licensor shall be under the terms and conditions of
|
by You to the Licensor shall be under the terms and conditions of
|
||||||
this License, without any additional terms or conditions.
|
this License, without any additional terms or conditions.
|
||||||
Notwithstanding the above, nothing herein shall supersede or modify
|
Notwithstanding the above, nothing herein shall supersede or modify
|
||||||
the terms of any separate license agreement you may have executed
|
the terms of any separate license agreement you may have executed
|
||||||
with Licensor regarding such Contributions.
|
with Licensor regarding such Contributions.
|
||||||
|
|
||||||
6. Trademarks. This License does not grant permission to use the trade
|
6. Trademarks. This License does not grant permission to use the trade
|
||||||
names, trademarks, service marks, or product names of the Licensor,
|
names, trademarks, service marks, or product names of the Licensor,
|
||||||
except as required for reasonable and customary use in describing the
|
except as required for reasonable and customary use in describing the
|
||||||
origin of the Work and reproducing the content of the NOTICE file.
|
origin of the Work and reproducing the content of the NOTICE file.
|
||||||
|
|
||||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||||
agreed to in writing, Licensor provides the Work (and each
|
agreed to in writing, Licensor provides the Work (and each
|
||||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||||
implied, including, without limitation, any warranties or conditions
|
implied, including, without limitation, any warranties or conditions
|
||||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||||
appropriateness of using or redistributing the Work and assume any
|
appropriateness of using or redistributing the Work and assume any
|
||||||
risks associated with Your exercise of permissions under this License.
|
risks associated with Your exercise of permissions under this License.
|
||||||
|
|
||||||
8. Limitation of Liability. In no event and under no legal theory,
|
8. Limitation of Liability. In no event and under no legal theory,
|
||||||
whether in tort (including negligence), contract, or otherwise,
|
whether in tort (including negligence), contract, or otherwise,
|
||||||
unless required by applicable law (such as deliberate and grossly
|
unless required by applicable law (such as deliberate and grossly
|
||||||
negligent acts) or agreed to in writing, shall any Contributor be
|
negligent acts) or agreed to in writing, shall any Contributor be
|
||||||
liable to You for damages, including any direct, indirect, special,
|
liable to You for damages, including any direct, indirect, special,
|
||||||
incidental, or consequential damages of any character arising as a
|
incidental, or consequential damages of any character arising as a
|
||||||
result of this License or out of the use or inability to use the
|
result of this License or out of the use or inability to use the
|
||||||
Work (including but not limited to damages for loss of goodwill,
|
Work (including but not limited to damages for loss of goodwill,
|
||||||
work stoppage, computer failure or malfunction, or any and all
|
work stoppage, computer failure or malfunction, or any and all
|
||||||
other commercial damages or losses), even if such Contributor
|
other commercial damages or losses), even if such Contributor
|
||||||
has been advised of the possibility of such damages.
|
has been advised of the possibility of such damages.
|
||||||
|
|
||||||
9. Accepting Warranty or Additional Liability. While redistributing
|
9. Accepting Warranty or Additional Liability. While redistributing
|
||||||
the Work or Derivative Works thereof, You may choose to offer,
|
the Work or Derivative Works thereof, You may choose to offer,
|
||||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||||
or other liability obligations and/or rights consistent with this
|
or other liability obligations and/or rights consistent with this
|
||||||
License. However, in accepting such obligations, You may act only
|
License. However, in accepting such obligations, You may act only
|
||||||
on Your own behalf and on Your sole responsibility, not on behalf
|
on Your own behalf and on Your sole responsibility, not on behalf
|
||||||
of any other Contributor, and only if You agree to indemnify,
|
of any other Contributor, and only if You agree to indemnify,
|
||||||
defend, and hold each Contributor harmless for any liability
|
defend, and hold each Contributor harmless for any liability
|
||||||
incurred by, or claims asserted against, such Contributor by reason
|
incurred by, or claims asserted against, such Contributor by reason
|
||||||
of your accepting any such warranty or additional liability.
|
of your accepting any such warranty or additional liability.
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
APPENDIX: How to apply the Apache License to your work.
|
APPENDIX: How to apply the Apache License to your work.
|
||||||
|
|
||||||
To apply the Apache License to your work, attach the following
|
To apply the Apache License to your work, attach the following
|
||||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||||
replaced with your own identifying information. (Don't include
|
replaced with your own identifying information. (Don't include
|
||||||
the brackets!) The text should be enclosed in the appropriate
|
the brackets!) The text should be enclosed in the appropriate
|
||||||
comment syntax for the file format. We also recommend that a
|
comment syntax for the file format. We also recommend that a
|
||||||
file or class name and description of purpose be included on the
|
file or class name and description of purpose be included on the
|
||||||
same "printed page" as the copyright notice for easier
|
same "printed page" as the copyright notice for easier
|
||||||
identification within third-party archives.
|
identification within third-party archives.
|
||||||
|
|
||||||
Copyright [yyyy] [name of copyright owner]
|
Copyright [yyyy] [name of copyright owner]
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
You may obtain a copy of the License at
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
Unless required by applicable law or agreed to in writing, software
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
See the License for the specific language governing permissions and
|
See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
Apache Commons Lang
|
Apache Commons Lang
|
||||||
Copyright 2001-2008 The Apache Software Foundation
|
Copyright 2001-2008 The Apache Software Foundation
|
||||||
|
|
||||||
This product includes software developed by
|
This product includes software developed by
|
||||||
The Apache Software Foundation (http://www.apache.org/).
|
The Apache Software Foundation (http://www.apache.org/).
|
||||||
|
|
Loading…
Reference in New Issue