code: function IndexJob (client, namespace, indexName) {
    this.client = client
    this.namespace = namespace
    this.indexName = indexName
  }
docs: @class IndexJob
  @classdesc Potentially long-running index creation job.
  @extends Job
  
  @see {@link Client#createIndex}
  
  @example
  
  const Aerospike = require('aerospike')
  
  let binName = 'location'
  let indexName = 'locationIndex'
  let options = {
  ns: 'test'
  set: 'demo'
  bin: binName,
  index: indexName,
  datatype: Aerospike.indexDataType.GEO2DSPHERE
  }
  
  Aerospike.connect()
  .then(client => {
  client.createIndex(options)
  .then(job => job.wait())
  .then(() => {
  console.info('Secondary index %s on %s was created successfully', indexName, binName)
  client.close()
  })
  .catch(error => {
  console.error('Error creating index:', error)
  client.close()
  })
  })
  .catch(error => console.error('Error connecting to cluster:',  error))