use of org.apache.atlas.typesystem.types.IDataType in project incubator-atlas by apache.
the class DeleteHandler method getAttributeForEdge.
protected AttributeInfo getAttributeForEdge(String edgLabel) throws AtlasException {
AtlasEdgeLabel atlasEdgeLabel = new AtlasEdgeLabel(edgLabel);
IDataType referenceType = typeSystem.getDataType(IDataType.class, atlasEdgeLabel.getTypeName());
return getFieldMapping(referenceType).fields.get(atlasEdgeLabel.getAttributeName());
}
use of org.apache.atlas.typesystem.types.IDataType in project incubator-atlas by apache.
the class DefaultTypeCache method getTypeNames.
/**
* Return the list of type names in the type system which match the specified filter.
*
* @return list of type names
* @param filterMap - Map of filter for type names. Valid keys are CATEGORY, SUPERTYPE, NOT_SUPERTYPE
* For example, CATEGORY = TRAIT && SUPERTYPE contains 'X' && SUPERTYPE !contains 'Y'
*/
@Override
public Collection<String> getTypeNames(Map<TYPE_FILTER, String> filterMap) throws AtlasException {
assertFilter(filterMap);
List<String> typeNames = new ArrayList<>();
for (IDataType type : types_.values()) {
if (shouldIncludeType(type, filterMap)) {
typeNames.add(type.getName());
}
}
return typeNames;
}
Aggregations