Index Mappings using Java API using Elastic 6.2.2 library

How do i get the Index mappings using Elastic 6.2.2 java library? Is there any api available to get the index mappings ?

You need to update the client to 6.8.
And you should also upgrade the server to 6.8