.createFsIndexCollection(); Collection<FsIndexDescription> indexes = aggIndexes.values(); FsIndexDescription[] indexArray = new FsIndexDescription[indexes.size()];
/** * Gets the fs index collection. * * @return the fs index collection */ protected FsIndexCollection getFsIndexCollection() { FsIndexCollection fsic = getAnalysisEngineMetaData().getFsIndexCollection(); if (null == fsic) getAnalysisEngineMetaData().setFsIndexCollection( fsic = UIMAFramework.getResourceSpecifierFactory().createFsIndexCollection()); return fsic; }
/** * Constructs and returns a <code>ProcessingResourceMetaData</code> object * that contains the type system, indexes, and type priorities definitions * for the CAS. * * @return processing resource metadata object containing the * relevant parts of the CAS definition */ public ProcessingResourceMetaData getProcessingResourceMetaData() { ProcessingResourceMetaData md = UIMAFramework.getResourceSpecifierFactory().createProcessingResourceMetaData(); md.setTypeSystem(getTypeSystemDescription()); md.setTypePriorities(getTypePriorities()); FsIndexCollection indColl = UIMAFramework.getResourceSpecifierFactory().createFsIndexCollection(); indColl.setFsIndexes(getFsIndexDescriptions()); md.setFsIndexCollection(indColl); return md; } }
/** * Constructs and returns a <code>ProcessingResourceMetaData</code> object that contains the type * system, indexes, and type priorities definitions for the CAS. * * @return processing resource metadata object containing the relevant parts of the CAS definition */ public ProcessingResourceMetaData getMetadata() throws ResourceInitializationException { CasDefinition casDefinition = casManager.getCasDefinition(); ProcessingResourceMetaData md = UIMAFramework.getResourceSpecifierFactory() .createProcessingResourceMetaData(); md.setTypeSystem(casDefinition.getTypeSystemDescription()); md.setTypePriorities(casDefinition.getTypePriorities()); FsIndexCollection indColl = UIMAFramework.getResourceSpecifierFactory() .createFsIndexCollection(); indColl.setFsIndexes(casDefinition.getFsIndexDescriptions()); md.setFsIndexCollection(indColl); return md; }