MCPcopy Create free account
hub / github.com/apache/nifi-minifi-cpp / get_attribute

Method get_attribute

python/minifi/__init__.py:113–119  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

111 self._ff = ff
112
113 def get_attribute(self, name):
114 attr = CAttribute(name.encode("UTF-8"), 0, 0)
115 if self._minifi.get_attribute(self._ff, attr) != 0:
116 return ""
117 if attr.value_size > 0:
118 return ctypes.cast(attr.value, ctypes.c_char_p).value.decode("ascii")
119 return ""
120
121 def add_attribute(self, name, value):
122 vallen = len(value)

Callers 1

onTriggerMethod · 0.80

Implementers 1

JniFlowFileextensions/jni/nifi-framework-jni/src/

Calls 3

CAttributeClass · 0.85
encodeMethod · 0.80
decodeMethod · 0.80

Tested by

no test coverage detected