Search in sources :

Example 1 with FieldInfo

use of org.apache.atlas.query.TypeUtils.FieldInfo in project incubator-atlas by apache.

the class AbstractGremlinQueryOptimizerTest method getTestFieldInfo.

private FieldInfo getTestFieldInfo() throws AtlasException {
    AttributeDefinition def = new AttributeDefinition("foo", DataTypes.STRING_TYPE.getName(), Multiplicity.REQUIRED, false, null);
    AttributeInfo attrInfo = new AttributeInfo(TypeSystem.getInstance(), def, null);
    return new FieldInfo(DataTypes.STRING_TYPE, attrInfo, null, null);
}
Also used : AttributeInfo(org.apache.atlas.typesystem.types.AttributeInfo) AttributeDefinition(org.apache.atlas.typesystem.types.AttributeDefinition) FieldInfo(org.apache.atlas.query.TypeUtils.FieldInfo)

Aggregations

FieldInfo (org.apache.atlas.query.TypeUtils.FieldInfo)1 AttributeDefinition (org.apache.atlas.typesystem.types.AttributeDefinition)1 AttributeInfo (org.apache.atlas.typesystem.types.AttributeInfo)1