本文整理匯總了Java中cz.cuni.mff.odcleanstore.fusiontool.loaders.ExternalSortingInputLoader類的典型用法代碼示例。如果您正苦於以下問題:Java ExternalSortingInputLoader類的具體用法?Java ExternalSortingInputLoader怎麽用?Java ExternalSortingInputLoader使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
ExternalSortingInputLoader類屬於cz.cuni.mff.odcleanstore.fusiontool.loaders包,在下文中一共展示了ExternalSortingInputLoader類的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getInputLoader
import cz.cuni.mff.odcleanstore.fusiontool.loaders.ExternalSortingInputLoader; //導入依賴的package包/類
@Override
public InputLoader getInputLoader() throws IOException, LDFusionToolException {
long memoryLimit = calculateMemoryLimit();
if (config.isLocalCopyProcessing()) {
Collection<AllTriplesLoader> allTriplesLoaders = getAllTriplesLoaders();
return new ExternalSortingInputLoader(allTriplesLoaders,
LDFusionToolUtils.getResourceDescriptionProperties(config),
config.getTempDirectory(),
config.getParserConfig(),
memoryLimit);
} else {
Collection<DataSource> dataSources = getDataSources();
SparqlRestriction seedResourceDescription = getSeedResourceRestriction();
UriCollection seedSubjects = getSeedSubjects(dataSources, seedResourceDescription);
LargeCollectionFactory largeCollectionFactory = createLargeCollectionFactory();
return (isTransitive)
? new TransitiveSubjectsSetInputLoader(seedSubjects, dataSources, largeCollectionFactory, config.getOutputMappedSubjectsOnly())
: new SubjectsSetInputLoader(seedSubjects, dataSources, largeCollectionFactory, config.getOutputMappedSubjectsOnly());
}
}
示例2: getInputLoader
import cz.cuni.mff.odcleanstore.fusiontool.loaders.ExternalSortingInputLoader; //導入依賴的package包/類
@Override
public InputLoader getInputLoader() throws IOException, LDFusionToolException {
if (!config.isLocalCopyProcessing()) {
throw new IllegalStateException("Non-local copy processing is not supported in DPU");
}
long memoryLimit = calculateMemoryLimit();
Collection<AllTriplesLoader> allTriplesLoaders = getAllTriplesLoaders(rdfInputs);
return new ExternalSortingInputLoader(
allTriplesLoaders,
LDFusionToolUtils.getResourceDescriptionProperties(config),
executionContext.getWorkingDir(),
config.getParserConfig(),
memoryLimit);
}