isFlat
The isFlat
method returns a boolean value that is true
if the table is flat, or false
if it is not.
Syntax
source.isFlat()
Parameters
This method takes no arguments.
Returns
A boolean value that is true
if the table is flat or false
if it is not.
Example
In this example we create a time table and a result
table that has an aggregation. Next, we call isFlat
twice to see which of the tables is flat.
import static io.deephaven.api.agg.Aggregation.AggFirst
tt = timeTable("PT1S").update("X = ii")
result = tt.aggBy([AggFirst("Timestamp")], "X")
println tt.isFlat()
println result.isFlat()
- Log