outV

How to designate the outgoing vertex to use when loading data from a data file.

Synopsis 

DSE5.0.9 and earlier:
outV "field_name", { 
  label "field_name" 
  [ key "key_name" | key key1_name: "key1_name", key2_name: "key2_name" ]
  [ exists() ]
}
DSE5.0.10 and later:
outV { 
  label "field_name" 
  [ key "key_name" | key key1_name: "key1_name", key2_name: "key2_name" ]
  ignore "field_name"
  [ exists() ]
}

Description 

In DSE versions 5.0.9 and earlier, sets the field name in the input file that will define the outgoing vertex of an edge. Both outV and inV must be defined in an edge mapping statement. In DSE 5.1.3 and later, the field_name is deleted from between the outV keyword and the {.

Examples 

DSE 5.0.10 and earlier: Set the field name for the outgoing vertex of an edge in a mapping script to ingredient.
//Sample line read:
// city_id|sensor_id|name
// santaCruz|93c4ec9b-68ff-455e-8668-1056ebc3689f|asparagus

// The outgoing vertex has a vertex label of ingredient, the particular vertex is defined as the one with
// the name of asparagus

outV "ingredient", {
        label "ingredient"
        key "name"
    }
The field name in the input file that defines the outgoing vertex is ingredient, the vertex has a vertex label of ingredient, and the key value name is supplied in the input file field set in this statement. The label and key must be set along with outV.
DSE 5.0.10 and later:
//Sample line read:
// cityId|sensorId|homeId|name
// santaCruz|93c4ec9b-68ff-455e-8668-1056ebc3689f|asparagus
// or JSON
// {"sensor": {"cityId": "santaCruz", "sensorId": "93c4ec9b-68ff-455e-8668-1056ebc3689f"}, "name": "asparagus"}

// The incoming vertex has a vertex label of fridgeSensor, the particular vertex is defined as the one with
// the cityId of santaCruz and a sensorId of 93c4ec9b-68ff-455e-8668-1056ebc3689f
outV {
        label "ingredient"
        key "name"
        exists()
        ignore "homeId"
        ignore "cityId"
        ignore "sensorId"
    }