Class NamedFieldImpl
- java.lang.Object
-
- io.tarantool.driver.core.conditions.NamedFieldImpl
-
- All Implemented Interfaces:
FieldIdentifier<TarantoolFieldMetadata,String>
,NamedField
,Serializable
public class NamedFieldImpl extends Object implements NamedField
Represents a field defined by name- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NamedFieldImpl(String name)
Construct field using its name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
int
hashCode()
TarantoolFieldMetadata
metadata(TarantoolMetadataOperations metadataOperations, TarantoolSpaceMetadata spaceMetadata)
Returns metadata object corresponding to the field identifier typeString
toIdentifier()
Get serializable form of the identifier
-
-
-
Constructor Detail
-
NamedFieldImpl
public NamedFieldImpl(String name)
Construct field using its name.- Parameters:
name
- field name, should not be empty
-
-
Method Detail
-
metadata
public TarantoolFieldMetadata metadata(TarantoolMetadataOperations metadataOperations, TarantoolSpaceMetadata spaceMetadata)
Description copied from interface:FieldIdentifier
Returns metadata object corresponding to the field identifier type- Specified by:
metadata
in interfaceFieldIdentifier<TarantoolFieldMetadata,String>
- Specified by:
metadata
in interfaceNamedField
- 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<TarantoolFieldMetadata,String>
- Specified by:
toIdentifier
in interfaceNamedField
- Returns:
- an object serializable into MessagePack
-
-