Examples of FieldValueWriter


Examples of org.lilyproject.repository.impl.HBaseRepository.FieldValueWriter

     * @param fieldValues map of field names and values to be updated on the record
     * @return Put containing all field updates
     */
    public Put buildRecordUpdate(RecordId recordId, Map<QName, Object> fieldValues) {
        Put put = new Put(recordId.toBytes());
        FieldValueWriter fieldValueWriter = hbaseRepo.newFieldValueWriter(put, null);

        for (Entry<QName, Object> fieldEntry : fieldValues.entrySet()) {
            try {
                fieldValueWriter.addFieldValue(fieldTypes.getFieldType(fieldEntry.getKey()), fieldEntry.getValue(), null);
            } catch (Exception e) {
                throw new RuntimeException(e);
            }
        }

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.