Skip to main content
Version: Java (Groovy)

getAttribute

The getAttribute method returns the value for the specified attribute key.

Syntax

table.getAttribute(key)

Parameters

ParameterTypeDescription
key>String

The name of the attribute.

Returns

The value for the specified attribute key, or null if there was none.

Examples

import io.deephaven.engine.table.impl.util.AppendOnlyArrayBackedInputTable
import io.deephaven.engine.table.AttributeMap

source = newTable(
doubleCol("Doubles", 3.1, 5.45, -1.0),
stringCol("Strings", "Creating", "New", "Tables")
)

result = AppendOnlyArrayBackedInputTable.make(source)

println source.getAttribute("AddOnly")
println result.getAttribute("AddOnly")