Class QueryEntityEx
- java.lang.Object
-
- org.apache.ignite.cache.QueryEntity
-
- org.apache.ignite.internal.processors.query.QueryEntityEx
-
- All Implemented Interfaces:
Serializable
public class QueryEntityEx extends QueryEntity
Extended query entity with not-null fields support.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description QueryEntityEx()Default constructor.QueryEntityEx(QueryEntity other)Copying constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)booleanfillAbsentPKsWithDefaults()QueryEntityfillAbsentPKsWithDefaults(boolean fillAbsentPKsWithDefaults)IntegergetAffinityKeyInlineSize()Returns INLINE_SIZE for affinity field index.@Nullable Set<String>getNotNullFields()Gets names of fields that must be checked for null.IntegergetPrimaryKeyInlineSize()Returns INLINE_SIZE for PK index.inthashCode()booleanimplicitPk()QueryEntityimplicitPk(boolean implicitPk)booleanisPreserveKeysOrder()QueryEntitysetAffinityKeyInlineSize(Integer affKeyInlineSize)Sets INLINE_SIZE for AFFINITY_KEY index.QueryEntitysetNotNullFields(@Nullable Set<String> notNullFields)Sets names of fields that must checked for null.QueryEntitysetPreserveKeysOrder(boolean preserveKeysOrder)QueryEntitysetPrimaryKeyInlineSize(Integer pkInlineSize)Sets INLINE_SIZE for PK index.StringtoString()-
Methods inherited from class org.apache.ignite.cache.QueryEntity
addQueryField, findKeyType, findValueType, getAliases, getDefaultFieldValues, getFields, getFieldsPrecision, getFieldsScale, getIndexes, getKeyFieldName, getKeyFields, getKeyType, getTableName, getValueFieldName, getValueType, makePatch, setAliases, setDefaultFieldValues, setFields, setFieldsPrecision, setFieldsScale, setIndexes, setKeyFieldName, setKeyFields, setKeyType, setTableName, setValueFieldName, setValueType
-
-
-
-
Constructor Detail
-
QueryEntityEx
public QueryEntityEx()
Default constructor.
-
QueryEntityEx
public QueryEntityEx(QueryEntity other)
Copying constructor.- Parameters:
other- Instance to copy.
-
-
Method Detail
-
getNotNullFields
@Nullable public @Nullable Set<String> getNotNullFields()
Gets names of fields that must be checked for null.- Overrides:
getNotNullFieldsin classQueryEntity- Returns:
- Set of names of fields that must have non-null values.
-
setNotNullFields
public QueryEntity setNotNullFields(@Nullable @Nullable Set<String> notNullFields)
Sets names of fields that must checked for null.- Overrides:
setNotNullFieldsin classQueryEntity- Parameters:
notNullFields- Set of names of fields that must have non-null values.- Returns:
thisfor chaining.
-
isPreserveKeysOrder
public boolean isPreserveKeysOrder()
- Returns:
trueif order should be preserved,falseotherwise.
-
setPreserveKeysOrder
public QueryEntity setPreserveKeysOrder(boolean preserveKeysOrder)
- Parameters:
preserveKeysOrder- Whether the order should be preserved or not.- Returns:
thisfor chaining.
-
implicitPk
public boolean implicitPk()
-
implicitPk
public QueryEntity implicitPk(boolean implicitPk)
-
fillAbsentPKsWithDefaults
public boolean fillAbsentPKsWithDefaults()
- Returns:
trueif absent PK parts should be filled with defaults,falseotherwise.
-
fillAbsentPKsWithDefaults
public QueryEntity fillAbsentPKsWithDefaults(boolean fillAbsentPKsWithDefaults)
- Parameters:
fillAbsentPKsWithDefaults- Whether absent PK parts should be filled with defaults or not.- Returns:
thisfor chaining.
-
getPrimaryKeyInlineSize
public Integer getPrimaryKeyInlineSize()
Returns INLINE_SIZE for PK index.- Returns:
- INLINE_SIZE for PK index.
-
setPrimaryKeyInlineSize
public QueryEntity setPrimaryKeyInlineSize(Integer pkInlineSize)
Sets INLINE_SIZE for PK index.- Parameters:
pkInlineSize- INLINE_SIZE for PK index, whennull- inline size is calculated automativally.- Returns:
thisfor chaining.
-
getAffinityKeyInlineSize
public Integer getAffinityKeyInlineSize()
Returns INLINE_SIZE for affinity field index.- Returns:
- INLINE_SIZE for affinity field index.
-
setAffinityKeyInlineSize
public QueryEntity setAffinityKeyInlineSize(Integer affKeyInlineSize)
Sets INLINE_SIZE for AFFINITY_KEY index.- Parameters:
affKeyInlineSize- INLINE_SIZE for AFFINITY_KEY index, whennull- inline size is calculated automativally.- Returns:
thisfor chaining.
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classQueryEntity
-
hashCode
public int hashCode()
- Overrides:
hashCodein classQueryEntity
-
toString
public String toString()
- Overrides:
toStringin classQueryEntity
-
-