Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API for object pagination, count(*) #288

Merged
merged 93 commits into from
Apr 26, 2022
Merged

API for object pagination, count(*) #288

merged 93 commits into from
Apr 26, 2022

Conversation

silvanheller
Copy link
Member

@silvanheller silvanheller commented Apr 8, 2022

This PR builds upon #285, which is why it targets it so the diff is meaningful. It is focused on the use case of allowing a frontend to paginate through all elements in a large collection.

It adds the following features:

  • New API Endpoint: count/table/{table} which is SELECT count(*) FROM table. This is needed to determine to nicely render pagination options (e.g. number of pages)
  • New API Endpoint: find/object/all/{skip}/{limit} which basically implements SELECT * FROM multimediaobjects SKIP skip LIMIT limit. This is used for the actual pagination.

It also does the following:

  • Further cleanup of constant usage in the API by moving them to APIConstants
  • Usage of MediaObjectReader with the try-with-resources syntax

silvanheller and others added 30 commits January 4, 2022 09:13
…s rather than only the most representative frame.
This is required since FFMpegAudioDecoder and TechnicalVideoMetadataExtractor use Math.floorDiv, which is a function only available since Java 9.
# Conflicts:
#	build.gradle
#	cineast-core/src/main/java/org/vitrivr/cineast/core/features/VisualTextCoEmbedding.java
 into feature/PoseQueries

# Conflicts:
#	cineast-core/src/main/java/org/vitrivr/cineast/core/features/SkeletonPose.java
# Conflicts:
#	cineast-core/src/main/java/org/vitrivr/cineast/core/db/cottontaildb/CottontailEntityCreator.java
#	cineast-core/src/main/java/org/vitrivr/cineast/core/db/cottontaildb/CottontailSelector.java
#	cineast-core/src/main/java/org/vitrivr/cineast/core/db/cottontaildb/CottontailWrapper.java
#	cineast-core/src/main/java/org/vitrivr/cineast/core/db/cottontaildb/CottontailWriter.java
#	cineast-core/src/test/java/org/vitrivr/cineast/core/db/cottontaildb/CottontailIntegrationTest.java
#	cineast-core/src/test/java/org/vitrivr/cineast/core/db/cottontaildb/CottontailMetadataTest.java
#	cineast-runtime/src/main/java/org/vitrivr/cineast/standalone/cli/CineastCli.java
#	cineast-runtime/src/main/java/org/vitrivr/cineast/standalone/cli/OptimizeEntitiesCommand.java
#	cineast-runtime/src/main/java/org/vitrivr/cineast/standalone/cli/db/LSC21TemporalUpdateCommand.java
#	gradle.properties
# Conflicts:
#	cineast-core/src/main/java/org/vitrivr/cineast/core/db/cottontaildb/CottontailEntityCreator.java
lucaro
lucaro previously approved these changes Apr 22, 2022
@silvanheller silvanheller changed the base branch from feature/PoseQueries to master April 24, 2022 13:52
@silvanheller silvanheller dismissed lucaro’s stale review April 24, 2022 13:52

The base branch was changed.

@lucaro lucaro self-requested a review April 25, 2022 16:12
lucaro
lucaro previously approved these changes Apr 25, 2022
# Conflicts:
#	build.gradle
#	cineast-api/src/main/java/org/vitrivr/cineast/api/rest/resolvers/FileSystemThumbnailResolver.java
#	docs/openapi.json
@silvanheller silvanheller merged commit a389687 into master Apr 26, 2022
@silvanheller silvanheller deleted the get-limit-skip branch April 26, 2022 08:24
@silvanheller silvanheller mentioned this pull request Apr 27, 2022
silvanheller added a commit that referenced this pull request Jun 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants