Skip to main content
Version: Java (Groovy)

getAttributes

The getAttributes method returns all the attributes in the source table's AttributeMap.

Syntax

table.getAttributes()
table.getAttributes(included)

Parameters

ParameterTypeDescription
includedPredicate<String>

A predicate to determine which attribute keys to include.

Returns

All of the attributes in the source table's AttributeMap.

Examples

In this example, we create an Input Table and then print the result of a call to getAttributes(), returning our Input Table's AttributeMap.

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 result.getAttributes()