registerTempTable is a part of the 1.x API and has been deprecated in Spark 2.0.
createOrReplaceTempView and createTempView have been introduced in Spark 2.0, as a replacement for registerTempTable.
Other than that registerTempTable and createOrReplaceTempView functionally equivalent and the former one calls the latter one.