public class TimelineCollectionReader extends Object
CollectionType
under a specific DocumentStoreVendor
backend.Constructor and Description |
---|
TimelineCollectionReader(org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
Set<String> |
fetchEntityTypes(org.apache.hadoop.yarn.server.timelineservice.reader.TimelineReaderContext context)
Fetches the list of Entity Types i.e (YARN_CONTAINER,
YARN_APPLICATION_ATTEMPT etc.) for an application Id.
|
TimelineEntityDocument |
readDocument(org.apache.hadoop.yarn.server.timelineservice.reader.TimelineReaderContext context)
Read a document from
DocumentStoreVendor backend for
a CollectionType . |
List<TimelineEntityDocument> |
readDocuments(org.apache.hadoop.yarn.server.timelineservice.reader.TimelineReaderContext context,
long documentsSize)
Read a list of documents from
DocumentStoreVendor backend for
a CollectionType . |
public TimelineCollectionReader(org.apache.hadoop.conf.Configuration conf) throws org.apache.hadoop.yarn.exceptions.YarnException
org.apache.hadoop.yarn.exceptions.YarnException
public TimelineEntityDocument readDocument(org.apache.hadoop.yarn.server.timelineservice.reader.TimelineReaderContext context) throws IOException
DocumentStoreVendor
backend for
a CollectionType
.context
- of the timeline readerIOException
- on error while readingpublic List<TimelineEntityDocument> readDocuments(org.apache.hadoop.yarn.server.timelineservice.reader.TimelineReaderContext context, long documentsSize) throws IOException
DocumentStoreVendor
backend for
a CollectionType
.context
- of the timeline readerdocumentsSize
- to limitIOException
- on error while readingpublic Set<String> fetchEntityTypes(org.apache.hadoop.yarn.server.timelineservice.reader.TimelineReaderContext context)
context
- of the timeline readerCopyright © 2008–2020 Apache Software Foundation. All rights reserved.