本文整理汇总了Java中com.orientechnologies.orient.core.sql.OSQLEngine类的典型用法代码示例。如果您正苦于以下问题:Java OSQLEngine类的具体用法?Java OSQLEngine怎么用?Java OSQLEngine使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
OSQLEngine类属于com.orientechnologies.orient.core.sql包,在下文中一共展示了OSQLEngine类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: registerCustomFunctions
import com.orientechnologies.orient.core.sql.OSQLEngine; //导入依赖的package包/类
private void registerCustomFunctions(final Iterable<OSQLFunctionAbstract> functions) {
log.debug("Registering custom OrientDB functions");
for (OSQLFunctionAbstract function : functions) {
log.debug("Registering OrientDB function " + function.getName());
OSQLEngine.getInstance().registerFunction(function.getName(), function);
}
}
开发者ID:sonatype,项目名称:nexus-public,代码行数:8,代码来源:OrientBootstrap.java
示例2: evaluateRecord
import com.orientechnologies.orient.core.sql.OSQLEngine; //导入依赖的package包/类
@Override
public Object evaluateRecord(OIdentifiable iRecord, ODocument iCurrentResult, OSQLFilterCondition iCondition, Object iLeft,
Object iRight, OCommandContext iContext) {
OSQLFunction function = OSQLEngine.getInstance().getFunction(keyword);
return function.execute(this, iRecord, iCurrentResult, new Object[] { iLeft, iCondition.getRight() }, iContext);
}
开发者ID:orientechnologies,项目名称:orientdb-spatial,代码行数:8,代码来源:OLuceneSpatialOperator.java
示例3: registerGraphFunctions
import com.orientechnologies.orient.core.sql.OSQLEngine; //导入依赖的package包/类
private static void registerGraphFunctions() {
OGraphFunctionFactory graphFunctions = new OGraphFunctionFactory();
Set<String> names = graphFunctions.getFunctionNames();
for (String name : names) {
System.out.println("Enabling ODB graph function: [" + name + "]");
OSQLEngine.getInstance().registerFunction(name, graphFunctions.createFunction(name));
OSQLFunction function = OSQLEngine.getInstance().getFunction(name);
if (function != null) {
// Dummy call, just to ensure that the class is loaded
function.getSyntax();
}
}
}
开发者ID:RISCOSS,项目名称:riscoss-corporate,代码行数:15,代码来源:ORiscossDatabase.java
示例4: startup
import com.orientechnologies.orient.core.sql.OSQLEngine; //导入依赖的package包/类
@Override
public void startup() {
super.startup();
Orient.instance().addDbLifecycleListener(this);
OIndexes.registerFactory(new OLuceneIndexFactory(true));
OSQLEngine.registerOperator(new OLuceneTextOperator());
OSQLEngine.registerOperator(new OLuceneWithinOperator());
OSQLEngine.registerOperator(new OLuceneNearOperator());
OLogManager.instance().info(this, "Lucene index plugin installed and active. Lucene version: %s",
OLuceneIndexManagerAbstract.LUCENE_VERSION);
}
开发者ID:orientechnologies,项目名称:orientdb-lucene,代码行数:13,代码来源:OLuceneIndexPlugin.java
示例5: registerOperators
import com.orientechnologies.orient.core.sql.OSQLEngine; //导入依赖的package包/类
protected void registerOperators() {
for (OQueryOperator operator : OLuceneSpatialOperatorFactory.OPERATORS) {
OSQLEngine.registerOperator(operator);
}
}
开发者ID:orientechnologies,项目名称:orientdb-spatial,代码行数:8,代码来源:OLuceneSpatialIndexPlugin.java
示例6: registerFunctions
import com.orientechnologies.orient.core.sql.OSQLEngine; //导入依赖的package包/类
protected void registerFunctions() {
for (String s : OSpatialFunctionsFactory.FUNCTIONS.keySet()) {
OSQLEngine.getInstance().registerFunction(s, (OSQLFunction) OSpatialFunctionsFactory.FUNCTIONS.get(s));
}
}
开发者ID:orientechnologies,项目名称:orientdb-spatial,代码行数:8,代码来源:OLuceneSpatialIndexPlugin.java
注:本文中的com.orientechnologies.orient.core.sql.OSQLEngine类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论