本文整理了Java中com.google.firebase.database.Query.startAt
方法的一些代码示例,展示了Query.startAt
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.startAt
方法的具体详情如下:
包路径:com.google.firebase.database.Query
类名称:Query
方法名:startAt
Query.startAt介绍
[英]Create a query constrained to only return child nodes with a value greater than or equal to the given value, using the given orderBy directive or priority as default.
[中]使用给定的orderBy指令或priority作为默认值,创建一个仅返回值大于或等于给定值的子节点的查询。
代码示例
代码示例来源:origin: firebase/firebase-admin-java
/**
* Create a query constrained to only return child nodes with a value greater than or equal to the
* given value, using the given orderBy directive or priority as default.
*
* @param value The value to start at, inclusive
* @return A Query with the new constraint
*/
public Query startAt(double value) {
return startAt(value, null);
}
代码示例来源:origin: firebase/firebase-admin-java
/**
* Create a query constrained to only return child nodes with a value greater than or equal to the
* given value, using the given orderBy directive or priority as default.
*
* @param value The value to start at, inclusive
* @return A Query with the new constraint
*/
public Query startAt(String value) {
return startAt(value, null);
}
代码示例来源:origin: firebase/firebase-admin-java
/**
* Create a query constrained to only return child nodes with a value greater than or equal to the
* given value, using the given orderBy directive or priority as default.
*
* @param value The value to start at, inclusive
* @return A Query with the new constraint
* @since 2.0
*/
public Query startAt(boolean value) {
return startAt(value, null);
}
代码示例来源:origin: chat-sdk/chat-sdk-android
.startAt(value)
.limitToFirst(limit);
query.keepSynced(true);
代码示例来源:origin: chat-sdk/chat-sdk-android
query = query.startAt(startTimestamp, Keys.Date);
代码示例来源:origin: TomGrill/gdx-firebase
@Override
public Query startAt(boolean value) {
return new DesktopQuery(query.startAt(value));
}
代码示例来源:origin: TomGrill/gdx-firebase
@Override
public Query startAt(String value, String key) {
return new DesktopQuery(query.startAt(value, key));
}
代码示例来源:origin: TomGrill/gdx-firebase
@Override
public Query startAt(String value) {
return new DesktopQuery(query.startAt(value));
}
代码示例来源:origin: TomGrill/gdx-firebase
@Override
public Query startAt(double value, String key) {
return new DesktopQuery(query.startAt(value, key));
}
代码示例来源:origin: TomGrill/gdx-firebase
@Override
public Query startAt(boolean value, String key) {
return new DesktopQuery(query.startAt(value, key));
}
代码示例来源:origin: TomGrill/gdx-firebase
@Override
public Query startAt(double value) {
return new DesktopQuery(query.startAt(value));
}
代码示例来源:origin: firebase/firebase-admin-java
/**
* Create a query constrained to only return child nodes with a value greater than or equal to the
* given value, using the given orderBy directive or priority as default, and additionally only
* child nodes with a key greater than or equal to the given key.
*
* @param value The priority to start at, inclusive
* @param key The key name to start at, inclusive
* @return A Query with the new constraint
*/
public Query startAt(double value, String key) {
return startAt(new DoubleNode(value, PriorityUtilities.NullPriority()), key);
}
代码示例来源:origin: firebase/firebase-admin-java
/**
* Create a query constrained to only return the child node with the given key and value. Note
* that there is at most one such child as names are unique.
*
* @param value The value to query for
* @param key The key of the child
* @return A query with the new constraint
*/
public Query equalTo(String value, String key) {
validateEqualToCall();
return this.startAt(value, key).endAt(value, key);
}
代码示例来源:origin: firebase/firebase-admin-java
/**
* Create a query constrained to only return the child node with the given key and value. Note
* that there is at most one such child as keys are unique.
*
* @param value The value to query for
* @param key The name of the child
* @return A query with the new constraint
*/
public Query equalTo(boolean value, String key) {
validateEqualToCall();
return this.startAt(value, key).endAt(value, key);
}
代码示例来源:origin: firebase/firebase-admin-java
/**
* Create a query constrained to only return child nodes with the given value.
*
* @param value The value to query for
* @return A query with the new constraint
*/
public Query equalTo(String value) {
validateEqualToCall();
return this.startAt(value).endAt(value);
}
代码示例来源:origin: firebase/firebase-admin-java
/**
* Create a query constrained to only return the child node with the given key and value. Note
* that there is at most one such child as keys are unique.
*
* @param value The value to query for
* @param key The key of the child
* @return A query with the new constraint
*/
public Query equalTo(double value, String key) {
validateEqualToCall();
return this.startAt(value, key).endAt(value, key);
}
代码示例来源:origin: firebase/firebase-admin-java
/**
* Create a query constrained to only return child nodes with the given value.
*
* @param value The value to query for
* @return A query with the new constraint
*/
public Query equalTo(double value) {
validateEqualToCall();
return this.startAt(value).endAt(value);
}
代码示例来源:origin: firebase/firebase-admin-java
/**
* Create a query constrained to only return child nodes with the given value.
*
* @param value The value to query for
* @return A query with the new constraint
* @since 2.0
*/
public Query equalTo(boolean value) {
validateEqualToCall();
return this.startAt(value).endAt(value);
}
代码示例来源:origin: firebase/firebase-admin-java
/**
* Create a query constrained to only return child nodes with a value greater than or equal to the
* given value, using the given orderBy directive or priority as default, and additionally only
* child nodes with a key greater than or equal to the given key.
*
* @param value The priority to start at, inclusive
* @param key The key to start at, inclusive
* @return A Query with the new constraint
* @since 2.0
*/
public Query startAt(boolean value, String key) {
return startAt(new BooleanNode(value, PriorityUtilities.NullPriority()), key);
}
代码示例来源:origin: firebase/firebase-admin-java
/**
* Create a query constrained to only return child nodes with a value greater than or equal to the
* given value, using the given orderBy directive or priority as default, and additionally only
* child nodes with a key greater than or equal to the given key.
*
* @param value The priority to start at, inclusive
* @param key The key to start at, inclusive
* @return A Query with the new constraint
*/
public Query startAt(String value, String key) {
Node node =
value != null ? new StringNode(value, PriorityUtilities.NullPriority()) : EmptyNode.Empty();
return startAt(node, key);
}