Interface DocumentStoreReader<Document extends TimelineDocument>
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
CosmosDBDocumentStoreReader
Every
DocumentStoreVendor have to implement this for creating
reader to its backend.-
Method Summary
Modifier and TypeMethodDescriptionfetchEntityTypes(String collectionName, org.apache.hadoop.yarn.server.timelineservice.reader.TimelineReaderContext context) readDocument(String collectionName, org.apache.hadoop.yarn.server.timelineservice.reader.TimelineReaderContext context, Class<Document> documentClass) readDocumentList(String collectionName, org.apache.hadoop.yarn.server.timelineservice.reader.TimelineReaderContext context, Class<Document> documentClass, long documentsSize) Methods inherited from interface java.lang.AutoCloseable
close
-
Method Details
-
readDocument
Document readDocument(String collectionName, org.apache.hadoop.yarn.server.timelineservice.reader.TimelineReaderContext context, Class<Document> documentClass) throws NoDocumentFoundException - Throws:
NoDocumentFoundException
-
readDocumentList
List<Document> readDocumentList(String collectionName, org.apache.hadoop.yarn.server.timelineservice.reader.TimelineReaderContext context, Class<Document> documentClass, long documentsSize) throws NoDocumentFoundException - Throws:
NoDocumentFoundException
-
fetchEntityTypes
-