Questions tagged [buckets]
96 questions
0
votes
1 answer
Keen.IO - Bucketing results by numeric value rather than time / Histogram
Working with the Keen.io API,
I have an event with a numeric parameter, and would like to bucketize the results over the range of values of the parameter. For example, session-duration: I'd like to count the number of session durations which occur…

orion elenzil
- 4,484
- 3
- 37
- 49
0
votes
2 answers
Why number of buckets in hive should be equal to number of reducers?
In hive, why number of buckets should be equal to number of reducers?

Ramprakash
- 151
- 1
- 8
0
votes
1 answer
List all files within a folder (prefix) inside an AWS S3 Bucket using the AWS PHP SDK
I'm having some troubles listing all the files within certain prefix of an AWS S3 Bucket.
I have searched and search, but only seem to be able to find the same information:
try {
$objects = $s3Client->getIterator('ListObjects', array(
'Bucket'…

Adam
- 1,294
- 11
- 24
0
votes
2 answers
hash() implementation in java
I'm going through HashMap class in Java. My understanding is that capacity of hash table is 2 to the power of number of buckets(capacity 16 means four buckets). When put(key,value) is called, key.hashCode() outputs an Integer number and this newly…

AV94
- 1,824
- 3
- 23
- 36
0
votes
1 answer
PHP fopen: failed to open stream: Success + how to save fetched content to a file?
I have programmed a "proxy.php" script (listed below), which would fetch an image specified in the ?img= parameter and print it to the STDOUT. This is needed for my Flash app to circumvent a missing crossdomain.xml at some sites.
It works, but I…

Alexander Farber
- 21,519
- 75
- 241
- 416
0
votes
1 answer
Elasticsearch - Bucket_script and buckets_paths return "Could not find aggregator type"
I'm trying to calculate some percentages with Elasticsearch but I have a (small) problem. I want ES to calculate the following: "(wins / Total) * 100".
So I added:
"bucket_script": {
"buckets_paths": {
"total": "TotalStatus",
…

Rick van Lieshout
- 2,276
- 2
- 22
- 39
0
votes
0 answers
How to count bucket's values with Pandas qcut?
I'm using qcut from Pandas to properly prepare my data for a machine learning algorithm. I have products with prices, and I discretized my data into equal-sized buckets with this code :
df['PriceBucket'] = pd.qcut(df['sell_prix'].sort_values(), 10,…

Arij SEDIRI
- 2,088
- 7
- 25
- 43
0
votes
2 answers
How to change values in HashSet?
This is sort of a duplicate of this question, however I'm looking for a bit more ELI5 explanation of the "mutable keys" and "buckets" in the answers.
Here is my code that I'm having trouble understanding:
HashSet

2ARSJcdocuyVu7LfjUnB
- 435
- 1
- 7
- 16
0
votes
0 answers
Sitecore 8 Bucket
In Sitecore 8 Sitecore.Buckets.Forms.SelectRenderingDatasourceForm is same as that of sitecore 7. The Experience Editor functionality of "Add to here" component using the SelectRenderingDatasource.xml which uses the…

Akshay Jain
- 26
- 5
0
votes
1 answer
Android: Relationship between small screen sizes and LDPI Resource Bucket
In my app, I have the following in my manifest:
Now, in my…

Zippy
- 3,826
- 5
- 43
- 96
0
votes
1 answer
Filter Item Bucket folders in Sitecore Insert Link Dialog
We are currently running Sitecore 6.6 with the Item Bucket module installed and running. We have lots of PDFs in the media library which authors can insert into a page with the Rich Text Editor's Insert Link -> Media Item Dialog.
But now that we are…

SpaceJump
- 483
- 6
- 24
0
votes
1 answer
Learn Ruby The Hard Way Ex39 - Understanding Buckets
Can somebody please explain the concept of buckets simply to me. I understand a Dict is an array of arrays, I cannot for the life of me make sense of this first block of code though and can't find anything online that explains num_buckets. If you…

mav91
- 165
- 2
- 14
0
votes
1 answer
Bucket is not creating on hadoop-hive
I'm trying to create a bucket in hive by using following commands:
hive> create table emp( id int, name string, country string)
clustered by( country)
row format delimited
fields terminated by ','
stored as textfile ;
Command is executing…

Amit Pandey
- 9
- 2
0
votes
0 answers
Two level Bucketing in pandas
I am a newbie in pandas,
I reviewed some of the listed solution to bucket dataframe but none of them seems to be my answer.
i have a time series data which I am not going to use resampling for them, the way I want to bucket is divide whole data into…

Katayoon
- 1
- 1
0
votes
1 answer
Custom Solr sorting
I've been asked to do an evaluation of Solr as an alternative for a commercial search engine.
The application now has a very particular way of sorting results using something called "buckets".
I'll try to explain with a bit of details:
In the…

Tom
- 1
- 1