封装了BatchIndexer