Send feedback
Class FieldPath (3.2.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 3.2.0 keyboard_arrow_down
public abstract class FieldPath extends BasePath<FieldPath> implements Comparable<FieldPath>
A FieldPath
refers to a field in a document. The path may consist of a single field name
(referring to a top level field in the document), or a list of field names (referring to a nested
field in the document).
Static Methods
documentId()
public static FieldPath documentId ()
A special sentinel to refer to the ID of a document. It can be used in queries to sort or
filter by the document ID.
Returns
of(String[] fieldNames)
public static FieldPath of ( String [] fieldNames )
Creates a FieldPath from the provided field names. If more than one field name is provided, the
path will point to a nested field in a document.
Parameter
Name Description fieldNames String []
A list of field names.
Returns
Type Description FieldPath A FieldPath
that points to a field location in a document.
Constructors
FieldPath()
Methods
toString()
Returns
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-08-21 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?
{
"last_modified": "Last updated 2024-08-21 UTC.",
"state": ""
}