Class NamedIndexImpl
- java.lang.Object
-
- io.tarantool.driver.core.conditions.NamedIndexImpl
-
- All Implemented Interfaces:
FieldIdentifier<TarantoolIndexMetadata,String>,NamedIndex,Serializable
public class NamedIndexImpl extends Object implements NamedIndex
Represents an index defined by name- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NamedIndexImpl(String name)Construct index by its name
-
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 typeStringtoIdentifier()Get serializable form of the identifier
-
-
-
Constructor Detail
-
NamedIndexImpl
public NamedIndexImpl(String name)
Construct index by its name- Parameters:
name- index name, should not be empty
-
-
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,String>- Specified by:
metadatain interfaceNamedIndex- 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 String toIdentifier()
Description copied from interface:FieldIdentifierGet serializable form of the identifier- Specified by:
toIdentifierin interfaceFieldIdentifier<TarantoolIndexMetadata,String>- Specified by:
toIdentifierin interfaceNamedIndex- Returns:
- an object serializable into MessagePack
-
-