thrift.shared.thrift Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of concourse Show documentation
Show all versions of concourse Show documentation
This is the api to interact with Concourse, a schemaless and distributed version control database with optimistic availability, serializable transactions and full-text search. Concourse provides a more intuitive approach to data management that is easy to deploy, access and scale with minimal tuning while also maintaining the referential integrity and ACID characteristics of traditional database systems.
# This file contains shared definitions that are unlikely to be modified
# post thrift generation.
#
# To generate java source code run:
# thrift -out ../../java -gen java shared.thrift
namespace java org.cinchapi.concourse.thrift
/**
* Enumerates the list of operators that can be used in
{@link ConcourseService#find(String, Operator, List, long)}.
*/
enum Operator {
REGEX = 1,
NOT_REGEX = 2,
EQUALS = 3,
NOT_EQUALS = 4,
GREATER_THAN = 5,
GREATER_THAN_OR_EQUALS = 6,
LESS_THAN = 7,
LESS_THAN_OR_EQUALS = 8,
BETWEEN = 9
}
/**
* Enumerates the possible TObject types
*/
enum Type {
BOOLEAN = 1,
DOUBLE = 2,
FLOAT = 3,
INTEGER = 4,
LONG = 5,
LINK = 6,
STRING = 7
}
/**
* A temporary token that is returned by the
* {@link ConcourseService#login(String, String)} method to grant access
* to secure resources in place of raw credentials.
*/
struct AccessToken {
1:required binary data
}
/**
* A token that identifies a Transaction.
*/
struct TransactionToken {
1:required AccessToken accessToken
2:required i64 timestamp
}