You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@accumulo.apache.org by "panqingcui@163.com" <pa...@163.com> on 2015/01/23 08:23:07 UTC
data Versions
1.A version of the data, save only
2, save 2 and multiple versions, but the query query only version of the latest data
The programming language is Java, should use the class, can only get the latest version of the data.
panqingcui@163.com
Re: Re: data Versions
Posted by Billie Rinaldi <bi...@gmail.com>.
Yes, it should work with the WholeRowIterator.
On Wed, Feb 25, 2015 at 5:05 PM, panqingcui@163.com <pa...@163.com>
wrote:
> HI
> Once the configuration of this place, but I use WholeRowIterator query,
> there will be multiple data
>
>
>
> panqingcui@163.com
>
> From: Billie Rinaldi-2 [via Apache Accumulo]
> Date: 2015-02-25 23:35
> To: panqingcui@163.com
> Subject: Re: data Versions
> Here is an example of how to configure the number of versions:
>
> http://accumulo.apache.org/1.6/accumulo_user_manual.html#_versioning_iterators_and_timestamps
> If you want to age off data, here is an example (note there's a typo; the
> example says it deletes after 30 seconds, but it is set to 3 seconds):
> http://accumulo.apache.org/1.6/accumulo_user_manual.html#_filters
>
> On Tue, Feb 24, 2015 at 11:03 PM, [hidden email] <[hidden email]>
> wrote:
>
> > Hi
> >
> > <
> >
> http://apache-accumulo.1065345.n5.nabble.com/file/n13350/QQ%E5%9B%BE%E7%89%8720150225150133.png
> > >
> > I found an article on the Internet, the number can be configured data
> > version, but what should be configured?
> >
> >
> >
> > --
> > View this message in context:
> >
> http://apache-accumulo.1065345.n5.nabble.com/data-Versions-tp12997p13350.html
> > Sent from the Developers mailing list archive at Nabble.com.
> >
>
>
>
>
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://apache-accumulo.1065345.n5.nabble.com/data-Versions-tp12997p13351.html
> To unsubscribe from data Versions, click here.
> NAML
>
>
>
>
> --
> View this message in context:
> http://apache-accumulo.1065345.n5.nabble.com/data-Versions-tp12997p13352.html
> Sent from the Developers mailing list archive at Nabble.com.
>
Re: Re: data Versions
Posted by "panqingcui@163.com" <pa...@163.com>.
HI
Once the configuration of this place, but I use WholeRowIterator query, there will be multiple data
panqingcui@163.com
From: Billie Rinaldi-2 [via Apache Accumulo]
Date: 2015-02-25 23:35
To: panqingcui@163.com
Subject: Re: data Versions
Here is an example of how to configure the number of versions:
http://accumulo.apache.org/1.6/accumulo_user_manual.html#_versioning_iterators_and_timestamps
If you want to age off data, here is an example (note there's a typo; the
example says it deletes after 30 seconds, but it is set to 3 seconds):
http://accumulo.apache.org/1.6/accumulo_user_manual.html#_filters
On Tue, Feb 24, 2015 at 11:03 PM, [hidden email] <[hidden email]>
wrote:
> Hi
>
> <
> http://apache-accumulo.1065345.n5.nabble.com/file/n13350/QQ%E5%9B%BE%E7%89%8720150225150133.png
> >
> I found an article on the Internet, the number can be configured data
> version, but what should be configured?
>
>
>
> --
> View this message in context:
> http://apache-accumulo.1065345.n5.nabble.com/data-Versions-tp12997p13350.html
> Sent from the Developers mailing list archive at Nabble.com.
>
If you reply to this email, your message will be added to the discussion below:
http://apache-accumulo.1065345.n5.nabble.com/data-Versions-tp12997p13351.html
To unsubscribe from data Versions, click here.
NAML
--
View this message in context: http://apache-accumulo.1065345.n5.nabble.com/data-Versions-tp12997p13352.html
Sent from the Developers mailing list archive at Nabble.com.
Re: data Versions
Posted by Billie Rinaldi <bi...@gmail.com>.
Here is an example of how to configure the number of versions:
http://accumulo.apache.org/1.6/accumulo_user_manual.html#_versioning_iterators_and_timestamps
If you want to age off data, here is an example (note there's a typo; the
example says it deletes after 30 seconds, but it is set to 3 seconds):
http://accumulo.apache.org/1.6/accumulo_user_manual.html#_filters
On Tue, Feb 24, 2015 at 11:03 PM, panqingcui@163.com <pa...@163.com>
wrote:
> Hi
>
> <
> http://apache-accumulo.1065345.n5.nabble.com/file/n13350/QQ%E5%9B%BE%E7%89%8720150225150133.png
> >
> I found an article on the Internet, the number can be configured data
> version, but what should be configured?
>
>
>
> --
> View this message in context:
> http://apache-accumulo.1065345.n5.nabble.com/data-Versions-tp12997p13350.html
> Sent from the Developers mailing list archive at Nabble.com.
>
Re: data Versions
Posted by "panqingcui@163.com" <pa...@163.com>.
Hi
<http://apache-accumulo.1065345.n5.nabble.com/file/n13350/QQ%E5%9B%BE%E7%89%8720150225150133.png>
I found an article on the Internet, the number can be configured data
version, but what should be configured?
--
View this message in context: http://apache-accumulo.1065345.n5.nabble.com/data-Versions-tp12997p13350.html
Sent from the Developers mailing list archive at Nabble.com.
Re: data Versions
Posted by Josh Elser <jo...@gmail.com>.
I think this is similar to what you asked about in your earlier message.
Call a version of Mutation.put(...) which accepts a timestamp argument
to make sure the correct version of the Key-Value is kept.
By default, the VersioningIterator is configured on tables that you make
which will only show the most recent (largest timestamp) Key-Value when
multiple exist that only differ by timestamp.
As long as you write your data correctly, you should not have to do
anything special at query time to get only the most recent version of
the data.
panqingcui@163.com wrote:
> 1.A version of the data, save only
> 2, save 2 and multiple versions, but the query query only version of the latest data
> The programming language is Java, should use the class, can only get the latest version of the data.
>
>
>
>
> panqingcui@163.com