public Object deserialize ( FieldMapping fieldMapping , Result result ) { String fieldName = fieldMapping . getFieldName ( ) ; MappingType mappingType = fieldMapping . getMappingType ( ) ; if ( mappingType == MappingType . COLUMN || mappingType == MappingType . COUNTER ) { return deserializeColumn ( fieldMapping . getFieldName ( ) , fieldMapping . getFamily ( ) , fieldMapping . getQualifier ( ) , result ) ; } else if ( mappingType == MappingType . KEY_AS_COLUMN ) { return deserializeKeyAsColumn ( fieldMapping . getFieldName ( ) , fieldMapping . getFamily ( ) , fieldMapping . getPrefix ( ) , result ) ; } else if ( mappingType == MappingType . OCC_VERSION ) { return deserializeOCCColumn ( result ) ; } else { throw new ValidationException ( "Invalid field mapping for field with name: " + fieldName ) ; } }
Deserialize an entity field from the HBase Result .