Class TimelineCollectionWriter<Document extends TimelineDocument>
java.lang.Object
org.apache.hadoop.yarn.server.timelineservice.documentstore.writer.TimelineCollectionWriter<Document>
This is a generic Collection Writer that can be used for writing documents
belonging to different
CollectionType under a specific
DocumentStoreVendor backend.-
Constructor Summary
ConstructorsConstructorDescriptionTimelineCollectionWriter(CollectionType collectionType, org.apache.hadoop.conf.Configuration conf) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidflush()voidwriteDocument(Document timelineDocument)
-
Constructor Details
-
TimelineCollectionWriter
public TimelineCollectionWriter(CollectionType collectionType, org.apache.hadoop.conf.Configuration conf) throws org.apache.hadoop.yarn.exceptions.YarnException - Throws:
org.apache.hadoop.yarn.exceptions.YarnException
-
-
Method Details
-
writeDocument
-
flush
public void flush() -
close
- Throws:
Exception
-