public final class Conditions extends Object implements Serializable
Constructor and Description |
---|
Conditions(Conditions conditions) |
Modifier and Type | Method and Description |
---|---|
static Conditions |
after(TarantoolTuple tuple)
Start collecting tuples into result after the specified tuple.
|
static <T> Conditions |
after(T tuple,
ObjectConverter<T,org.msgpack.value.ArrayValue> tupleConverter)
Start collecting tuples into result after the specified tuple.
|
Conditions |
andEquals(int fieldPosition,
Object value)
Filter tuples by the specified field
|
Conditions |
andEquals(String fieldName,
Object value)
Filter tuples by the specified field
|
Conditions |
andGreaterOrEquals(int fieldPosition,
Object value)
Filter tuples by the specified field, with values greater or equal than the specified value
|
Conditions |
andGreaterOrEquals(String fieldName,
Object value)
Filter tuples by the specified field, with values greater or equal than the specified value
|
Conditions |
andGreaterThan(int fieldPosition,
Object value)
Filter tuples by the specified field, with values greater than the specified value
|
Conditions |
andGreaterThan(String fieldName,
Object value)
Filter tuples by the specified field, with values greater than the specified value
|
Conditions |
andIndexEquals(int indexId,
List<?> indexPartValues)
Filter tuples by the specified index
|
Conditions |
andIndexEquals(String indexName,
List<?> indexPartValues)
Filter tuples by the specified index
|
Conditions |
andIndexGreaterOrEquals(int indexId,
List<?> indexPartValues)
Filter tuples by the specified index, with values greater or equal than the specified value
|
Conditions |
andIndexGreaterOrEquals(String indexName,
List<?> indexPartValues)
Filter tuples by the specified index, with values greater or equal than the specified value
|
Conditions |
andIndexGreaterThan(int indexId,
List<?> indexPartValues)
Filter tuples by the specified index, with values greater than the specified value
|
Conditions |
andIndexGreaterThan(String indexName,
List<?> indexPartValues)
Filter tuples by the specified index, with values greater than the specified value
|
Conditions |
andIndexLessOrEquals(int indexId,
List<?> indexPartValues)
Filter tuples by the specified index, with values less or equal than the specified value
|
Conditions |
andIndexLessOrEquals(String indexName,
List<?> indexPartValues)
Filter tuples by the specified index, with values less or equal than the specified value
|
Conditions |
andIndexLessThan(int indexId,
List<?> indexPartValues)
Filter tuples by the specified index, with values less than the specified value
|
Conditions |
andIndexLessThan(String indexName,
List<?> indexPartValues)
Filter tuples by the specified index, with values less than the specified value
|
Conditions |
andLessOrEquals(int fieldPosition,
Object value)
Filter tuples by the specified field, with values less or equal than the specified value
|
Conditions |
andLessOrEquals(String fieldName,
Object value)
Filter tuples by the specified field, with values less or equal than the specified value
|
Conditions |
andLessThan(int fieldPosition,
Object value)
Filter tuples by the specified field, with values less than the specified value
|
Conditions |
andLessThan(String fieldName,
Object value)
Filter tuples by the specified field, with values less than the specified value
|
static Conditions |
any()
Create new Conditions instance without any filtration.
|
static Conditions |
ascending()
Create new Conditions instance, returning tuples will in the ascending order
|
static Conditions |
descending()
Create new Conditions instance, returning tuples in the descending order
|
static Conditions |
equals(int fieldPosition,
Object value)
Filter tuples by the specified field
|
boolean |
equals(Object o) |
static Conditions |
equals(String fieldName,
Object value)
Filter tuples by the specified field
|
long |
getLimit()
Get the specified limit
|
long |
getOffset()
Get the specified offset
|
Packable |
getStartTuple()
Get the specified index values to start from
|
static Conditions |
greaterOrEquals(int fieldPosition,
Object value)
Filter tuples by the specified field, with values greater or equal than the specified value
|
static Conditions |
greaterOrEquals(String fieldName,
Object value)
Filter tuples by the specified field, with values greater or equal than the specified value
|
static Conditions |
greaterThan(int fieldPosition,
Object value)
Filter tuples by the specified field, with values greater than the specified value
|
static Conditions |
greaterThan(String fieldName,
Object value)
Filter tuples by the specified field, with values greater than the specified value
|
int |
hashCode() |
static Conditions |
indexEquals(int indexId,
List<?> indexPartValues)
Create new Conditions instance with filter by the specified index
|
static Conditions |
indexEquals(String indexName,
List<?> indexPartValues)
Create new Conditions instance with filter by the specified index
|
static Conditions |
indexGreaterOrEquals(int indexId,
List<?> indexPartValues)
Create new Conditions instance with filter by the specified index, with values greater or equal than the
specified value
|
static Conditions |
indexGreaterOrEquals(String indexName,
List<?> indexPartValues)
Create new Conditions instance with filter by the specified index, with values greater or equal than the
specified value
|
static Conditions |
indexGreaterThan(int indexId,
List<?> indexPartValues)
Create new Conditions instance with filter by the specified index, with values greater than the specified value
|
static Conditions |
indexGreaterThan(String indexName,
List<?> indexPartValues)
Create new Conditions instance with filter by the specified index, with values greater than the specified value
|
static Conditions |
indexLessOrEquals(int indexId,
List<?> indexPartValues)
Create new Conditions instance with filter by the specified index, with values less or equal than the
specified value
|
static Conditions |
indexLessOrEquals(String indexName,
List<?> indexPartValues)
Create new Conditions instance with filter by the specified index, with values less or equal than the
specified value
|
static Conditions |
indexLessThan(int indexId,
List<?> indexPartValues)
Create new Conditions instance with filter by the specified index, with values less than the specified value
|
static Conditions |
indexLessThan(String indexName,
List<?> indexPartValues)
Create new Conditions instance with filter by the specified index, with values less than the specified value
|
boolean |
isDescending()
Get the descending option value
|
static Conditions |
lessOrEquals(int fieldPosition,
Object value)
Filter tuples by the specified field, with values less or equal than the specified value
|
static Conditions |
lessOrEquals(String fieldName,
Object value)
Filter tuples by the specified field, with values less or equal than the specified value
|
static Conditions |
lessThan(int fieldPosition,
Object value)
Filter tuples by the specified field, with values less than the specified value
|
static Conditions |
lessThan(String fieldName,
Object value)
Filter tuples by the specified field, with values less than the specified value
|
static Conditions |
limit(long limit)
Limit the number od returned tuples with the specified value
|
static Conditions |
offset(long offset)
Skip the specified number of tuples before collecting the result.
|
Conditions |
startAfter(TarantoolTuple tuple)
Start collecting tuples into result after the specified tuple.
|
<T> Conditions |
startAfter(T tuple,
ObjectConverter<T,org.msgpack.value.ArrayValue> tupleConverter)
Start collecting tuples into result after the specified tuple.
|
TarantoolIndexQuery |
toIndexQuery(TarantoolMetadataOperations operations,
TarantoolSpaceMetadata spaceMetadata) |
List<?> |
toProxyQuery(TarantoolMetadataOperations operations,
TarantoolSpaceMetadata spaceMetadata) |
Conditions |
withAscending()
Return tuples will in the ascending order
|
Conditions |
withDescending()
Return tuples in the descending order
|
Conditions |
withLimit(long limit)
Limit the number od returned tuples with the specified value
|
Conditions |
withOffset(long offset)
Skip the specified number of tuples before collecting the result.
|
public Conditions(Conditions conditions)
public boolean isDescending()
public static Conditions descending()
Conditions
instancepublic Conditions withDescending()
Conditions
instancepublic static Conditions ascending()
Conditions
instancepublic Conditions withAscending()
Conditions
instancepublic static Conditions any()
Conditions
instancepublic static Conditions limit(long limit)
limit
- number of tuples, should be greater than 0Conditions
instancepublic Conditions withLimit(long limit)
limit
- number of tuples, should be greater than 0Conditions
instancepublic long getLimit()
public static Conditions offset(long offset)
offset
- number of tuples, should be greater than 0Conditions
instancepublic Conditions withOffset(long offset)
offset
- number of tuples, should be greater than 0Conditions
instancepublic long getOffset()
public static Conditions after(TarantoolTuple tuple)
tuple
- last tuple value from the previous result, may be nullConditions
instancepublic static <T> Conditions after(T tuple, ObjectConverter<T,org.msgpack.value.ArrayValue> tupleConverter)
T
- tuple typetuple
- last tuple value from the previous result, may be nulltupleConverter
- converter of the specified tuple type into a MessagePack arrayConditions
instancepublic Conditions startAfter(TarantoolTuple tuple)
tuple
- last tuple value from the previous result, may be nullConditions
instancepublic <T> Conditions startAfter(T tuple, ObjectConverter<T,org.msgpack.value.ArrayValue> tupleConverter)
T
- tuple typetuple
- last tuple value from the previous result, may be nulltupleConverter
- converter of the specified tuple type into a MessagePack arrayConditions
instancepublic Packable getStartTuple()
public static Conditions indexEquals(String indexName, List<?> indexPartValues)
indexName
- index nameindexPartValues
- index parts valuesConditions
instancepublic Conditions andIndexEquals(String indexName, List<?> indexPartValues)
indexName
- index nameindexPartValues
- index parts valuesConditions
instancepublic static Conditions indexEquals(int indexId, List<?> indexPartValues)
indexId
- index idindexPartValues
- index parts valuesConditions
instancepublic Conditions andIndexEquals(int indexId, List<?> indexPartValues)
indexId
- index idindexPartValues
- index parts valuesConditions
instancepublic static Conditions indexGreaterThan(String indexName, List<?> indexPartValues)
indexName
- index nameindexPartValues
- index parts valuesConditions
instancepublic Conditions andIndexGreaterThan(String indexName, List<?> indexPartValues)
indexName
- index nameindexPartValues
- index parts valuesConditions
instancepublic static Conditions indexGreaterThan(int indexId, List<?> indexPartValues)
indexId
- index idindexPartValues
- index parts valuesConditions
instancepublic Conditions andIndexGreaterThan(int indexId, List<?> indexPartValues)
indexId
- index idindexPartValues
- index parts valuesConditions
instancepublic static Conditions indexGreaterOrEquals(String indexName, List<?> indexPartValues)
indexName
- index nameindexPartValues
- index parts valuesConditions
instancepublic Conditions andIndexGreaterOrEquals(String indexName, List<?> indexPartValues)
indexName
- index nameindexPartValues
- index parts valuesConditions
instancepublic static Conditions indexGreaterOrEquals(int indexId, List<?> indexPartValues)
indexId
- index idindexPartValues
- index parts valuesConditions
instancepublic Conditions andIndexGreaterOrEquals(int indexId, List<?> indexPartValues)
indexId
- index idindexPartValues
- index parts valuesConditions
instancepublic static Conditions indexLessThan(String indexName, List<?> indexPartValues)
indexName
- index nameindexPartValues
- index parts valuesConditions
instancepublic Conditions andIndexLessThan(String indexName, List<?> indexPartValues)
indexName
- index nameindexPartValues
- index parts valuesConditions
instancepublic static Conditions indexLessThan(int indexId, List<?> indexPartValues)
indexId
- index idindexPartValues
- index parts valuesConditions
instancepublic Conditions andIndexLessThan(int indexId, List<?> indexPartValues)
indexId
- index idindexPartValues
- index parts valuesConditions
instancepublic static Conditions indexLessOrEquals(String indexName, List<?> indexPartValues)
indexName
- index nameindexPartValues
- index parts valuesConditions
instancepublic Conditions andIndexLessOrEquals(String indexName, List<?> indexPartValues)
indexName
- index nameindexPartValues
- index parts valuesConditions
instancepublic static Conditions indexLessOrEquals(int indexId, List<?> indexPartValues)
indexId
- index idindexPartValues
- index parts valuesConditions
instancepublic Conditions andIndexLessOrEquals(int indexId, List<?> indexPartValues)
indexId
- index idindexPartValues
- index parts valuesConditions
instancepublic static Conditions equals(String fieldName, Object value)
fieldName
- field namevalue
- field valueConditions
instancepublic Conditions andEquals(String fieldName, Object value)
fieldName
- field namevalue
- field valueConditions
instancepublic static Conditions equals(int fieldPosition, Object value)
fieldPosition
- field positionvalue
- field valueConditions
instancepublic Conditions andEquals(int fieldPosition, Object value)
fieldPosition
- field positionvalue
- field valueConditions
instancepublic static Conditions greaterThan(String fieldName, Object value)
fieldName
- field namevalue
- field valueConditions
instancepublic Conditions andGreaterThan(String fieldName, Object value)
fieldName
- field namevalue
- field valueConditions
instancepublic static Conditions greaterThan(int fieldPosition, Object value)
fieldPosition
- field positionvalue
- field valueConditions
instancepublic Conditions andGreaterThan(int fieldPosition, Object value)
fieldPosition
- field positionvalue
- field valueConditions
instancepublic static Conditions greaterOrEquals(String fieldName, Object value)
fieldName
- field namevalue
- field valueConditions
instancepublic Conditions andGreaterOrEquals(String fieldName, Object value)
fieldName
- field namevalue
- field valueConditions
instancepublic static Conditions greaterOrEquals(int fieldPosition, Object value)
fieldPosition
- field positionvalue
- field valueConditions
instancepublic Conditions andGreaterOrEquals(int fieldPosition, Object value)
fieldPosition
- field positionvalue
- field valueConditions
instancepublic static Conditions lessThan(String fieldName, Object value)
fieldName
- field namevalue
- field valueConditions
instancepublic Conditions andLessThan(String fieldName, Object value)
fieldName
- field namevalue
- field valueConditions
instancepublic static Conditions lessThan(int fieldPosition, Object value)
fieldPosition
- field positionvalue
- field valueConditions
instancepublic Conditions andLessThan(int fieldPosition, Object value)
fieldPosition
- field positionvalue
- field valueConditions
instancepublic static Conditions lessOrEquals(String fieldName, Object value)
fieldName
- field namevalue
- field valueConditions
instancepublic Conditions andLessOrEquals(String fieldName, Object value)
fieldName
- field namevalue
- field valueConditions
instancepublic static Conditions lessOrEquals(int fieldPosition, Object value)
fieldPosition
- field positionvalue
- field valueConditions
instancepublic Conditions andLessOrEquals(int fieldPosition, Object value)
fieldPosition
- field positionvalue
- field valueConditions
instancepublic List<?> toProxyQuery(TarantoolMetadataOperations operations, TarantoolSpaceMetadata spaceMetadata)
public TarantoolIndexQuery toIndexQuery(TarantoolMetadataOperations operations, TarantoolSpaceMetadata spaceMetadata)
Copyright © 2025 Picodata. All rights reserved.