hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject Re: New java construct? NavigableMap>> map = result.getMap();
Date Thu, 27 Jan 2011 05:35:29 GMT
Just replace 'NavigableMap>>' with:

NavigableMap<byte[], NavigableMap<byte[], NavigableMap<Long, byte[]>>>

Take a look at the source code in Result.java

On Wed, Jan 26, 2011 at 9:26 PM, Mark Kerzner <markkerzner@gmail.com> wrote:

> Sure. At this line
>
> NavigableMap>> map =
>                        value
>                        .getMap();
>
> I get this:
>
> cannot find symbol
>  symbol:   variable NavigableMap
>  location: class com.mypackage.hadoop.HBaseUniqueVisitsMapper
>
> cannot find symbol
>  symbol:   variable map
>  location: class com.mypackage.hadoop.HBaseUniqueVisitsMapper
>
> unexpected type
>  required: variable
>  found:    value
>
> On Wed, Jan 26, 2011 at 11:20 PM, Ted Yu <yuzhihong@gmail.com> wrote:
>
> > This is not new Java construct.
> >
> > Can you show us the compilation error ?
> >
> > On Wed, Jan 26, 2011 at 9:10 PM, Mark Kerzner <markkerzner@gmail.com>
> > wrote:
> >
> > > Hi, I found this construct on the blog here,
> > > http://allaboutdata.net/blog/?p=38, and I have no idea what it means.
> > But
> > > the documentation supports this and says
> > >
> > > getMap
> > >
> > > public
> > NavigableMap<byte[],NavigableMap<byte[],NavigableMap<Long,byte[]>>>
> > > getMap()
> > > Map of families to all versions of its qualifiers and values.
> > > Returns a three level Map of the form: Map>>
> > >
> > > this one, here,
> > >
> > >
> >
> http://hbase.apache.org/docs/r0.20.5/api/org/apache/hadoop/hbase/client/Result.html#getMap()<http://hbase.apache.org/docs/r0.20.5/api/org/apache/hadoop/hbase/client/Result.html#getMap%28%29>
> > <
> >
> http://hbase.apache.org/docs/r0.20.5/api/org/apache/hadoop/hbase/client/Result.html#getMap%28%29
> > >
> > >
> > > It does NOT compile for me :)
> > >
> > > Thank you.
> > >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message