You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2011/05/02 06:30:03 UTC

[jira] [Commented] (HBASE-3811) Allow adding attributes to Scan

    [ 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