Class AdlsGen2Fetcher
java.lang.Object
com.norconex.crawler.core.fetch.AbstractFetcher<AdlsGen2FetcherConfig>
com.norconex.crawler.fs.fetch.impl.AbstractNioFetcher<AdlsGen2FetcherConfig>
com.norconex.crawler.fs.fetch.impl.adlsgen2.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.
-
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, 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, 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 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
-