Class CosmosDBDocumentStoreReader<TimelineDoc extends TimelineDocument>
java.lang.Object
org.apache.hadoop.yarn.server.timelineservice.documentstore.reader.cosmosdb.CosmosDBDocumentStoreReader<TimelineDoc>
- All Implemented Interfaces:
AutoCloseable,DocumentStoreReader<TimelineDoc>
public class CosmosDBDocumentStoreReader<TimelineDoc extends TimelineDocument>
extends Object
implements DocumentStoreReader<TimelineDoc>
This is the Document Store Reader implementation for
DocumentStoreVendor.COSMOS_DB.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()fetchEntityTypes(String collectionName, org.apache.hadoop.yarn.server.timelineservice.reader.TimelineReaderContext context) readDocument(String collectionName, org.apache.hadoop.yarn.server.timelineservice.reader.TimelineReaderContext context, Class<TimelineDoc> timelineDocClass) readDocumentList(String collectionName, org.apache.hadoop.yarn.server.timelineservice.reader.TimelineReaderContext context, Class<TimelineDoc> timelineDocClass, long size)
-
Constructor Details
-
CosmosDBDocumentStoreReader
public CosmosDBDocumentStoreReader(org.apache.hadoop.conf.Configuration conf)
-
-
Method Details
-
readDocumentList
public List<TimelineDoc> readDocumentList(String collectionName, org.apache.hadoop.yarn.server.timelineservice.reader.TimelineReaderContext context, Class<TimelineDoc> timelineDocClass, long size) throws NoDocumentFoundException - Specified by:
readDocumentListin interfaceDocumentStoreReader<TimelineDoc extends TimelineDocument>- Throws:
NoDocumentFoundException
-
fetchEntityTypes
public Set<String> fetchEntityTypes(String collectionName, org.apache.hadoop.yarn.server.timelineservice.reader.TimelineReaderContext context) - Specified by:
fetchEntityTypesin interfaceDocumentStoreReader<TimelineDoc extends TimelineDocument>
-
readDocument
public TimelineDoc readDocument(String collectionName, org.apache.hadoop.yarn.server.timelineservice.reader.TimelineReaderContext context, Class<TimelineDoc> timelineDocClass) throws NoDocumentFoundException - Specified by:
readDocumentin interfaceDocumentStoreReader<TimelineDoc extends TimelineDocument>- Throws:
NoDocumentFoundException
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-