blob: de6a67fcf5b0878c1a95c6599c2d2ae9d2f44960 [file] [log] [blame]
<!--
! Licensed to the Apache Software Foundation (ASF) under one
! or more contributor license agreements. See the NOTICE file
! distributed with this work for additional information
! regarding copyright ownership. The ASF licenses this file
! to you under the Apache License, Version 2.0 (the
! "License"); you may not use this file except in compliance
! with the License. You may obtain a copy of the License at
!
! http://www.apache.org/licenses/LICENSE-2.0
!
! Unless required by applicable law or agreed to in writing,
! software distributed under the License is distributed on an
! "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
! KIND, either express or implied. See the License for the
! specific language governing permissions and limitations
! under the License.
!-->
<externalLibrary xmlns="library">
<language>JAVA</language>
<libraryFunctions>
<libraryFunction>
<name>fnameDetector</name>
<function_type>SCALAR</function_type>
<argument_type>InputRecordType</argument_type>
<return_type>DetectResultType</return_type>
<definition>org.apache.asterix.external.library.KeywordsDetectorFactory</definition>
<parameters>data/external_function/KeywordsDetector_List1.txt</parameters>
<parameters>fname</parameters>
</libraryFunction>
<libraryFunction>
<name>lnameDetector</name>
<function_type>SCALAR</function_type>
<argument_type>InputRecordType</argument_type>
<return_type>DetectResultType</return_type>
<definition>org.apache.asterix.external.library.KeywordsDetectorFactory</definition>
<parameters>data/external_function/KeywordsDetector_List2.txt</parameters>
<parameters>lname</parameters>
</libraryFunction>
<libraryFunction>
<name>parseTweet</name>
<function_type>SCALAR</function_type>
<argument_type>TweetInputType</argument_type>
<return_type>TweetOutputType</return_type>
<definition>org.apache.asterix.external.library.ParseTweetFactory</definition>
</libraryFunction>
<libraryFunction>
<name>addMentionedUsers</name>
<function_type>SCALAR</function_type>
<argument_type>TweetType</argument_type>
<return_type>TweetType</return_type>
<definition>org.apache.asterix.external.library.AddMentionedUsersFactory</definition>
<parameters>text</parameters>
</libraryFunction>
<libraryFunction>
<name>addHashTagsInPlace</name>
<function_type>SCALAR</function_type>
<argument_type>Tweet</argument_type>
<return_type>ProcessedTweet</return_type>
<definition>org.apache.asterix.external.library.AddHashTagsInPlaceFactory
</definition>
</libraryFunction>
<libraryFunction>
<name>mysum</name>
<function_type>SCALAR</function_type>
<argument_type>AINT32,AINT32</argument_type>
<return_type>AINT32</return_type>
<definition>org.apache.asterix.external.library.SumFactory
</definition>
</libraryFunction>
<libraryFunction>
<name>getCapital</name>
<function_type>SCALAR</function_type>
<argument_type>ASTRING</argument_type>
<return_type>CountryCapitalType</return_type>
<definition>org.apache.asterix.external.library.CapitalFinderFactory
</definition>
</libraryFunction>
<libraryFunction>
<name>toUpper</name>
<function_type>SCALAR</function_type>
<argument_type>TextType</argument_type>
<return_type>TextType</return_type>
<definition>org.apache.asterix.external.library.UpperCaseFactory
</definition>
</libraryFunction>
<libraryFunction>
<name>allTypes</name>
<function_type>SCALAR</function_type>
<argument_type>AllType</argument_type>
<return_type>AllType</return_type>
<definition>org.apache.asterix.external.library.AllTypesFactory
</definition>
</libraryFunction>
<libraryFunction>
<name>echoDelay</name>
<function_type>SCALAR</function_type>
<argument_type>TweetMessageType</argument_type>
<return_type>TweetMessageType</return_type>
<definition>org.apache.asterix.external.library.EchoDelayFactory
</definition>
</libraryFunction>
</libraryFunctions>
<libraryAdapters>
<libraryAdapter>
<name>test_typed_adapter</name>
<factory_class>org.apache.asterix.external.library.adapter.TestTypedAdapterFactory
</factory_class>
</libraryAdapter>
</libraryAdapters>
</externalLibrary>