Package com.qfs.chunk
Interface IAllocationSettings
-
- All Known Implementing Classes:
VectorsAllocationSettings
public interface IAllocationSettingsThis interface is intended to pass further details on how to allocate a chunk of a given type. Those settings will be ignored by the allocator if they do not apply for the given type.- Author:
- ActiveViam
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanequals(Object obj)intgetComponentType()Returns the component type of the vectors to allocate, as inTypes.TYPE_*.intgetId()The ID, that uniquely identifies those allocation settings.StringgetSwapDirectory()Returnsnullif swap is disabled, or the path in which to swap if swap is enabled.intgetVectorBlockSize()Returns the size of the blocks in which vectors will be allocated.inthashCode()
-
-
-
Method Detail
-
getSwapDirectory
String getSwapDirectory()
Returnsnullif swap is disabled, or the path in which to swap if swap is enabled.Only applies to vector fields.
If (and only if)
null, this allocated chunk is NOT swapped.- Returns:
- the directory in which we should swap the data,
nullif swap is disabled
-
getVectorBlockSize
int getVectorBlockSize()
Returns the size of the blocks in which vectors will be allocated.Only applies to vector fields.
If the size is equal to or less than
0, the allocator is responsible for picking a size.- Returns:
- the size of the blocks in which to allocate vectors
-
getComponentType
int getComponentType()
Returns the component type of the vectors to allocate, as inTypes.TYPE_*.- Returns:
- the component type of the vectors to allocate
- See Also:
IVector.getComponentType()
-
getId
int getId()
The ID, that uniquely identifies those allocation settings.Two instances of
IAllocationSettingsare equals if and only if they have the same ID.This ID must be positive.
It is also recommended that the call to this method be fast.
- Returns:
- the ID, that uniquely identifies those allocation settings
-
-