Class VectorStoreRecordField
- java.lang.Object
-
- com.microsoft.semantickernel.data.vectorstorage.definition.VectorStoreRecordField
-
- Direct Known Subclasses:
VectorStoreRecordDataField,VectorStoreRecordKeyField,VectorStoreRecordVectorField
public class VectorStoreRecordField extends Object
Represents a field in a record.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVectorStoreRecordField.Builder<T,U extends VectorStoreRecordField.Builder<T,U>>A builder for the VectorStoreRecordField class.
-
Constructor Summary
Constructors Constructor Description VectorStoreRecordField(String name, String storageName, Class<?> fieldType)Creates a new instance of the VectorStoreRecordField class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetEffectiveStorageName()Gets the effective storage name of the field.Class<?>getFieldType()Gets the field type.StringgetName()Gets the name of the field.StringgetStorageName()Gets the storage name of the field.
-
-
-
Constructor Detail
-
VectorStoreRecordField
public VectorStoreRecordField(@Nonnull String name, @Nullable String storageName, @Nonnull Class<?> fieldType)
Creates a new instance of the VectorStoreRecordField class.- Parameters:
name- the name of the fieldstorageName- the storage name of the fieldfieldType- the field type
-
-
Method Detail
-
getName
public String getName()
Gets the name of the field.- Returns:
- the name of the field
-
getStorageName
public String getStorageName()
Gets the storage name of the field.- Returns:
- the storage name of the field
-
getEffectiveStorageName
public String getEffectiveStorageName()
Gets the effective storage name of the field.If the storage name is not set, the name of the field is returned.
- Returns:
- the effective storage name of the field
-
getFieldType
public Class<?> getFieldType()
Gets the field type.- Returns:
- the field type
-
-