本文整理匯總了Java中nl.vu.cs.ajira.actions.ActionConf.setParamBoolean方法的典型用法代碼示例。如果您正苦於以下問題:Java ActionConf.setParamBoolean方法的具體用法?Java ActionConf.setParamBoolean怎麽用?Java ActionConf.setParamBoolean使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類nl.vu.cs.ajira.actions.ActionConf
的用法示例。
在下文中一共展示了ActionConf.setParamBoolean方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getResultsQuery
import nl.vu.cs.ajira.actions.ActionConf; //導入方法依賴的package包/類
public static ActionSequence getResultsQuery(ActionSequence chain,
Tuple tuple, boolean converge) throws ActionNotConfiguredException {
// Get the pattern
Query q = new Query(tuple);
ActionConf c = ActionFactory.getActionConf(QueryInputLayer.class);
c.setParamWritable(QueryInputLayer.W_QUERY, q);
c.setParamString(QueryInputLayer.S_INPUTLAYER,
QueryInputLayer.DEFAULT_LAYER);
chain.add(c);
if (converge) {
c = ActionFactory.getActionConf(CollectToNode.class);
c.setParamStringArray(CollectToNode.SA_TUPLE_FIELDS,
RDFTerm.class.getName(), RDFTerm.class.getName(),
RDFTerm.class.getName());
c.setParamBoolean(CollectToNode.B_SORT, true);
chain.add(c);
chain.add(ActionFactory.getActionConf(RemoveDuplicates.class));
}
return chain;
}
示例2: 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);
}
示例3: 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;
}
示例4: addToChain
import nl.vu.cs.ajira.actions.ActionConf; //導入方法依賴的package包/類
public static void addToChain(int minimumStep, int outputStep, int ruleId,
ActionSequence actions, boolean incrementalFlag)
throws ActionNotConfiguredException {
ActionConf a = ActionFactory
.getActionConf(PrecomputedRuleExecutor.class);
a.setParamInt(I_RULE_ID, ruleId);
a.setParamBoolean(B_INCREMENTAL_FLAG, incrementalFlag);
a.setParamInt(I_MINIMUM_STEP, minimumStep);
a.setParamInt(I_OUTPUT_STEP, outputStep);
actions.add(a);
}
示例5: createJob
import nl.vu.cs.ajira.actions.ActionConf; //導入方法依賴的package包/類
public static Job createJob(String filename)
throws ActionNotConfiguredException {
Job job = new Job();
ActionSequence actions = new ActionSequence();
// Input
RandomTupleGeneratorAction.addToChain(numTuples, numDistinctPhrases,
numWordsPerPhrase, numDistinctWords, seed, actions);
// Count the words
actions.add(ActionFactory.getActionConf(CountWords.class));
ActionConf action = ActionFactory.getActionConf(PartitionToNodes.class);
action.setParamInt(PartitionToNodes.I_NPARTITIONS_PER_NODE,
numPartitions);
action.setParamBoolean(PartitionToNodes.B_SORT, false);
action.setParamBoolean(PartitionToNodes.B_STREAMING, true);
byte[] bytes = { 0 };
action.setParamByteArray(PartitionToNodes.BA_PARTITION_FIELDS, bytes);
action.setParamStringArray(PartitionToNodes.SA_TUPLE_FIELDS,
TString.class.getName());
actions.add(action);
// Sum the counts
actions.add(ActionFactory.getActionConf(SumCounts.class));
// Collect to node
action = ActionFactory.getActionConf(CollectToNode.class);
action.setParamBoolean(CollectToNode.B_SORT, false);
action.setParamBoolean(CollectToNode.B_STREAMING_MODE, true);
action.setParamStringArray(CollectToNode.SA_TUPLE_FIELDS,
TString.class.getName(), TLong.class.getName());
actions.add(action);
// Print the results
TuplePrinter.addToChain(filename, actions);
job.setActions(actions);
return job;
}
示例6: 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);
}
示例7: 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);
}
示例8: 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);
}
示例9: sort
import nl.vu.cs.ajira.actions.ActionConf; //導入方法依賴的package包/類
public static void sort(ActionSequence actions)
throws ActionNotConfiguredException {
ActionConf c = ActionFactory.getActionConf(PartitionToNodes.class);
c.setParamInt(PartitionToNodes.I_NPARTITIONS_PER_NODE,
nl.vu.cs.dynamite.reasoner.support.Consts.SORT_NUM_THREADS);
c.setParamStringArray(PartitionToNodes.SA_TUPLE_FIELDS,
TLong.class.getName(), TLong.class.getName(),
TLong.class.getName(), TInt.class.getName());
c.setParamBoolean(PartitionToNodes.B_SORT, true);
c.setParamByteArray(PartitionToNodes.BA_PARTITION_FIELDS, (byte) 0,
(byte) 1, (byte) 2);
actions.add(c);
}
示例10: addToChain
import nl.vu.cs.ajira.actions.ActionConf; //導入方法依賴的package包/類
public static void addToChain(String attribute, int size, int channelId1, int channelId2, boolean winJoin, ActionSequence actions) throws ActionNotConfiguredException {
ActionConf c = ActionFactory.getActionConf(JoinOperator.class);
c.setParamString(S_ATTRIBUTE, attribute);
c.setParamInt(I_SIZE, size);
c.setParamInt(I_CHANNEL_ID_1, channelId1);
c.setParamInt(I_CHANNEL_ID_2, channelId2);
c.setParamBoolean(B_WINDOW_JOIN, winJoin);
actions.add(c);
}
示例11: addToChain
import nl.vu.cs.ajira.actions.ActionConf; //導入方法依賴的package包/類
public static void addToChain(String attribute, int slack, Ordering ordering, ActionSequence actions) throws ActionNotConfiguredException {
ActionConf c = ActionFactory.getActionConf(SortOperator.class);
c.setParamString(S_ATTRIBUTE, attribute);
c.setParamInt(I_SLACK, slack);
c.setParamBoolean(B_ASCENDING, ordering == Ordering.ASCENDING);
actions.add(c);
}
示例12: 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);
}
示例13: addToChain
import nl.vu.cs.ajira.actions.ActionConf; //導入方法依賴的package包/類
public static void addToChain(ActionSequence actions, String fileName)
throws ActionNotConfiguredException {
ActionConf c = ActionFactory.getActionConf(Debugging.class);
c.setParamBoolean(B_PRINT_ON_FILE, true);
c.setParamString(S_FILE_NAME, fileName);
actions.add(c);
}
示例14: addToChain
import nl.vu.cs.ajira.actions.ActionConf; //導入方法依賴的package包/類
public static void addToChain(int minimumStep, int outputStep,
boolean incrementalFlag, ActionSequence actions)
throws ActionNotConfiguredException {
ActionConf c = ActionFactory.getActionConf(PrecompGenericReduce.class);
c.setParamBoolean(PrecompGenericReduce.B_INCREMENTAL_FLAG,
incrementalFlag);
c.setParamInt(PrecompGenericReduce.I_MINIMUM_STEP, minimumStep);
c.setParamInt(PrecompGenericReduce.I_OUTPUT_STEP, outputStep);
actions.add(c);
}
示例15: addToChain
import nl.vu.cs.ajira.actions.ActionConf; //導入方法依賴的package包/類
public static void addToChain(boolean firstIteration, boolean countingAlgo,
ActionSequence actions) throws ActionNotConfiguredException {
ActionConf c = ActionFactory.getActionConf(IncrRemoveController.class);
c.setParamBoolean(B_FIRST_ITERATION, firstIteration);
c.setParamBoolean(B_IS_COUNTING, countingAlgo);
actions.add(c);
}