本文整理了Java中com.google.firebase.database.Query.endAt
方法的一些代码示例,展示了Query.endAt
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.endAt
方法的具体详情如下:
包路径:com.google.firebase.database.Query
类名称:Query
方法名:endAt
[英]Create a query constrained to only return child nodes with a value less than or equal to the given value, using the given orderBy directive or priority as default.
[中]使用给定的orderBy指令或优先级作为默认值,创建一个仅返回值小于或等于给定值的子节点的查询。
代码示例来源:origin: chat-sdk/chat-sdk-android
.endAt(endDate.getTime() - 1, Keys.Date)
.limitToLast(numberOfMessages + 1);
代码示例来源:origin: firebase/firebase-admin-java
/**
* Create a query constrained to only return child nodes with a value less than or equal to the
* given value, using the given orderBy directive or priority as default.
*
* @param value The value to end at, inclusive
* @return A Query with the new constraint
* @since 2.0
*/
public Query endAt(boolean value) {
return endAt(value, null);
}
代码示例来源:origin: firebase/firebase-admin-java
/**
* Create a query constrained to only return child nodes with a value less than or equal to the
* given value, using the given orderBy directive or priority as default.
*
* @param value The value to end at, inclusive
* @return A Query with the new constraint
*/
public Query endAt(String value) {
return endAt(value, null);
}
代码示例来源:origin: firebase/firebase-admin-java
/**
* Create a query constrained to only return child nodes with a value less than or equal to the
* given value, using the given orderBy directive or priority as default.
*
* @param value The value to end at, inclusive
* @return A Query with the new constraint
*/
public Query endAt(double value) {
return endAt(value, null);
}
代码示例来源:origin: TomGrill/gdx-firebase
@Override
public Query endAt(double value) {
return new DesktopQuery(query.endAt(value));
}
代码示例来源:origin: TomGrill/gdx-firebase
@Override
public Query endAt(boolean value, String key) {
return new DesktopQuery(query.endAt(value, key));
}
代码示例来源:origin: TomGrill/gdx-firebase
@Override
public Query endAt(boolean value) {
return new DesktopQuery(query.endAt(value));
}
代码示例来源:origin: TomGrill/gdx-firebase
@Override
public Query endAt(String value) {
return new DesktopQuery(query.endAt(value));
}
代码示例来源:origin: TomGrill/gdx-firebase
@Override
public Query endAt(String value, String key) {
return new DesktopQuery(query.endAt(value, key));
}
代码示例来源:origin: TomGrill/gdx-firebase
@Override
public Query endAt(double value, String key) {
return new DesktopQuery(query.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 a value less than or equal to the
* given value, using the given orderBy directive or priority as default, and additionally only
* child nodes with a key less than or equal to the given key.
*
* @param value The value to end at, inclusive
* @param key The key to end at, inclusive
* @return A Query with the new constraint
*/
public Query endAt(double value, String key) {
return endAt(new DoubleNode(value, PriorityUtilities.NullPriority()), 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
* @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 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 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 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 a value less than or equal to the
* given value, using the given orderBy directive or priority as default, and additionally only
* child nodes with a key less than or equal to the given key.
*
* @param value The value to end at, inclusive
* @param key The key to end at, inclusive
* @return A Query with the new constraint
* @since 2.0
*/
public Query endAt(boolean value, String key) {
return endAt(new BooleanNode(value, PriorityUtilities.NullPriority()), key);
}
代码示例来源:origin: firebase/firebase-admin-java
/**
* Create a query constrained to only return child nodes with a value less than or equal to the
* given value, using the given orderBy directive or priority as default, and additionally only
* child nodes with a key key less than or equal to the given key.
*
* @param value The value to end at, inclusive
* @param key The key to end at, inclusive
* @return A Query with the new constraint
*/
public Query endAt(String value, String key) {
Node node =
value != null ? new StringNode(value, PriorityUtilities.NullPriority()) : EmptyNode.Empty();
return endAt(node, key);
}
代码示例来源:origin: Stoick001/SnapchatClone
private void listenForData() {
DatabaseReference usersDB = FirebaseDatabase.getInstance().getReference().child("users");
Query query = usersDB.orderByChild("username").startAt(searchUsers.getText().toString()).endAt(searchUsers.getText().toString() + "\uf8ff");
内容来源于网络,如有侵权,请联系作者删除!