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 boolean
equals(Object o)
int
hashCode()
TarantoolIndexMetadata
metadata(TarantoolMetadataOperations metadataOperations, TarantoolSpaceMetadata spaceMetadata)
Returns metadata object corresponding to the field identifier typeInteger
toIdentifier()
Get serializable form of the identifier
-
-
-
Method Detail
-
metadata
public TarantoolIndexMetadata metadata(TarantoolMetadataOperations metadataOperations, TarantoolSpaceMetadata spaceMetadata)
Description copied from interface:FieldIdentifier
Returns metadata object corresponding to the field identifier type- Specified by:
metadata
in interfaceFieldIdentifier<TarantoolIndexMetadata,Integer>
- Specified by:
metadata
in 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:FieldIdentifier
Get serializable form of the identifier- Specified by:
toIdentifier
in interfaceFieldIdentifier<TarantoolIndexMetadata,Integer>
- Specified by:
toIdentifier
in interfaceIdIndex
- Returns:
- an object serializable into MessagePack
-
-