What is the meaning of Hastatus?

armed with a spear

hastate

(mainly with primus, secundus,...) a maniple, company of the hastātī

(mainly with primus, secundus,..., from the ellipsis of "centuriō ōrdinis (prīimī, secundī,...) hastātī" ("officer of the (first, second,...) hastātus")) a captain of an hastātus

Source: wiktionary.org