MCPcopy Create free account
hub / github.com/apache/arrow / ggandiva_binary_literal_node_get_value

Function ggandiva_binary_literal_node_get_value

c_glib/gandiva-glib/node.cpp:1112–1122  ·  view source on GitHub ↗

* ggandiva_binary_literal_node_get_value: * @node: A #GGandivaBinaryLiteralNode. * * Returns: (transfer none): The value of the binary literal. * * Since: 0.12.0 */

Source from the content-addressed store, hash-verified

1110 * Since: 0.12.0
1111 */
1112GBytes *
1113ggandiva_binary_literal_node_get_value(GGandivaBinaryLiteralNode *node)
1114{
1115 auto priv = GGANDIVA_BINARY_LITERAL_NODE_GET_PRIVATE(node);
1116 if (!priv->value) {
1117 auto value = ggandiva_literal_node_get<std::string>(GGANDIVA_LITERAL_NODE(node));
1118 priv->value = g_bytes_new(value.data(), value.size());
1119 }
1120
1121 return priv->value;
1122}
1123
1124G_DEFINE_TYPE(GGandivaStringLiteralNode,
1125 ggandiva_string_literal_node,

Callers

nothing calls this directly

Calls 2

dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected