Class MCRSolrFileIndexHandler
java.lang.Object
org.mycore.solr.index.handlers.MCRSolrAbstractIndexHandler
org.mycore.solr.index.handlers.stream.MCRSolrAbstractStreamIndexHandler
org.mycore.solr.index.handlers.stream.MCRSolrFileIndexHandler
- All Implemented Interfaces:
MCRSolrIndexHandler
-
Field Summary
Fields inherited from class org.mycore.solr.index.handlers.MCRSolrAbstractIndexHandler
commitWithin, solrClient
-
Constructor Summary
ConstructorDescriptionMCRSolrFileIndexHandler
(Path file, BasicFileAttributes attrs, org.apache.solr.client.solrj.SolrClient solrClient) -
Method Summary
Methods inherited from class org.mycore.solr.index.handlers.MCRSolrAbstractIndexHandler
getCommitWithin, getSolrClient, getSubHandlers, getUpdateRequest, setCommitWithin, setSolrServer
-
Field Details
-
file
-
attrs
-
-
Constructor Details
-
MCRSolrFileIndexHandler
public MCRSolrFileIndexHandler(Path file, BasicFileAttributes attrs, org.apache.solr.client.solrj.SolrClient solrClient)
-
-
Method Details
-
getStream
- Specified by:
getStream
in classMCRSolrAbstractStreamIndexHandler
-
index
Description copied from interface:MCRSolrIndexHandler
Commits something to solr.- Specified by:
index
in interfaceMCRSolrIndexHandler
- Specified by:
index
in classMCRSolrAbstractIndexHandler
- Throws:
org.apache.solr.client.solrj.SolrServerException
IOException
-
getStatistic
-
getDocuments
public int getDocuments()- Specified by:
getDocuments
in interfaceMCRSolrIndexHandler
- Overrides:
getDocuments
in classMCRSolrAbstractIndexHandler
-
toString
-