public synchronized void add(final byte[] dataId, final GeoWaveValue value) { put(dataId, DataIndexUtils.serializeDataIndexValue(value, visibilityEnabled)); }
public void add(final byte[] dataId, final GeoWaveValue value) { preAdd(); getCurrentAsyncCollection().putAsync( dataId, DataIndexUtils.serializeDataIndexValue(value, visibilityEnabled)); }
retVal[i].set( CassandraField.GW_VALUE_KEY.getBindMarkerName(), ByteBuffer.wrap(DataIndexUtils.serializeDataIndexValue(value, visibilityEnabled)), ByteBuffer.class); i++;
private RowMutations rowToMutation(final GeoWaveRow row) { final RowMutations mutation = new RowMutations(row.getDataId()); for (final GeoWaveValue value : row.getFieldValues()) { final Put put = new Put(row.getDataId()); // visibility is in the visibility column so no need to serialize it with the value put.addColumn( StringUtils.stringToBinary(ByteArrayUtils.shortToString(row.getAdapterId())), new byte[0], DataIndexUtils.serializeDataIndexValue(value, false)); if ((value.getVisibility() != null) && (value.getVisibility().length > 0)) { put.setCellVisibility( new CellVisibility(StringUtils.stringFromBinary(value.getVisibility()))); } try { mutation.add(put); } catch (final IOException e) { LOGGER.error("Error creating HBase row mutation: " + e.getMessage()); } } return mutation; } }
DynamoDBRow.GW_VALUE_KEY, new AttributeValue().withB( ByteBuffer.wrap(DataIndexUtils.serializeDataIndexValue(value, false))));