Interface IStoreDescriptionBuilder.INamed
- All Superinterfaces:
IStoreDescriptionBuilder.ICanAddField<IStoreDescriptionBuilder.IUnkeyedTaggable>
- Enclosing interface:
IStoreDescriptionBuilder
public static interface IStoreDescriptionBuilder.INamed
extends IStoreDescriptionBuilder.ICanAddField<IStoreDescriptionBuilder.IUnkeyedTaggable>
Only the name of the store has been given, fields can be added.
- Author:
- ActiveViam
-
Method Summary
Modifier and TypeMethodDescriptionwithVectorField(String fieldName, String type) Adds a vector field to the store.Methods inherited from interface com.activeviam.database.datastore.api.description.IStoreDescriptionBuilder.ICanAddField
withField, withField, withField, withField, withField, withNullableField
-
Method Details
-
withVectorField
Description copied from interface:IStoreDescriptionBuilder.ICanAddFieldAdds a vector field to the store.The following example adds a vector field of type double, the vectors being of constant size 1000:
builder.withVectorField("field", "double").ofSize(1000).Those vectors can be inserted in the store as standard java primitive arrays (double[], float[], long[], int[]) and will be retrieved and handled as
IVector.- Specified by:
withVectorFieldin interfaceIStoreDescriptionBuilder.ICanAddField<IStoreDescriptionBuilder.IUnkeyedTaggable>- Parameters:
fieldName- the name of the field to addtype- the type of the field to add- Returns:
- the builder
- See Also:
-