當前位置: 首頁>>代碼示例>>Java>>正文


Java Expression.TRUE屬性代碼示例

本文整理匯總了Java中de.fuberlin.wiwiss.d2rq.expr.Expression.TRUE屬性的典型用法代碼示例。如果您正苦於以下問題:Java Expression.TRUE屬性的具體用法?Java Expression.TRUE怎麽用?Java Expression.TRUE使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在de.fuberlin.wiwiss.d2rq.expr.Expression的用法示例。


在下文中一共展示了Expression.TRUE屬性的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: createSimpleRelation

public static Relation createSimpleRelation(
		ConnectedDB database, Attribute[] attributes) {
	return new RelationImpl(database, AliasMap.NO_ALIASES, Expression.TRUE, Expression.TRUE,
			Collections.<Join>emptySet(), 
			new HashSet<ProjectionSpec>(Arrays.asList(attributes)), 
			false, Collections.<OrderSpec>emptyList(), -1, -1);
}
 
開發者ID:aitoralmeida,項目名稱:c4a_data_repository,代碼行數:7,代碼來源:Relation.java

示例2: setUp

public void setUp() {
	db = new DummyDB();
	projections1 = Collections.<ProjectionSpec>singleton(new Attribute(null, "table", "unique"));
	projections2 = Collections.<ProjectionSpec>singleton(new Attribute(null, "table", "not_unique"));
	unique = new RelationImpl(
			db, AliasMap.NO_ALIASES, Expression.TRUE, Expression.TRUE, 
			Collections.<Join>emptySet(), 
			projections1, true, OrderSpec.NONE, Relation.NO_LIMIT, Relation.NO_LIMIT);
	notUnique = new RelationImpl(
			db, AliasMap.NO_ALIASES, Expression.TRUE, Expression.TRUE, 
			Collections.<Join>emptySet(), 
			projections2, false, OrderSpec.NONE, Relation.NO_LIMIT, Relation.NO_LIMIT);
}
 
開發者ID:aitoralmeida,項目名稱:c4a_data_repository,代碼行數:13,代碼來源:CompatibleRelationGroupTest.java

示例3: testWithPrefix

public void testWithPrefix() {
	RelationName original = new RelationName(null, "original");
	RelationName alias = new RelationName(null, "alias");
	AliasMap aliases = AliasMap.create1(original, alias);
	Set<ProjectionSpec> projections = new HashSet<ProjectionSpec>(Arrays.asList(new Attribute[]{
			new Attribute(original, "id"), 
			new Attribute(alias, "value")}));
	Relation rel = new RelationImpl(
			null, aliases, Expression.TRUE, Expression.TRUE, 
			Collections.<Join>emptySet(), projections, false, OrderSpec.NONE, Relation.NO_LIMIT, Relation.NO_LIMIT);
	TripleRelation t = new TripleRelation(rel, 
			new TypedNodeMaker(TypedNodeMaker.URI, new Pattern("http://example.org/original/@@[email protected]@"), true),
			new FixedNodeMaker(Node.createURI("http://example.org/property"), false),
			new TypedNodeMaker(TypedNodeMaker.PLAIN_LITERAL, new Column(new Attribute(alias, "value")), false));
	assertEquals("URI(Pattern(http://example.org/original/@@[email protected]@))", 
			t.nodeMaker(TripleRelation.SUBJECT).toString());
	assertEquals("Literal(Column(alias.value))", 
			t.nodeMaker(TripleRelation.OBJECT).toString());
	assertEquals("AliasMap(original AS alias)", 
			t.baseRelation().aliases().toString());
	NodeRelation t4 = t.withPrefix(4);
	assertEquals("URI(Pattern(http://example.org/original/@@[email protected]@))", 
			t4.nodeMaker(TripleRelation.SUBJECT).toString());
	assertEquals("Literal(Column(T4_alias.value))", 
			t4.nodeMaker(TripleRelation.OBJECT).toString());
	assertEquals("AliasMap(original AS T4_alias, original AS T4_original)", 
			t4.baseRelation().aliases().toString());
}
 
開發者ID:aitoralmeida,項目名稱:c4a_data_repository,代碼行數:28,代碼來源:TripleRelationTest.java

示例4: setUp

public void setUp() {
	Relation base = new RelationImpl(null, AliasMap.NO_ALIASES, 
			Expression.TRUE, Expression.TRUE, 
			Collections.<Join>emptySet(), Collections.<ProjectionSpec>emptySet(), 
			false, OrderSpec.NONE, Relation.NO_LIMIT, Relation.NO_LIMIT);
	this.withURIPatternSubject = new TripleRelation(base,
			new TypedNodeMaker(TypedNodeMaker.URI, 
					new Pattern("http://test/[email protected]@[email protected]@"), true),
			new FixedNodeMaker(RDF.type.asNode(), false),
			new FixedNodeMaker(FOAF.Person.asNode(), false));
	this.withURIPatternSubjectAndObject = new TripleRelation(base,
			new TypedNodeMaker(TypedNodeMaker.URI, 
					new Pattern("http://test/[email protected]@[email protected]@"), true),
			new FixedNodeMaker(FOAF.knows.asNode(), false),
			new TypedNodeMaker(TypedNodeMaker.URI, 
					new Pattern("http://test/[email protected]@[email protected]@"), true));
	this.withURIColumnSubject = new TripleRelation(base,
			new TypedNodeMaker(TypedNodeMaker.URI, 
					new Column(new Attribute(null, "employees", "homepage")), false),
			new FixedNodeMaker(RDF.type.asNode(), false),
			new FixedNodeMaker(FOAF.Document.asNode(), false));
	this.withURIPatternSubjectAndURIColumnObject = new TripleRelation(base,
			new TypedNodeMaker(TypedNodeMaker.URI, 
					new Pattern("http://test/[email protected]@[email protected]@"), true),
			new FixedNodeMaker(FOAF.homepage.asNode(), false),
			new TypedNodeMaker(TypedNodeMaker.URI, 
					new Column(new Attribute(null, "employees", "homepage")), false));
	this.employeeChecker = new URIMakerRule().createRuleChecker(
			Node.createURI("http://test/person1"));
	this.foobarChecker = new URIMakerRule().createRuleChecker(
			Node.createURI("http://test/foobar"));
}
 
開發者ID:aitoralmeida,項目名稱:c4a_data_repository,代碼行數:32,代碼來源:URIMakerRuleTest.java

示例5: notNullExpression

public Expression notNullExpression(ConnectedDB db, AliasMap aliases) {
	if (db.isNullable(aliases.originalOf(this))) {
		return NotNull.create(new AttributeExpr(this));
	}
	return Expression.TRUE;
}
 
開發者ID:aitoralmeida,項目名稱:c4a_data_repository,代碼行數:6,代碼來源:Attribute.java

示例6: valueExpression

public Expression valueExpression(String value) {
	return this.value.equals(value) ? Expression.TRUE : Expression.FALSE;
}
 
開發者ID:aitoralmeida,項目名稱:c4a_data_repository,代碼行數:3,代碼來源:ConstantValueMaker.java

示例7: getRowNumLimitAsExpression

@Override
public Expression getRowNumLimitAsExpression(int limit) {
	if (limit == Database.NO_LIMIT) return Expression.TRUE;
	return SQLExpression.create("ROWNUM <= " + limit);
}
 
開發者ID:aitoralmeida,項目名稱:c4a_data_repository,代碼行數:5,代碼來源:Oracle.java

示例8: getRowNumLimitAsExpression

public Expression getRowNumLimitAsExpression(int limit) {
	return Expression.TRUE;
}
 
開發者ID:aitoralmeida,項目名稱:c4a_data_repository,代碼行數:3,代碼來源:SQL92.java

示例9: condition

public Expression condition() { return Expression.TRUE; } 
開發者ID:aitoralmeida,項目名稱:c4a_data_repository,代碼行數:1,代碼來源:Relation.java

示例10: softCondition

public Expression softCondition() { return Expression.TRUE; } 
開發者ID:aitoralmeida,項目名稱:c4a_data_repository,代碼行數:1,代碼來源:Relation.java


注:本文中的de.fuberlin.wiwiss.d2rq.expr.Expression.TRUE屬性示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。