Questions tagged [buckets]
96 questions
4
votes
1 answer
Oracle SQL NTILE - equal distribution
This query:
SELECT min( "x" ) as "From",
max( "x" ) as "To",
sum("quantity")
FROM (
SELECT t.*,
ntile( 4 ) over (order by "x" ) as group_no
FROM table1 t)GROUP BY
group_no
ORDER BY 1;
with this…

Tim
- 115
- 11
4
votes
1 answer
gcloud error: ApiError: Not Found at new util.ApiError
Anyone familiar with this gcloud exception:
ApiError: Not Found at new util.ApiError
(/site/node_modules/gcloud/lib/common/util.js:128:10) at
Object.parseHttpRespBody
(/site/node_modules/gcloud/lib/common/util.js:206:30) at
…

Akrion
- 18,117
- 1
- 34
- 54
3
votes
1 answer
Faceting on distance in solr- how to generate links that search withing a given range of distance
It is fairly simple to generate facets for ranges or 'buckets' of distance in Solr: http://wiki.apache.org/solr/SpatialSearch#How_to_facet_by_distance
What isnt described is how to generate the links for these facets
If this is the query to return…

Fergie
- 5,933
- 7
- 38
- 42
3
votes
0 answers
Google Analytics Site Speed Page Timings Distribution buckets
I am creating a script in PHP to retrieve the information, via Google Analytics V4 API, that appears in the Google Analytics tab:
Behavior -> Site Speed -> Site Speed Page Timings -> Distribution
I cannot figure out how to obtain this data in…

Tiago Alcobia
- 99
- 1
- 5
3
votes
2 answers
googlec-storage-object-creator@project-name.iam.gserviceaccount.com does not have storage.objects.delete access to bucket-x/xxx.jpg
Trying to upload an image from server to server I got:
[ { domain: 'global',
reason: 'forbidden',
message: 'googlec-storage-object-creator@project-name.iam.gserviceaccount.com
does not have storage.objects.delete access to
…

Nelson La Rocca
- 173
- 1
- 9
3
votes
1 answer
Spark Bucketizer - show all buckets even if there are no elements
I have a list of events something like shown below
generated from a spark dataframe. I am using Spark 2.2.0 with Scala.
val events = df.select($"event", hour($"time") as "hour", to_date($"time", "yyyy-MM-dd") as…

geo
- 516
- 5
- 12
3
votes
1 answer
Sitecore not publishing bucket folders
We have a content folder that has been turned into a bucket to manage the sheer number of items it will contain. The bucket items are published via a workflow and the bucket items are left to be published by the scheduled publish that runs…

Gabbar
- 4,006
- 7
- 41
- 78
3
votes
1 answer
creating weekly buckets in date column in sql
How can i create weekly buckets for a date column.
My data looks like :
ID LOC DATE Amount
1 AAA 21-07-2015 3000
2 AAA 22-07-2015 1000
3 AAA 23-07-2015 0
4 AAA 27-07-2015 300
5 AAA …

Shyam Pandian
- 35
- 12
3
votes
2 answers
Why LinkedList as a bucket implementation for HashMap and not another Hashmap?
Does anyone know why buckets for HashMaps were chosen to be implemented via LinkedList rather than another Hashmap. It seems that contains or get would be O(1) and not amortized O(1) if buckets became HashMaps themselves.

std
- 137
- 3
- 12
2
votes
2 answers
C#: Seeking fast datastructure to add pixels to a partitioned HSB histogram
In my application I read RGB pixel values from several images using fast unmanaged code and then convert them to HSB colors. Now I'd like to build an HSB histogram using the following partitions:
Hue: 18 partitions, resulting in intervals of 20…

Shackles
- 1,264
- 1
- 19
- 40
2
votes
1 answer
Elasticsearch aggregation queries
I am working on a project concerning cooking recipes. I installed Elasticsearch 1.5.2 and I added a lot of products such as vegetables or meats in many indexes of supermarkets. All was well until I started aggregations queries. For example: to make…

Sofien.011
- 39
- 8
2
votes
2 answers
What bucket_count value should I use if I know the intended number of map keys?
I'm creating an std::unordered_map which I will immediately proceed to populate with n key-value pairs - and I know n. After that no more elements will be added - I will only be performing lookups.
What, therefore, should I pass as bucket_count to…

einpoklum
- 118,144
- 57
- 340
- 684
2
votes
3 answers
Elasticsearch summing buckets
I have the following request which will return the count of all documents with a status of either "Accepted","Released" or closed.
{
"size": 0,
"query": {
"bool": {
"must": [
{
"query_string": {
"query":…

Rick van Lieshout
- 2,276
- 2
- 22
- 39
2
votes
0 answers
Error:Class cast exception in elastic search while sorting buckets in aggregation
Error:
ClassCastException[org.elasticsearch.search. aggregations.support.ValuesSource$Bytes$WithOrdinals$FieldData cannot
be cast to
…

Saurabh
- 31
- 4
2
votes
0 answers
django wont serve media from heroku
okay so am using whitenoise to store my static files, thats not an issue when deploying to heroku that works perfectly well.
So I need to use S3 to serve my media files. I can upload perfectly to the bucket with no issues, from the website interface…

user2739518
- 107
- 12