public interface ConstantHandler
Modifier and Type | Method and Description |
---|---|
long |
getCachedBytes()
This method returns memory used for cache, in bytes
|
DataBuffer |
getConstantBuffer(boolean[] array,
DataType dataType)
This method returns DataBuffer with
constant equal to input array.
|
DataBuffer |
getConstantBuffer(double[] array,
DataType dataType)
This method returns DataBuffer with contant equal to input array.
|
DataBuffer |
getConstantBuffer(float[] array,
DataType dataType)
This method returns DataBuffer with contant equal to input array.
|
DataBuffer |
getConstantBuffer(int[] array,
DataType dataType) |
DataBuffer |
getConstantBuffer(long[] array,
DataType dataType)
This method returns DataBuffer with
constant equal to input array.
|
long |
moveToConstantSpace(DataBuffer dataBuffer)
If specific hardware supports dedicated constant memory,
this method forces DataBuffer passed in to be moved
to that constant memory.
|
void |
purgeConstants()
This method removes all cached constants
|
DataBuffer |
relocateConstantSpace(DataBuffer dataBuffer)
PLEASE NOTE: This method implementation is hardware-dependant.
|
long moveToConstantSpace(DataBuffer dataBuffer)
dataBuffer
- DataBuffer relocateConstantSpace(DataBuffer dataBuffer)
dataBuffer
- DataBuffer getConstantBuffer(boolean[] array, DataType dataType)
array
- DataBuffer getConstantBuffer(int[] array, DataType dataType)
DataBuffer getConstantBuffer(long[] array, DataType dataType)
array
- DataBuffer getConstantBuffer(double[] array, DataType dataType)
array
- DataBuffer getConstantBuffer(float[] array, DataType dataType)
array
- void purgeConstants()
long getCachedBytes()
Copyright © 2019. All rights reserved.