public class RequestedLocalProperties extends Object implements Cloneable
Constructor and Description |
---|
RequestedLocalProperties()
Default constructor for trivial local properties.
|
RequestedLocalProperties(FieldSet groupedFields)
Creates interesting properties for the given grouping.
|
RequestedLocalProperties(Ordering ordering)
Creates interesting properties for the given ordering.
|
Modifier and Type | Method and Description |
---|---|
RequestedLocalProperties |
clone() |
boolean |
equals(Object obj) |
RequestedLocalProperties |
filterBySemanticProperties(SemanticProperties props,
int input)
Filters these properties by what can be preserved by the given SemanticProperties when propagated down
to the given input.
|
FieldSet |
getGroupedFields()
Gets the grouped fields.
|
Ordering |
getOrdering()
Gets the key order.
|
int |
hashCode() |
boolean |
isMetBy(LocalProperties other)
Checks, if this set of properties, as interesting properties, is met by the given
properties.
|
boolean |
isTrivial()
Checks, if the properties in this object are trivial, i.e.
|
void |
parameterizeChannel(Channel channel)
Parametrizes the local strategy fields of a channel such that the channel produces the desired local properties.
|
void |
reset()
This method resets the local properties to a state where no properties are given.
|
void |
setGroupedFields(FieldSet groupedFields)
Sets the fields that are grouped in these data properties.
|
void |
setOrdering(Ordering ordering)
Sets the order for these interesting local properties.
|
String |
toString() |
public RequestedLocalProperties()
public RequestedLocalProperties(Ordering ordering)
ordering
- The interesting ordering.public RequestedLocalProperties(FieldSet groupedFields)
groupedFields
- The set of fields whose grouping is interesting.public Ordering getOrdering()
null
if nothing is ordered.public void setOrdering(Ordering ordering)
ordering
- The order to set.public FieldSet getGroupedFields()
null
if nothing is grouped.public void setGroupedFields(FieldSet groupedFields)
groupedFields
- The fields that are grouped in these data properties.public boolean isTrivial()
public void reset()
public RequestedLocalProperties filterBySemanticProperties(SemanticProperties props, int input)
props
- The SemanticProperties which define which fields are preserved.input
- The index of the operator's input.public boolean isMetBy(LocalProperties other)
other
- The properties for which to check whether they meet these properties.public void parameterizeChannel(Channel channel)
channel
- The channel to parametrize.public RequestedLocalProperties clone()
Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.