Package org.apache.sis.storage
Class FeatureQuery.NamedExpression
Object
NamedExpression
- All Implemented Interfaces:
- Serializable
- Enclosing class:
- FeatureQuery
An expression to be retrieved by a 
Query, together with the name to assign to it.
 In relational database terminology, subset of columns is called projection.
 Columns can be given to the FeatureQuery.setProjection(NamedExpression[]) method.- Since:
- 1.1
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionfinal GenericNameThe name to assign to the expression result, ornullif unspecified.final Expression<? super AbstractFeature,?> The literal, value reference or more complex expression to be retrieved by aQuery.
- 
Constructor SummaryConstructorsConstructorDescriptionNamedExpression(Expression<? super AbstractFeature, ?> expression) Creates a new column with the given expression and no name.NamedExpression(Expression<? super AbstractFeature, ?> expression, String alias) Creates a new column with the given expression and the given name.NamedExpression(Expression<? super AbstractFeature, ?> expression, GenericName alias) Creates a new column with the given expression and the given name.
- 
Method Summary
- 
Field Details- 
expressionThe literal, value reference or more complex expression to be retrieved by aQuery. Nevernull.
- 
aliasThe name to assign to the expression result, ornullif unspecified.
 
- 
- 
Constructor Details- 
NamedExpressionCreates a new column with the given expression and no name.- Parameters:
- expression- the literal, value reference or expression to be retrieved by a- Query.
 
- 
NamedExpressionCreates a new column with the given expression and the given name.- Parameters:
- expression- the literal, value reference or expression to be retrieved by a- Query.
- alias- the name to assign to the expression result, or- nullif unspecified.
 
- 
NamedExpressionCreates a new column with the given expression and the given name. This constructor creates aLocalNamefrom the given string.- Parameters:
- expression- the literal, value reference or expression to be retrieved by a- Query.
- alias- the name to assign to the expression result, or- nullif unspecified.
 
 
- 
- 
Method Details- 
hashCodepublic int hashCode()Returns a hash code value for this column.
- 
equalsCompares this column with the given object for equality.
- 
toStringReturns a string representation of this column for debugging purpose.
 
-