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 boolean
equals(Object o)
int
hashCode()
TarantoolIndexMetadata
metadata(TarantoolMetadataOperations metadataOperations, TarantoolSpaceMetadata spaceMetadata)
Returns metadata object corresponding to the field identifier typeString
toIdentifier()
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:FieldIdentifier
Returns metadata object corresponding to the field identifier type- Specified by:
metadata
in interfaceFieldIdentifier<TarantoolIndexMetadata,String>
- Specified by:
metadata
in 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:FieldIdentifier
Get serializable form of the identifier- Specified by:
toIdentifier
in interfaceFieldIdentifier<TarantoolIndexMetadata,String>
- Specified by:
toIdentifier
in interfaceNamedIndex
- Returns:
- an object serializable into MessagePack
-
-