[ 
https://issues.apache.org/jira/browse/HBASE-3811?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13027546#comment-13027546
 ] 

Ted Yu commented on HBASE-3811:
-------------------------------

We can follow the example of HTableDescriptor.write():
{code}
    out.writeInt(families.size());
    for(Iterator<HColumnDescriptor> it = families.values().iterator();
{code}

> Allow adding attributes to Scan
> -------------------------------
>
>                 Key: HBASE-3811
>                 URL: https://issues.apache.org/jira/browse/HBASE-3811
>             Project: HBase
>          Issue Type: Improvement
>          Components: client
>            Reporter: Alex Baranau
>            Priority: Minor
>
> There's sometimes a need to add custom attribute to Scan object so that it 
> can be accessed on server side.
> Example of the case where it is needed discussed here: 
> http://search-hadoop.com/m/v3Jtb2GkiO. There might be other cases where it is 
> useful, which are mostly about logging/gathering stats on server side.
> Alternative to allowing adding any custom attributes to scan could be adding 
> some fixed field, like "type" to the class.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to