use of org.apache.ignite.lang.ByteArray in project ignite-3 by apache.
the class ConcurrentHashMapPartitionStorage method read.
/**
* {@inheritDoc}
*/
@Override
@Nullable
public DataRow read(SearchRow key) throws StorageException {
byte[] keyBytes = key.keyBytes();
byte[] valueBytes = map.get(new ByteArray(keyBytes));
return valueBytes == null ? null : new SimpleDataRow(keyBytes, valueBytes);
}
Aggregations