Class IdIndexImpl
- java.lang.Object
-
- io.tarantool.driver.core.conditions.IdIndexImpl
-
- All Implemented Interfaces:
FieldIdentifier<TarantoolIndexMetadata,Integer>,IdIndex,Serializable
public class IdIndexImpl extends Object implements IdIndex
Represents an index defined by its id- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IdIndexImpl(int position)Construct index by its id
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)inthashCode()TarantoolIndexMetadatametadata(TarantoolMetadataOperations metadataOperations, TarantoolSpaceMetadata spaceMetadata)Returns metadata object corresponding to the field identifier typeIntegertoIdentifier()Get serializable form of the identifier
-
-
-
Method Detail
-
metadata
public TarantoolIndexMetadata metadata(TarantoolMetadataOperations metadataOperations, TarantoolSpaceMetadata spaceMetadata)
Description copied from interface:FieldIdentifierReturns metadata object corresponding to the field identifier type- Specified by:
metadatain interfaceFieldIdentifier<TarantoolIndexMetadata,Integer>- Specified by:
metadatain interfaceIdIndex- Parameters:
metadataOperations- for retrieving the operand metadata and checking the filed or index availabilityspaceMetadata- space metadata this field or index belongs to- Returns:
- name to be used in filter condition
-
toIdentifier
public Integer toIdentifier()
Description copied from interface:FieldIdentifierGet serializable form of the identifier- Specified by:
toIdentifierin interfaceFieldIdentifier<TarantoolIndexMetadata,Integer>- Specified by:
toIdentifierin interfaceIdIndex- Returns:
- an object serializable into MessagePack
-
-