duration is a native type in protocol v5. As such, it should have its own accessors, like row.getDuration or boundStatement.setDuration.
Added in 4.0.
The name is getCqlDuration to avoid confusion with Java's built-in Duration type (we couldn't reuse it because Cassandra's type behaves differently with regard to daylight savings and month lengths).