本文整理匯總了Java中nl.vu.cs.ajira.actions.ActionConf.setParamInt方法的典型用法代碼示例。如果您正苦於以下問題:Java ActionConf.setParamInt方法的具體用法?Java ActionConf.setParamInt怎麽用?Java ActionConf.setParamInt使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類nl.vu.cs.ajira.actions.ActionConf
的用法示例。
在下文中一共展示了ActionConf.setParamInt方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: createIndex
import nl.vu.cs.ajira.actions.ActionConf; //導入方法依賴的package包/類
private void createIndex(ActionSequence actions) throws Exception {
// Repartition all the triples
ActionConf c = ActionFactory.getActionConf(PermuteTriples.class);
c.setParamBoolean(PermuteTriples.B_COUNT, countDerivations);
actions.add(c);
// Repartition the triples according to the information collected during
// the sampling
c = ActionFactory.getActionConf(PartitionToNodes.class);
c.setParamString(PartitionToNodes.S_PARTITIONER,
IndexPartitioner.class.getName());
if (countDerivations) {
c.setParamStringArray(PartitionToNodes.SA_TUPLE_FIELDS,
TByte.class.getName(), TLong.class.getName(),
TLong.class.getName(), TLong.class.getName(),
TInt.class.getName(), TInt.class.getName());
} else {
c.setParamStringArray(PartitionToNodes.SA_TUPLE_FIELDS,
TByte.class.getName(), TLong.class.getName(),
TLong.class.getName(), TLong.class.getName(),
TInt.class.getName());
}
c.setParamInt(PartitionToNodes.I_NPARTITIONS_PER_NODE, 6);
c.setParamBoolean(PartitionToNodes.B_SORT, true);
actions.add(c);
}
示例2: applyTo
import nl.vu.cs.ajira.actions.ActionConf; //導入方法依賴的package包/類
public static void applyTo(long s, long p, long o, int queryid,
ActionSequence actions) throws ActionNotConfiguredException {
ActionConf c = ActionFactory
.getActionConf(AddIntermediateTriples.class);
c.setParamLong(L_FIELD1, s);
c.setParamLong(L_FIELD2, p);
c.setParamLong(L_FIELD3, o);
c.setParamInt(I_QUERYID, queryid);
actions.add(c);
}
示例3: applyTo
import nl.vu.cs.ajira.actions.ActionConf; //導入方法依賴的package包/類
public static void applyTo(RDFTerm v1, RDFTerm v2, RDFTerm v3,
boolean explicit, int typeRules, long iteration,
ActionSequence actions) throws ActionNotConfiguredException {
ActionConf c = ActionFactory.getActionConf(QueryInputLayer.class);
c.setParamString(QueryInputLayer.S_INPUTLAYER,
DummyLayer.class.getName());
c.setParamWritable(
QueryInputLayer.W_QUERY,
new nl.vu.cs.ajira.actions.support.Query(TupleFactory.newTuple(
v1, v2, v3, new TInt(0))));
actions.add(c);
c = ActionFactory.getActionConf(ExpandQuery.class);
c.setParamBoolean(ExpandQuery.B_EXPLICIT, explicit);
c.setParamInt(ExpandQuery.I_TYPE_RULES, typeRules);
actions.add(c);
c = ActionFactory.getActionConf(CollectToNode.class);
c.setParamStringArray(CollectToNode.SA_TUPLE_FIELDS,
RDFTerm.class.getName(), RDFTerm.class.getName(),
RDFTerm.class.getName(), TBoolean.class.getName());
c.setParamBoolean(CollectToNode.B_SORT, true);
actions.add(c);
actions.add(ActionFactory.getActionConf(RemoveDuplicates.class));
c = ActionFactory.getActionConf(OptimalBCAlgo.class);
c.setParamLong(OptimalBCAlgo.L_FIELD1, v1.getValue());
c.setParamLong(OptimalBCAlgo.L_FIELD2, v2.getValue());
c.setParamLong(OptimalBCAlgo.L_FIELD3, v3.getValue());
c.setParamBoolean(OptimalBCAlgo.B_EXPLICIT, explicit);
c.setParamLong(OptimalBCAlgo.L_ITERATION, iteration);
actions.add(c);
}
示例4: applyTo
import nl.vu.cs.ajira.actions.ActionConf; //導入方法依賴的package包/類
public static ActionSequence applyTo(int cq, boolean nd, int ci,
boolean wd, boolean ic, ActionSequence actions)
throws ActionNotConfiguredException {
ActionConf c = ActionFactory.getActionConf(CalculateClosure.class);
c.setParamInt(I_CURRENT_QUERY, cq);
c.setParamBoolean(B_NEW_DERIVED, nd);
c.setParamInt(I_CURRENT_ITERATION, ci);
c.setParamBoolean(B_WRITE_TO_DISK, wd);
c.setParamBoolean(B_INCOMPLETE, ic);
actions.add(c);
return actions;
}
示例5: applyTo
import nl.vu.cs.ajira.actions.ActionConf; //導入方法依賴的package包/類
public static final void applyTo(RDFTerm v1, RDFTerm v2, RDFTerm v3,
int posSet, long nameSet, ActionSequence actions)
throws ActionNotConfiguredException {
// Get the query
ActionConf c = ActionFactory.getActionConf(QueryInputLayer.class);
c.setParamString(QueryInputLayer.S_INPUTLAYER,
DummyLayer.class.getName());
c.setParamWritable(
QueryInputLayer.W_QUERY,
new nl.vu.cs.ajira.actions.support.Query(TupleFactory.newTuple(
v1, v2, v3, new TInt(0))));
actions.add(c);
// Expand it in incremental fashion
c = ActionFactory.getActionConf(ExpandQuery.class);
c.setParamBoolean(ExpandQuery.B_EXPLICIT, true);
c.setParamInt(ExpandQuery.I_TYPE_RULES, TreeExpander.ONLY_FIRST_SECOND);
c.setParamBoolean(ExpandQuery.B_ALLOWRECURSION, false);
actions.add(c);
// Collect to node
c = ActionFactory.getActionConf(CollectToNode.class);
c.setParamStringArray(CollectToNode.SA_TUPLE_FIELDS,
RDFTerm.class.getName(), RDFTerm.class.getName(),
RDFTerm.class.getName(), TBoolean.class.getName());
actions.add(c);
// Check whether we should repeat the process
c = ActionFactory.getActionConf(IncrRuleBCAlgo.class);
c.setParamLong(L_NAMESET, nameSet);
c.setParamInt(I_POSSET, posSet);
c.setParamLong(L_FIELD1, v1.getValue());
c.setParamLong(L_FIELD2, v2.getValue());
c.setParamLong(L_FIELD3, v3.getValue());
actions.add(c);
}
示例6: addToChain
import nl.vu.cs.ajira.actions.ActionConf; //導入方法依賴的package包/類
public static void addToChain(String attribute, int size, int advance, AggregationFunction function, Set<String> attributesToPreserve, ActionSequence actions) throws ActionNotConfiguredException {
ActionConf c = ActionFactory.getActionConf(AggregateOperator.class);
c.setParamString(S_ATTRIBUTE, attribute);
c.setParamInt(I_SIZE, size);
c.setParamInt(I_ADVANCE, advance);
c.setParamInt(I_FUNCTION, function.ordinal());
c.setParamStringArray(SA_ATTRIBUTES_TO_PRESERVE, attributesToPreserve.toArray(new String[attributesToPreserve.size()]));
actions.add(c);
}
示例7: groupAndSumCountsTriples
import nl.vu.cs.ajira.actions.ActionConf; //導入方法依賴的package包/類
private void groupAndSumCountsTriples(ActionSequence actions)
throws ActionNotConfiguredException {
ActionConf c = ActionFactory.getActionConf(GroupBy.class);
c.setParamInt(GroupBy.I_NPARTITIONS_PER_NODE, 6);
c.setParamByteArray(GroupBy.BA_FIELDS_TO_GROUP, (byte) 0, (byte) 1,
(byte) 2);
c.setParamStringArray(GroupBy.SA_TUPLE_FIELDS, TLong.class.getName(),
TLong.class.getName(), TLong.class.getName(),
TInt.class.getName(), TInt.class.getName());
actions.add(c);
actions.add(ActionFactory
.getActionConf(nl.vu.cs.dynamite.index.SumCounts.class));
}
示例8: addToChain
import nl.vu.cs.ajira.actions.ActionConf; //導入方法依賴的package包/類
public static void addToChain(int numTuples, int numDistinctPhrases,
int numWordsPerPhrase, int numDistinctWords, int randomSeed,
ActionSequence actions) throws ActionNotConfiguredException {
ActionConf c = ActionFactory
.getActionConf(RandomTupleGeneratorAction.class);
c.setParamInt(I_NUM_TUPLES, numTuples);
c.setParamInt(I_NUM_DISTINCT_PHRASES, numDistinctPhrases);
c.setParamInt(I_NUM_WORDS_PER_PHRASE, numWordsPerPhrase);
c.setParamInt(I_NUM_DISTINCT_WORDS, numDistinctWords);
c.setParamInt(I_RANDOM_SEED, randomSeed);
actions.add(c);
}
示例9: addToChain
import nl.vu.cs.ajira.actions.ActionConf; //導入方法依賴的package包/類
public static void addToChain(int step, boolean firstIteration,
ActionSequence actions) throws ActionNotConfiguredException {
ActionConf c = ActionFactory.getActionConf(IncrAddController.class);
c.setParamInt(IncrAddController.I_STEP, step);
c.setParamBoolean(IncrAddController.B_FIRST_ITERATION, firstIteration);
actions.add(c);
}
示例10: addToChain
import nl.vu.cs.ajira.actions.ActionConf; //導入方法依賴的package包/類
public static void addToChain(int slidingWin, int emitFreq,
boolean evalMode, ActionSequence actions)
throws ActionNotConfiguredException {
ActionConf c = ActionFactory.getActionConf(RollingCountAction.class);
c.setParamInt(I_SLIDING_WINDOW_IN_SECONDS, slidingWin);
c.setParamInt(I_EMIT_FREQUENCY_IN_SECONDS, emitFreq);
c.setParamBoolean(B_EVAL_MODE, evalMode);
actions.add(c);
}
示例11: addIntermediateRankingToChain
import nl.vu.cs.ajira.actions.ActionConf; //導入方法依賴的package包/類
public static void addIntermediateRankingToChain(int topN, int emitFreq,
boolean evalMode, ActionSequence actions)
throws ActionNotConfiguredException {
ActionConf c = ActionFactory
.getActionConf(IntermediateRankingsAction.class);
c.setParamInt(I_TOP_N, topN);
c.setParamInt(I_EMIT_FREQUENCY_IN_SECONDS, emitFreq);
c.setParamBoolean(B_EVAL_MODE, evalMode);
actions.add(c);
}
示例12: addTotalRankingToChain
import nl.vu.cs.ajira.actions.ActionConf; //導入方法依賴的package包/類
public static void addTotalRankingToChain(int topN, int emitFreq,
boolean evalMode, ActionSequence actions)
throws ActionNotConfiguredException {
ActionConf c = ActionFactory.getActionConf(TotalRankingsAction.class);
c.setParamInt(I_TOP_N, topN);
c.setParamInt(I_EMIT_FREQUENCY_IN_SECONDS, emitFreq);
c.setParamBoolean(B_EVAL_MODE, evalMode);
actions.add(c);
}
示例13: addToChain
import nl.vu.cs.ajira.actions.ActionConf; //導入方法依賴的package包/類
public static void addToChain(ActionSequence actions, int step)
throws ActionNotConfiguredException {
ActionConf a = ActionFactory
.getActionConf(OneStepRulesControllerToMemory.class);
a.setParamInt(I_STEP, step);
actions.add(a);
}
示例14: addSplit
import nl.vu.cs.ajira.actions.ActionConf; //導入方法依賴的package包/類
private static void addSplit(ActionSequence sequence, OperatorInfo info, ExecutionPath path) throws Exception {
SplitExecutionPath splitPath = path.getSplitPath(info);
ActionSequence splitSequence = generateSequenceFrom(splitPath);
ActionConf actionConf = ActionFactory.getActionConf(Split.class);
actionConf.setParamWritable(Split.W_SPLIT, splitSequence);
actionConf.setParamInt(Split.I_RECONNECT_AFTER_ACTIONS, splitPath.getReconnectAfter());
sequence.add(actionConf);
}
示例15: createDoublePartitioningJob
import nl.vu.cs.ajira.actions.ActionConf; //導入方法依賴的package包/類
public static Job createDoublePartitioningJob(String inDir, String outDir)
throws ActionNotConfiguredException {
Job job = new Job();
ActionSequence actions = new ActionSequence();
ActionConf c = ActionFactory.getActionConf(ReadFromFiles.class);
c.setParamString(ReadFromFiles.S_PATH, inDir);
actions.add(c);
// A
actions.add(ActionFactory.getActionConf(A.class));
// Partition
c = ActionFactory.getActionConf(PartitionToNodes.class);
c.setParamStringArray(PartitionToNodes.SA_TUPLE_FIELDS,
TString.class.getName());
c.setParamInt(PartitionToNodes.I_NPARTITIONS_PER_NODE, 10);
actions.add(c);
// C
actions.add(ActionFactory.getActionConf(C.class));
// Partition
c = ActionFactory.getActionConf(PartitionToNodes.class);
c.setParamStringArray(PartitionToNodes.SA_TUPLE_FIELDS,
TString.class.getName());
c.setParamInt(PartitionToNodes.I_NPARTITIONS_PER_NODE, 1);
actions.add(c);
// D
actions.add(ActionFactory.getActionConf(D.class));
// Write the results on files
c = ActionFactory.getActionConf(WriteToFiles.class);
c.setParamString(WriteToFiles.S_PATH, outDir);
actions.add(c);
job.setActions(actions);
return job;
}