public static class SetWindowFieldsOperation.ComputedField extends Object implements Field
Field
that the result of a computation done via an AggregationExpression
.Constructor and Description |
---|
ComputedField(String name,
AggregationExpression windowOperator)
Create a new
SetWindowFieldsOperation.ComputedField . |
ComputedField(String name,
AggregationExpression windowOperator,
SetWindowFieldsOperation.Window window)
Create a new
SetWindowFieldsOperation.ComputedField . |
Modifier and Type | Method and Description |
---|---|
String |
getName()
Returns the name of the field.
|
String |
getTarget()
Returns the target of the field.
|
SetWindowFieldsOperation.Window |
getWindow() |
AggregationExpression |
getWindowOperator() |
boolean |
isAliased()
Returns whether the Field is aliased, which means it has a name set different from the target.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isInternal
public ComputedField(String name, AggregationExpression windowOperator)
SetWindowFieldsOperation.ComputedField
.name
- the target field name.windowOperator
- the expression to calculate the field value.public ComputedField(String name, AggregationExpression windowOperator, @Nullable SetWindowFieldsOperation.Window window)
SetWindowFieldsOperation.ComputedField
.name
- the target field name.windowOperator
- the expression to calculate the field value.window
- the boundaries to operate within. Can be null.public String getName()
Field
public String getTarget()
Field
Field.getName()
should be returned.public boolean isAliased()
Field
public AggregationExpression getWindowOperator()
public SetWindowFieldsOperation.Window getWindow()
Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.