public interface ResourceReferences
ResourceReference
sModifier and Type | Method and Description |
---|---|
List<ResourceReference> |
asList() |
List<String> |
asLocations() |
List<URL> |
asURLs() |
ResourceReferences |
flatten()
Iterates through the Resource References and for any reference that may represent more than one
resource, flattens the resource into a List of single-entity references.
|
ResourceReferences |
flattenRecursively()
Recursively iterates through the Resource References and for any reference that may represent more than one
resource, flattens the resource into a List of single-entity references.
|
int |
getCount() |
List<ResourceReference> asList()
int getCount()
ResourceReferences flatten()
asList()
would
return a single ResourceReference. But calling flatten()
would return a new ResourceReferences type whose asList()
method would return 10 ResourceReference objects, each with a ResourceType of FILE. The flatten operation is not recursive, meaning that if
a DIRECTORY is flattened, any sub-directories will be dropped. If the contents of the subdirectories are to be retained, use flattenRecursively()
instead.ResourceReferences flattenRecursively()
asList()
would
return a single ResourceReference. But calling flatten()
would return a new ResourceReferences type whose asList()
method would return 10 ResourceReference objects, each with a ResourceType of FILE. The flatten operation is recursive, meaning that if
a DIRECTORY is encountered, its reference will be replaced with a new reference for each file, even if that file exists 100 levels deep
in the directory structure.Copyright © 2023 Apache NiFi Project. All rights reserved.