io.tarantool.driver.metadata.TarantoolFieldMetadata Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cartridge-driver Show documentation
Show all versions of cartridge-driver Show documentation
Tarantool Cartridge driver for Tarantool versions 1.10+ based on Netty framework
package io.tarantool.driver.metadata;
/**
* Tarantool space field format metadata
*
* @author Sergey Volgin
*/
public class TarantoolFieldMetadata {
private final String fieldName;
private final String fieldType;
private final int fieldPosition;
/**
* Basic constructor.
*
* @param fieldName field name
* @param fieldType field type (from the set of field types supported by the server)
* @param fieldPosition field position in tuple starting from 0
*/
public TarantoolFieldMetadata(String fieldName, String fieldType, int fieldPosition) {
this.fieldName = fieldName;
this.fieldType = fieldType;
this.fieldPosition = fieldPosition;
}
/**
* Get field name
*
* @return fiend name
*/
public String getFieldName() {
return fieldName;
}
/**
* Get field type
*
* @return field type
*/
public String getFieldType() {
return fieldType;
}
/**
* Get field position in space starts with 0
*
* @return field position in space starts with 0
*/
public int getFieldPosition() {
return fieldPosition;
}
}