MCPcopy Create free account
hub / github.com/apache/storm / stateQuery

Method stateQuery

storm-client/src/jvm/org/apache/storm/trident/Stream.java:340–350  ·  view source on GitHub ↗
(TridentState state, Fields inputFields, QueryFunction function, Fields functionFields)

Source from the content-addressed store, hash-verified

338 }
339
340 public Stream stateQuery(TridentState state, Fields inputFields, QueryFunction function, Fields functionFields) {
341 projectionValidation(inputFields);
342 String stateId = state.node.stateInfo.id;
343 Node n = new ProcessorNode(topology.getUniqueStreamId(),
344 name,
345 TridentUtils.fieldsConcat(getOutputFields(), functionFields),
346 functionFields,
347 new StateQueryProcessor(stateId, inputFields, function));
348 topology.colocate.get(stateId).add(n);
349 return topology.addSourcedNode(this, n);
350 }
351
352 public Stream stateQuery(TridentState state, QueryFunction function, Fields functionFields) {
353 return stateQuery(state, null, function, functionFields);

Callers 13

buildTopologyMethod · 0.95
buildTopologyMethod · 0.95
buildTopologyMethod · 0.95
buildTopologyMethod · 0.95
getTopologyMethod · 0.95
testWordCountMethod · 0.45
buildTopologyMethod · 0.45
buildTopologyMethod · 0.45
buildTopologyMethod · 0.45

Calls 7

projectionValidationMethod · 0.95
fieldsConcatMethod · 0.95
getOutputFieldsMethod · 0.95
addSourcedNodeMethod · 0.80
addMethod · 0.65
getMethod · 0.65
getUniqueStreamIdMethod · 0.45

Tested by 4

testWordCountMethod · 0.36