当前位置: 首页>>代码示例>>Java>>正文


Java CommandLine.Parser方法代码示例

本文整理汇总了Java中eu.fbk.utils.core.CommandLine.Parser方法的典型用法代码示例。如果您正苦于以下问题:Java CommandLine.Parser方法的具体用法?Java CommandLine.Parser怎么用?Java CommandLine.Parser使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在eu.fbk.utils.core.CommandLine的用法示例。


在下文中一共展示了CommandLine.Parser方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: provideParameterList

import eu.fbk.utils.core.CommandLine; //导入方法依赖的package包/类
private static CommandLine.Parser provideParameterList() {
    return CommandLine.parser()
            .withOption("c", DB_CONNECTION,
                    "connection string for the database", "DB",
                    CommandLine.Type.STRING, true, false, true)
            .withOption(null, DB_USER,
                    "user for the database", "USER",
                    CommandLine.Type.STRING, true, false, true)
            .withOption(null, DB_PASSWORD,
                    "password for the database", "PASSWORD",
                    CommandLine.Type.STRING, true, false, true)
            .withOption(null, ENDPOINT,
                    "URL to SPARQL endpoint", "ENDPOINT",
                    CommandLine.Type.STRING, true, false, true)
            .withOption("w", WORKING,
                    "Input file with entities", "INPUT",
                    CommandLine.Type.STRING, true, false, true)
            .withOption(null, LSA_PATH,
                    "path to LSA model", "DIRECTORY",
                    CommandLine.Type.STRING, true, false, true);
}
 
开发者ID:Remper,项目名称:sociallink,代码行数:22,代码来源:ScoreEntities.java

示例2: provideParameterList

import eu.fbk.utils.core.CommandLine; //导入方法依赖的package包/类
private static CommandLine.Parser provideParameterList() {
    return CommandLine.parser()
            .withOption("c", DB_CONNECTION,
                    "connection string for the database", "DB",
                    CommandLine.Type.STRING, true, false, true)
            .withOption(null, DB_USER,
                    "user for the database", "USER",
                    CommandLine.Type.STRING, true, false, true)
            .withOption(null, DB_PASSWORD,
                    "password for the database", "PASSWORD",
                    CommandLine.Type.STRING, true, false, true)
            .withOption(null, ENDPOINT,
                    "URL to SPARQL endpoint", "ENDPOINT",
                    CommandLine.Type.STRING, true, false, true)
            .withOption(null, INPUT,
                    "Input file with entities", "INPUT",
                    CommandLine.Type.STRING, true, false, true);
}
 
开发者ID:Remper,项目名称:sociallink,代码行数:19,代码来源:SubmitEntities.java

示例3: provideParameterList

import eu.fbk.utils.core.CommandLine; //导入方法依赖的package包/类
private static CommandLine.Parser provideParameterList() {
    return CommandLine.parser()
            .withOption("c", DB_CONNECTION,
                    "connection string for the database", "DB",
                    CommandLine.Type.STRING, true, false, true)
            .withOption(null, DB_USER,
                    "user for the database", "USER",
                    CommandLine.Type.STRING, true, false, true)
            .withOption(null, DB_PASSWORD,
                    "password for the database", "PASSWORD",
                    CommandLine.Type.STRING, true, false, true)
            .withOption(null, ENDPOINT,
                    "URL to SPARQL endpoint", "ENDPOINT",
                    CommandLine.Type.STRING, true, false, true)
            .withOption(null, QUERY,
                    "Query", "QUERY",
                    CommandLine.Type.STRING, true, false, false);
}
 
开发者ID:Remper,项目名称:sociallink,代码行数:19,代码来源:FillFromIndex.java

示例4: provideParameterList

import eu.fbk.utils.core.CommandLine; //导入方法依赖的package包/类
private static CommandLine.Parser provideParameterList() {
    return CommandLine.parser()
            .withOption("c", DB_CONNECTION,
                    "connection string for the database", "DB",
                    CommandLine.Type.STRING, true, false, true)
            .withOption(null, DB_USER,
                    "user for the database", "USER",
                    CommandLine.Type.STRING, true, false, true)
            .withOption(null, DB_PASSWORD,
                    "password for the database", "PASSWORD",
                    CommandLine.Type.STRING, true, false, true)
            .withOption(null, ENDPOINT,
                    "URL to SPARQL endpoint", "ENDPOINT",
                    CommandLine.Type.STRING, true, false, true)
            .withOption(null, LSA_PATH,
                    "path to LSA model", "DIRECTORY",
                    CommandLine.Type.STRING, true, false, true)
            .withOption(null, QUERY,
                    "Query", "QUERY",
                    CommandLine.Type.STRING, true, false, false);
}
 
开发者ID:Remper,项目名称:sociallink,代码行数:22,代码来源:UserLSAInteractive.java

示例5: provideParameterList

import eu.fbk.utils.core.CommandLine; //导入方法依赖的package包/类
private static CommandLine.Parser provideParameterList() {
    return CommandLine.parser()
            .withOption("c", DB_CONNECTION,
                    "connection string for the database", "DB",
                    CommandLine.Type.STRING, true, false, false)
            .withOption(null, DB_USER,
                    "user for the database", "USER",
                    CommandLine.Type.STRING, true, false, false)
            .withOption(null, DB_PASSWORD,
                    "password for the database", "PASSWORD",
                    CommandLine.Type.STRING, true, false, false)
            .withOption("t", TWEETS_PATH,
                    "specifies the directory from which to get a stream of tweets", "DIRECTORY",
                    CommandLine.Type.STRING, true, false, true)
            .withOption("r", RESULTS_PATH,
                    "specifies the directory to which the results will be saved (in this case the db params are not required)", "DIRECTORY",
                    CommandLine.Type.STRING, true, false, false);
}
 
开发者ID:Remper,项目名称:sociallink,代码行数:19,代码来源:BuildUserIndex.java

示例6: provideParameterList

import eu.fbk.utils.core.CommandLine; //导入方法依赖的package包/类
private static CommandLine.Parser provideParameterList() {
    return CommandLine.parser()
            .withOption("o", OUTPUT,
                    "output directory where to store the results", "DIRECTORY",
                    CommandLine.Type.STRING, true, false, true)
            .withOption(null, CONSUMER_KEY,
                    "application consumer key", "KEY",
                    CommandLine.Type.STRING, true, false, true)
            .withOption(null, CONSUMER_SECRET,
                    "application consumer secret", "SECRET",
                    CommandLine.Type.STRING, true, false, true);
}
 
开发者ID:Remper,项目名称:sociallink,代码行数:13,代码来源:GetSuggestions.java

示例7: provideParameterList

import eu.fbk.utils.core.CommandLine; //导入方法依赖的package包/类
private static CommandLine.Parser provideParameterList() {
    return CommandLine.parser()
            .withOption(null, ENDPOINT,
                    "URL to SPARQL endpoint", "ENDPOINT",
                    CommandLine.Type.STRING, true, false, true)
            .withOption("w", WORKING,
                    "Input file with entities", "INPUT",
                    CommandLine.Type.STRING, true, false, true);
}
 
开发者ID:Remper,项目名称:sociallink,代码行数:10,代码来源:CleanupGold.java

示例8: provideParameterList

import eu.fbk.utils.core.CommandLine; //导入方法依赖的package包/类
private static CommandLine.Parser provideParameterList() {
    return CommandLine.parser()
            .withOption("c", DB_CONNECTION,
                    "connection string for the database", "DB",
                    CommandLine.Type.STRING, true, false, true)
            .withOption(null, DB_USER,
                    "user for the database", "USER",
                    CommandLine.Type.STRING, true, false, true)
            .withOption(null, DB_PASSWORD,
                    "password for the database", "PASSWORD",
                    CommandLine.Type.STRING, true, false, true);
}
 
开发者ID:Remper,项目名称:sociallink,代码行数:13,代码来源:DumpResource.java

示例9: provideParameterList

import eu.fbk.utils.core.CommandLine; //导入方法依赖的package包/类
private static CommandLine.Parser provideParameterList() {
    return CommandLine.parser()
            .withOption("t", TWEETS_PATH,
                    "specifies the directory from which to get a stream of tweets", "DIRECTORY",
                    CommandLine.Type.STRING, true, false, true)
            .withOption("r", RESULTS_PATH,
                    "specifies the directory to which the results will be saved (in this case the db params are not required)", "DIRECTORY",
                    CommandLine.Type.STRING, true, false, true)
            .withOption(null, LSA_PATH,
                    "path to LSA model", "DIRECTORY",
                    CommandLine.Type.STRING, true, false, true);
}
 
开发者ID:Remper,项目名称:sociallink,代码行数:13,代码来源:BuildUserLSA.java

示例10: provideParameterList

import eu.fbk.utils.core.CommandLine; //导入方法依赖的package包/类
private static CommandLine.Parser provideParameterList() {
    return CommandLine.parser()
            .withOption("o", OUTPUT,
                    "output directory where to store the results", "DIRECTORY",
                    CommandLine.Type.STRING, true, false, true);
}
 
开发者ID:Remper,项目名称:sociallink,代码行数:7,代码来源:Follow.java


注:本文中的eu.fbk.utils.core.CommandLine.Parser方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。