How to Write Java RDD to MarkLogic Database

I want to ingest huge data ( csv format) in to MarkLogic using Spark Java API.

Anyone worked with Spark Data Pipeline with MarkLogic.

Thanks