• Home
  • Docker
  • Kubernetes
  • LLMs
  • Java
  • Ubuntu
  • Maven
  • Big Data
  • Archived
Samples | Apache Thrift
  1. The application structure
  2. The POM file (pom.xml)
  3. Sample Thrift file (sample.thrift)
  4. Sample Java Thrift class (SampleThrift.java)

  1. The application structure

    mtitek-thrift-sample-eclipse

    Notes:
    - You can find information about how to install Thrift in this page: https://thrift.apache.org
    - You can find information about the ".thrift" file in this page: https://wiki.apache.org/thrift/Tutorial
  2. The POM file (pom.xml)
  3. Sample Thrift file (sample.thrift)
  4. Sample Java Thrift class (SampleThrift.java)
    This sample class uses the generated thrift java classes.

    If you build your code using the command "mvn package", Thrift will compile the "sample.thrift" file and generate the java classes:
    ► target/generated-sources/thrift/mtitek.thrift.samples.Schema
    ► target/generated-sources/thrift/mtitek.thrift.samples.Table
    ► target/generated-sources/thrift/mtitek.thrift.samples.Column
    ► target/generated-sources/thrift/mtitek.thrift.samples.Constraint

© 2025  mtitek