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 booleanequals(Object o)inthashCode()TarantoolFieldMetadatametadata(TarantoolMetadataOperations metadataOperations, TarantoolSpaceMetadata spaceMetadata)Returns metadata object corresponding to the field identifier typeStringtoIdentifier()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:FieldIdentifierReturns metadata object corresponding to the field identifier type- Specified by:
metadatain interfaceFieldIdentifier<TarantoolFieldMetadata,String>- Specified by:
metadatain 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:FieldIdentifierGet serializable form of the identifier- Specified by:
toIdentifierin interfaceFieldIdentifier<TarantoolFieldMetadata,String>- Specified by:
toIdentifierin interfaceNamedField- Returns:
- an object serializable into MessagePack
-
-