本文整理汇总了Java中org.exist.xquery.XQueryContext类的典型用法代码示例。如果您正苦于以下问题:Java XQueryContext类的具体用法?Java XQueryContext怎么用?Java XQueryContext使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
XQueryContext类属于org.exist.xquery包,在下文中一共展示了XQueryContext类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: run
import org.exist.xquery.XQueryContext; //导入依赖的package包/类
public Sequence run(final BinaryDocument xq) throws Exception {
try (final DBBroker broker = pool.get(Optional.of(pool.getSecurityManager().getSystemSubject()))) {
assertNotNull(broker);
final XQuery xquery = pool.getXQueryService();
assertNotNull(xquery);
final DBSource source = new DBSource(broker, xq, true);
final XQueryContext context = new XQueryContext(pool);
context.setModuleLoadPath(XmldbURI.EMBEDDED_SERVER_URI.append(xq.getCollection().getURI()).toString());
context.setStaticallyKnownDocuments(new XmldbURI[]{
xq.getCollection().getURI()
});
final CompiledXQuery compiled = xquery.compile(broker, context, source);
return xquery.execute(broker, compiled, null);
}
}
开发者ID:eXist-db,项目名称:xquery-xproc-xmlcalabash-module,代码行数:20,代码来源:ExternalTests.java
示例2: buildModulesSummary
import org.exist.xquery.XQueryContext; //导入依赖的package包/类
/**
* Finds the available java modules and writes a summary of each to the builder
*
* @param conf The eXist Configuration
* @param builder The builder for writing out the module summaries
*/
private void buildModulesSummary(final Configuration conf, final MemTreeBuilder builder) {
/**
* The configuredModules map has the format:
* key: module uri (i.e. namespace)
* value: implementing Java Class
*/
final Map<String, Class<?>> configuredModules = (Map<String, Class<?>>)conf.getProperty(XQueryContext.PROPERTY_BUILT_IN_MODULES);
for(final Map.Entry<String, Class<?>> configuredModule : configuredModules.entrySet()) {
buildModuleSummary(configuredModule, builder);
}
}
开发者ID:eXist-book,项目名称:book-code,代码行数:19,代码来源:ConfiguredModulesStartupTrigger.java
示例3: startDB
import org.exist.xquery.XQueryContext; //导入依赖的package包/类
@BeforeClass
public static void startDB() throws DatabaseConfigurationException, EXistException {
final Path confFile = ConfigurationHelper.lookup("conf.xml");
final Configuration config = new Configuration(confFile.toAbsolutePath().toString());
BrokerPool.configure(1, 5, config);
pool = BrokerPool.getInstance();
assertNotNull(pool);
final Map<String, Class<?>> map = (Map<String, Class<?>>) pool.getConfiguration().getProperty(XQueryContext.PROPERTY_BUILT_IN_MODULES);
map.put(
XProcXmlCalabashModule.NAMESPACE_URI,
XProcXmlCalabashModule.class);
}
开发者ID:eXist-db,项目名称:xquery-xproc-xmlcalabash-module,代码行数:16,代码来源:Simplest.java
示例4: startDB
import org.exist.xquery.XQueryContext; //导入依赖的package包/类
@BeforeClass
public static void startDB() throws DatabaseConfigurationException, EXistException {
final Path confFile = ConfigurationHelper.lookup("conf.xml");
final Configuration config = new Configuration(confFile.toAbsolutePath().toString());
BrokerPool.configure(1, 5, config);
pool = BrokerPool.getInstance();
assertNotNull(pool);
final Map<String, Class<?>> map = (Map<String, Class<?>>) pool.getConfiguration().getProperty(XQueryContext.PROPERTY_BUILT_IN_MODULES);
map.put(
XProcXmlCalabashModule.NAMESPACE_URI,
XProcXmlCalabashModule.class);
}
开发者ID:eXist-db,项目名称:xquery-xproc-xmlcalabash-module,代码行数:15,代码来源:MultiInputTests.java
示例5: startDB
import org.exist.xquery.XQueryContext; //导入依赖的package包/类
@BeforeClass
public static void startDB() throws DatabaseConfigurationException, EXistException {
final Path confFile = ConfigurationHelper.lookup("conf.xml");
final Configuration config = new Configuration(confFile.toAbsolutePath().toString());
BrokerPool.configure(1, 5, config);
pool = BrokerPool.getInstance();
assertNotNull(pool);
Map<String, Class<?>> map = (Map<String, Class<?>>) pool.getConfiguration().getProperty(XQueryContext.PROPERTY_BUILT_IN_MODULES);
map.put(
XProcXmlCalabashModule.NAMESPACE_URI,
XProcXmlCalabashModule.class);
}
开发者ID:eXist-db,项目名称:xquery-xproc-xmlcalabash-module,代码行数:15,代码来源:ExternalTests.java
示例6: scanIndex
import org.exist.xquery.XQueryContext; //导入依赖的package包/类
@Override
public Occurrences[] scanIndex(XQueryContext context, DocumentSet docs, NodeSet contextSet, Map<?, ?> hints) {
return new Occurrences[0];
}
开发者ID:ljo,项目名称:exist-sparql,代码行数:5,代码来源:TDBIndexWorker.java
示例7: getQueryRewriter
import org.exist.xquery.XQueryContext; //导入依赖的package包/类
@Override
public QueryRewriter getQueryRewriter(XQueryContext context) {
return null;
}
开发者ID:ljo,项目名称:exist-sparql,代码行数:5,代码来源:TDBIndexWorker.java
示例8: CropFunction
import org.exist.xquery.XQueryContext; //导入依赖的package包/类
public CropFunction(XQueryContext context, FunctionSignature signature) {
super(context, signature);
}
开发者ID:exc-asia-and-europe,项目名称:imagemagick.xq,代码行数:4,代码来源:CropFunction.java
示例9: Convert2JPGFunction
import org.exist.xquery.XQueryContext; //导入依赖的package包/类
public Convert2JPGFunction(XQueryContext context, FunctionSignature signature) {
super(context, signature);
}
开发者ID:exc-asia-and-europe,项目名称:imagemagick.xq,代码行数:4,代码来源:Convert2JPGFunction.java
示例10: Convert2PNGFunction
import org.exist.xquery.XQueryContext; //导入依赖的package包/类
public Convert2PNGFunction(XQueryContext context, FunctionSignature signature) {
super(context, signature);
}
开发者ID:exc-asia-and-europe,项目名称:imagemagick.xq,代码行数:4,代码来源:Convert2PNGFunction.java
示例11: RotateFunction
import org.exist.xquery.XQueryContext; //导入依赖的package包/类
public RotateFunction(XQueryContext context, FunctionSignature signature) {
super(context, signature);
}
开发者ID:exc-asia-and-europe,项目名称:imagemagick.xq,代码行数:4,代码来源:RotateFunction.java
示例12: ConvertFunction
import org.exist.xquery.XQueryContext; //导入依赖的package包/类
public ConvertFunction(XQueryContext context, FunctionSignature signature) {
super(context, signature);
}
开发者ID:exc-asia-and-europe,项目名称:imagemagick.xq,代码行数:4,代码来源:ConvertFunction.java
示例13: InfoFunction
import org.exist.xquery.XQueryContext; //导入依赖的package包/类
public InfoFunction(XQueryContext context, FunctionSignature signature) {
super(context, signature);
}
开发者ID:exc-asia-and-europe,项目名称:imagemagick.xq,代码行数:4,代码来源:InfoFunction.java
示例14: ScaleFunction
import org.exist.xquery.XQueryContext; //导入依赖的package包/类
public ScaleFunction(XQueryContext context, FunctionSignature signature) {
super(context, signature);
}
开发者ID:exc-asia-and-europe,项目名称:imagemagick.xq,代码行数:4,代码来源:ScaleFunction.java
示例15: IsCanceled
import org.exist.xquery.XQueryContext; //导入依赖的package包/类
public IsCanceled(XQueryContext context, FunctionSignature signature) {
super(context, signature);
}
开发者ID:shabanovd,项目名称:eXecutor,代码行数:4,代码来源:IsCanceled.java
示例16: Cancel
import org.exist.xquery.XQueryContext; //导入依赖的package包/类
public Cancel(XQueryContext context, FunctionSignature signature) {
super(context, signature);
}
开发者ID:shabanovd,项目名称:eXecutor,代码行数:4,代码来源:Cancel.java
示例17: IsDone
import org.exist.xquery.XQueryContext; //导入依赖的package包/类
public IsDone(XQueryContext context, FunctionSignature signature) {
super(context, signature);
}
开发者ID:shabanovd,项目名称:eXecutor,代码行数:4,代码来源:IsDone.java
示例18: Schedule
import org.exist.xquery.XQueryContext; //导入依赖的package包/类
public Schedule(XQueryContext context, FunctionSignature signature) {
super(context, signature);
}
开发者ID:shabanovd,项目名称:eXecutor,代码行数:4,代码来源:Schedule.java
示例19: GetDelay
import org.exist.xquery.XQueryContext; //导入依赖的package包/类
public GetDelay(XQueryContext context, FunctionSignature signature) {
super(context, signature);
}
开发者ID:shabanovd,项目名称:eXecutor,代码行数:4,代码来源:GetDelay.java
示例20: Submit
import org.exist.xquery.XQueryContext; //导入依赖的package包/类
public Submit(XQueryContext context, FunctionSignature signature) {
super(context, signature);
}
开发者ID:shabanovd,项目名称:eXecutor,代码行数:4,代码来源:Submit.java
注:本文中的org.exist.xquery.XQueryContext类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论