Specifies that the annotated property will be used as the fifo grouping property.
If defined, the FifoGroupingPoll or FifoGroupingPoll
modifiers can be used to return all space entries that match the selection template in FIFO order.
Different values of the FG property define groups of space entries that match each value -
FIFO ordering exists within each group and not between different groups.
There can be only one FIFO Grouping property per type.
FIFO grouping property can be declared on a nested property, by specifying a path as done for SpaceIndex.
For example:
1. To declare the 'symbolName' property as fifoGroupingProperty
will return all the space entries with symbolName equal to "symbolA" in FIFO order.
2. To index 'personalInfo.name':
CopyC#
[SpaceFifoGroupingProperty] public String SymbolName { get; set; } gigaSpace.take(new Symbol("symbolA"), timeout, <see cref="F:GigaSpaces.Core.TakeModifiers.FifoGroupingPoll" />)
CopyC#
[spaceFifoGroupingProperty(path = "name")] public Info PersonalInfo { get; set; }
Declaration Syntax
C# | Visual Basic | Visual C++ | J# |
public class SpaceFifoGroupingPropertyAttribute : Attribute
Public Class SpaceFifoGroupingPropertyAttribute _ Inherits Attribute
public ref class SpaceFifoGroupingPropertyAttribute : public Attribute
public class SpaceFifoGroupingPropertyAttribute extends Attribute
Members
All Members | Constructors | Methods | Properties | ||
Icon | Member | Description |
---|---|---|
SpaceFifoGroupingPropertyAttribute()()()() | Initializes a new instance of the SpaceFifoGroupingPropertyAttribute class | |
Equals(Object) |
Returns a value that indicates whether this instance is equal to a specified object.
(Inherited from Attribute.) | |
Finalize()()()() |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
GetHashCode()()()() |
Returns the hash code for this instance.
(Inherited from Attribute.) | |
GetType()()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
IsDefaultAttribute()()()() |
When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class.
(Inherited from Attribute.) | |
Match(Object) |
When overridden in a derived class, returns a value that indicates whether this instance equals a specified object.
(Inherited from Attribute.) | |
MemberwiseClone()()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
Path |
Gets or sets the fifo grouping property path.
The path specifies which property path is used for fifo grouping.
If none is defined - the property itself is used for fifo grouping.
| |
ToString()()()() |
Returns a String that represents the current Object.
(Inherited from Object.) | |
TypeId |
When implemented in a derived class, gets a unique identifier for this Attribute.
(Inherited from Attribute.) |
Inheritance Hierarchy
Object | ||
Attribute | ||
SpaceFifoGroupingPropertyAttribute |