Class AdlsGen2Fetcher
- All Implemented Interfaces:
Configurable<AdlsGen2FetcherConfig>,EventListener<Event>,Fetcher,EventListener,Consumer<Event>
Fetcher for Azure Data Lake Storage Gen2, using references such as
abfss://filesystem@account.dfs.core.windows.net/path/to/file.
Access Control List (ACL)
When asked to (see AdlsGen2FetcherConfig.setAcl(AclFetchMode)),
this fetcher writes who may read each file in the standard
crawler.acl field, from the path's POSIX-style ACL: its
ACCESS entries granting r, the mask applied, with
other as everyone. A path level says who may go through
(has x on) every folder above the file, the file system's root
included. Users and groups are Microsoft Entra object ids, of the
directory entra:<storage account>. DEFAULT entries, which
only describe what new children get, are kept in the ACL's native part.
Azure role assignments (such as Storage Blob Data Reader) grant access besides these ACLs and are not read: a person with such a role may read files their ACLs do not show.
-
Field Summary
Fields inherited from interface com.norconex.commons.lang.config.Configurable
PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanacceptRequest(@NonNull FetchRequest fetchRequest) Optional method for subclasses to override when in need for additional acceptance logic beyond reference filters (which this abstract class provides).protected booleanbooleanprotected voidfetcherShutdown(CrawlerSession crawler) Invoked once per fetcher when the crawler ends.protected voidfetchMetadata(Doc doc, @NonNull Path path, @NonNull BasicFileAttributes attrs) inthashCode()protected PathresolvePath(String reference) Resolves a crawler reference (as found onDoc.getReference()) into a NIO.2Path.toString()Methods inherited from class com.norconex.crawler.fs.fetch.impl.AbstractNioFetcher
fetch, fetchChildPaths, fetchContent, fetchFileObject, fetchFolderMetadata, getOrOpenFileSystemMethods inherited from class com.norconex.crawler.core.fetch.AbstractFetcher
accept, accept, fetcherStartup
-
Constructor Details
-
AdlsGen2Fetcher
public AdlsGen2Fetcher()
-
-
Method Details
-
fetcherShutdown
Description copied from class:AbstractFetcherInvoked once per fetcher when the crawler ends. Default implementation does nothing.- Overrides:
fetcherShutdownin classAbstractNioFetcher<AdlsGen2FetcherConfig>- Parameters:
crawler- crawler
-
acceptRequest
Description copied from class:AbstractFetcherOptional method for subclasses to override when in need for additional acceptance logic beyond reference filters (which this abstract class provides). This method is only invoked if there are no reference filters configured on this class, or all of them accepts the request document. Default implementation does nothing (always returntrue).- Overrides:
acceptRequestin classAbstractFetcher<AdlsGen2FetcherConfig>- Parameters:
fetchRequest- the fetch request to evaluate (nevernull)- Returns:
trueif accepted
-
resolvePath
Description copied from class:AbstractNioFetcherResolves a crawler reference (as found onDoc.getReference()) into a NIO.2Path.- Specified by:
resolvePathin classAbstractNioFetcher<AdlsGen2FetcherConfig>- Parameters:
reference- the reference to resolve- Returns:
- the resolved path
- Throws:
IOException- if the reference cannot be resolved
-
fetchMetadata
protected void fetchMetadata(Doc doc, @NonNull @NonNull Path path, @NonNull @NonNull BasicFileAttributes attrs) throws IOException - Overrides:
fetchMetadatain classAbstractNioFetcher<AdlsGen2FetcherConfig>- Throws:
IOException
-
toString
- Overrides:
toStringin classAbstractNioFetcher<AdlsGen2FetcherConfig>
-
equals
- Overrides:
equalsin classAbstractNioFetcher<AdlsGen2FetcherConfig>
-
canEqual
- Overrides:
canEqualin classAbstractNioFetcher<AdlsGen2FetcherConfig>
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractNioFetcher<AdlsGen2FetcherConfig>
-
getConfiguration
-