org.tarantool.schema.TarantoolSchemaMeta Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of connector Show documentation
Show all versions of connector Show documentation
Tarantool client for java
The newest version!
package org.tarantool.schema;
/**
* Provides Tarantool instance schema info.
*/
public interface TarantoolSchemaMeta {
/**
* Finds a space by name if any.
*
* @param spaceName name of target space
*
* @return found space
*/
TarantoolSpaceMeta getSpace(String spaceName);
/**
* Finds a space index by name if any.
*
* @param spaceName name of target space
* @param indexName name of target index
*
* @return found index meta
*/
TarantoolIndexMeta getSpaceIndex(String spaceName, String indexName);
/**
* Gets current schema version that is cached.
*
* @return current version
*/
long getSchemaVersion();
/**
* Fetches schema metadata.
*
* @return fetched schema metadata version
*/
long refresh();
/**
* Checks whether a schema fully cached or not.
*
* @return {@literal true} if the schema is cached at least once
*/
boolean isInitialized();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy