Giter Site home page Giter Site logo

parquet-android's Introduction

parquet-android

<Sebastiaan-Alvarez-Rodriguez>

This project satisfies 2 goals:

  1. Read and write snappy-compressed parquet on Android devices.
  2. use minimal dependencies, minimal size.

Current package is under 3MB.

Versioning

Parquet-android versioning scheme follows the versions of the parquet library. E.g. Parquet-android 1.12.3 provides parquet library version 1.12.3.
Our Java bindings are compiled for Java 11.
Our Android bindings are compiled for minSdk=29, targetSdk=32, compileSdk=32.

Depending on this project

We publish releases on jitpack.

In your project root build.gradle:

allprojects {
    repositories {
        // Other repositories...
        maven { url 'https://jitpack.io' }
    }
}

In your module build.gradle:

dependencies {
    implementation 'com.github.Sebastiaan-Alvarez-Rodriguez:parquet-android:1.12.3'
}

Using this project

See example for reading and writing parquet files.

FAQ

Q: Which compression algorithms are supported? A: We currently support uncompressed out of the box for writing and reading. Add snappy-android as a dependency to add snappy compression support.

Q: Can I use this project for non-Android (e.g. normal Java, iOS) projects?
A: No, this project produces an Android Archive (AAR) binary, which only works for android.

Q: Why do you produce an AAR instead of a Java Archive (JAR) binary?
A: TL;DR We are shipping native libraries so we must do that. The building process for Android PacKages (APK) and Android Bundles requires that native libraries are present in AAR files in /jni/<ABI>/libmylibrary.so. If we pass an AAR with stuff in /jni/<ABI>/, the build process copies the shared libraries to /jni/<ABI>/ of the output APK/Bundle. The Android system can then load these libraries at runtime using System.loadLibrary("mylibrary").
If we present a JAR file to the build process instead, with /jni/<ABI>/libmylibrary.so inside the JAR, it places the entire JAR file in /libs/myjar.jar. The Android system cannot find the libraries at /jni/<ABI>, and native libraries are not loaded. So, we need an AAR. For more info about the workings of AARs, see here.

Thanks

Many thanks to the developers of parquet-floor:
We use their project as a basis to have minimal dependencies.

Many thanks to the developers of Apache, specifically those who made parquet-mr:
We use (parts of) their project to read and write to the parquet format.

parquet-android's People

Contributors

sebastiaan-alvarez-rodriguez avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.