热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

com.google.firebase.database.Query.startAt()方法的使用及代码示例

本文整理了Java中com.google.firebase.database.Query.startAt方法的一些代码示例,展示了Query.startAt

本文整理了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);
}

推荐阅读
author-avatar
MR张尉诚
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有