public void setBoundFloat(Column storeColumn, BoundType type, Float value) { int returnCode = ndbIndexScanOperation.setBound( storeColumn.getName(), convertBoundType(type), Utility.convertValue(storeColumn, value)); handleError(returnCode, ndbIndexScanOperation); }
public void setBytes(Column storeColumn, byte[] value) { // TODO use the string storage buffer instead of allocating a new buffer for each value int length = value.length; if (length > storeColumn.getLength()) { throw new ClusterJUserException( local.message( "ERR_Data_Too_Long", storeColumn.getName(), storeColumn.getLength(), length)); } ByteBuffer buffer = Utility.convertValue(storeColumn, value); int returnCode = ndbOperation.setValue(storeColumn.getColumnId(), buffer); handleError(returnCode, ndbOperation); }
public void equalBytes(Column storeColumn, byte[] value) { if (logger.isDetailEnabled()) logger.detail( "Column: " + storeColumn.getName() + " columnId: " + storeColumn.getColumnId() + " data length: " + value.length); ByteBuffer buffer = Utility.convertValue(storeColumn, value); int returnCode = ndbOperation.equal(storeColumn.getName(), buffer); handleError(returnCode, ndbOperation); }
public void setDecimal(Column storeColumn, BigDecimal value) { ByteBuffer buffer = Utility.convertValue(storeColumn, value); int returnCode = ndbOperation.setValue(storeColumn.getColumnId(), buffer); handleError(returnCode, ndbOperation); }
public void equalFloat(Column storeColumn, float value) { ByteBuffer buffer = Utility.convertValue(storeColumn, value); int returnCode = ndbOperation.equal(storeColumn.getName(), buffer); handleError(returnCode, ndbOperation); }