Enum GridClientCacheFlag
- java.lang.Object
-
- java.lang.Enum<GridClientCacheFlag>
-
- org.apache.ignite.internal.client.GridClientCacheFlag
-
- All Implemented Interfaces:
Serializable,Comparable<GridClientCacheFlag>
public enum GridClientCacheFlag extends Enum<GridClientCacheFlag>
Cache projection flags that specify projection behaviour.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description KEEP_BINARIESDisable deserialization of binary objects on get operations.SKIP_STORESkips store, i.e. no read-through and no write-through behavior.
-
Field Summary
Fields Modifier and Type Field Description static intKEEP_BINARIES_MASKstatic intSKIP_STORE_MASK
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intencodeCacheFlags(Collection<GridClientCacheFlag> flagSet)Encodes cache flags to bit map.static GridClientCacheFlagfromOrdinal(int ord)Efficiently gets enumerated value from its ordinal.static Set<GridClientCacheFlag>parseCacheFlags(int cacheFlagsBits)Retrieves cache flags from corresponding bits.static GridClientCacheFlagvalueOf(String name)Returns the enum constant of this type with the specified name.static GridClientCacheFlag[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SKIP_STORE
public static final GridClientCacheFlag SKIP_STORE
Skips store, i.e. no read-through and no write-through behavior.
-
KEEP_BINARIES
public static final GridClientCacheFlag KEEP_BINARIES
Disable deserialization of binary objects on get operations. If set and binary marshaller is used,GridClientData.get(Object)andGridClientData.getAll(Collection)methods will return instances ofBinaryObjectclass instead of user objects. Use this flag if you don't have corresponding class on your client of if you want to get access to some individual fields, but do not want to fully deserialize the object.
-
-
Field Detail
-
SKIP_STORE_MASK
public static final int SKIP_STORE_MASK
- See Also:
- Constant Field Values
-
KEEP_BINARIES_MASK
public static final int KEEP_BINARIES_MASK
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static GridClientCacheFlag[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (GridClientCacheFlag c : GridClientCacheFlag.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GridClientCacheFlag valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
fromOrdinal
public static GridClientCacheFlag fromOrdinal(int ord)
Efficiently gets enumerated value from its ordinal.- Parameters:
ord- Ordinal value.- Returns:
- Enumerated value or
nullif ordinal out of range.
-
encodeCacheFlags
public static int encodeCacheFlags(Collection<GridClientCacheFlag> flagSet)
Encodes cache flags to bit map.- Parameters:
flagSet- Set of flags to be encoded.- Returns:
- Bit map.
-
parseCacheFlags
public static Set<GridClientCacheFlag> parseCacheFlags(int cacheFlagsBits)
Retrieves cache flags from corresponding bits.- Parameters:
cacheFlagsBits- Integer representation of cache flags bit set.- Returns:
- Cache flags.
-
-