Class Field
java.lang.Object
com.google.cloud.firestore.pipeline.expressions.Expression
com.google.cloud.firestore.pipeline.expressions.Field
- All Implemented Interfaces:
Selectable
Represents a reference to a field in a Firestore document.
Field references are used to access document field values in expressions and to specify fields for sorting, filtering, and projecting data in Firestore pipelines.
You can create a `Field` instance using the static Expression.field(String) method:
// Create a Field instance for the 'name' field
Field nameField = Field.of("name");
// Create a Field instance for a nested field 'address.city'
Field cityField = Field.of("address.city");
-
Field Summary
Fields -
Method Summary
Methods inherited from class com.google.cloud.firestore.pipeline.expressions.Expression
abs, abs, abs, add, add, add, add, add, and, array, array, arrayAgg, arrayAggDistinct, arrayConcat, arrayConcat, arrayConcat, arrayContains, arrayContains, arrayContains, arrayContains, arrayContains, arrayContainsAll, arrayContainsAll, arrayContainsAll, arrayContainsAll, arrayContainsAll, arrayContainsAll, arrayContainsAny, arrayContainsAny, arrayContainsAny, arrayContainsAny, arrayContainsAny, arrayContainsAny, arrayFirst, arrayFirst, arrayFirst, arrayFirstN, arrayFirstN, arrayFirstN, arrayFirstN, arrayFirstN, arrayFirstN, arrayGet, arrayGet, arrayGet, arrayGet, arrayGet, arrayGet, arrayIndexOf, arrayIndexOf, arrayIndexOf, arrayIndexOf, arrayIndexOf, arrayIndexOf, arrayIndexOfAll, arrayIndexOfAll, arrayIndexOfAll, arrayIndexOfAll, arrayIndexOfAll, arrayIndexOfAll, arrayLast, arrayLast, arrayLast, arrayLastIndexOf, arrayLastIndexOf, arrayLastIndexOf, arrayLastIndexOf, arrayLastIndexOf, arrayLastIndexOf, arrayLastN, arrayLastN, arrayLastN, arrayLastN, arrayLastN, arrayLastN, arrayLength, arrayLength, arrayLength, arrayMaximum, arrayMaximum, arrayMaximum, arrayMaximumN, arrayMaximumN, arrayMaximumN, arrayMaximumN, arrayMaximumN, arrayMaximumN, arrayMinimum, arrayMinimum, arrayMinimum, arrayMinimumN, arrayMinimumN, arrayMinimumN, arrayMinimumN, arrayMinimumN, arrayMinimumN, arrayReverse, arrayReverse, arrayReverse, arraySum, arraySum, arraySum, as, ascending, average, byteLength, byteLength, byteLength, ceil, ceil, ceil, charLength, charLength, charLength, collectionId, collectionId, collectionId, concat, concat, concat, conditional, conditional, constant, constant, constant, constant, constant, constant, constant, constant, constant, constant, cosineDistance, cosineDistance, cosineDistance, cosineDistance, cosineDistance, cosineDistance, count, countDistinct, currentTimestamp, descending, divide, divide, divide, divide, divide, documentId, documentId, documentId, documentId, dotProduct, dotProduct, dotProduct, dotProduct, dotProduct, dotProduct, endsWith, endsWith, endsWith, endsWith, endsWith, equal, equal, equal, equal, equal, equalAny, equalAny, equalAny, equalAny, equalAny, euclideanDistance, euclideanDistance, euclideanDistance, euclideanDistance, euclideanDistance, euclideanDistance, exists, exists, exists, exp, exp, exp, field, field, first, floor, floor, floor, greaterThan, greaterThan, greaterThan, greaterThan, greaterThan, greaterThanOrEqual, greaterThanOrEqual, greaterThanOrEqual, greaterThanOrEqual, greaterThanOrEqual, ifAbsent, ifAbsent, ifAbsent, ifAbsent, ifAbsent, ifError, ifError, ifError, ifError, ifError, isAbsent, isAbsent, isAbsent, isError, isError, isNaN, isNotNaN, isNotNaN, isNotNaN, isNotNull, isNull, join, join, join, join, join, join, last, length, length, length, lessThan, lessThan, lessThan, lessThan, lessThan, lessThanOrEqual, lessThanOrEqual, lessThanOrEqual, lessThanOrEqual, lessThanOrEqual, like, like, like, like, like, ln, ln, ln, log, log, log, log, log10, log10, log10, logicalMaximum, logicalMaximum, logicalMaximum, logicalMinimum, logicalMinimum, logicalMinimum, map, mapGet, mapGet, mapGet, mapGet, mapGet, mapMerge, mapMerge, mapMerge, mapMerge, mapMerge, mapRemove, mapRemove, mapRemove, mapRemove, mapRemove, mapRemove, maximum, minimum, mod, mod, mod, mod, mod, multiply, multiply, multiply, multiply, multiply, not, notEqual, notEqual, notEqual, notEqual, notEqual, notEqualAny, notEqualAny, notEqualAny, notEqualAny, notEqualAny, nullValue, or, pow, pow, pow, pow, pow, pow, rand, rawExpression, regexContains, regexContains, regexContains, regexContains, regexContains, regexFind, regexFind, regexFind, regexFind, regexFind, regexFindAll, regexFindAll, regexFindAll, regexFindAll, regexFindAll, regexMatch, regexMatch, regexMatch, regexMatch, regexMatch, reverse, reverse, reverse, round, round, round, roundToPrecision, roundToPrecision, roundToPrecision, roundToPrecision, roundToPrecision, roundToPrecision, split, split, split, split, split, split, sqrt, sqrt, sqrt, startsWith, startsWith, startsWith, startsWith, startsWith, stringConcat, stringConcat, stringConcat, stringConcat, stringContains, stringContains, stringContains, stringContains, stringContains, substring, substring, substring, subtract, subtract, subtract, subtract, subtract, sum, timestampAdd, timestampAdd, timestampAdd, timestampAdd, timestampAdd, timestampAdd, timestampSubtract, timestampSubtract, timestampSubtract, timestampSubtract, timestampSubtract, timestampSubtract, timestampToUnixMicros, timestampToUnixMicros, timestampToUnixMicros, timestampToUnixMillis, timestampToUnixMillis, timestampToUnixMillis, timestampToUnixSeconds, timestampToUnixSeconds, timestampToUnixSeconds, timestampTruncate, timestampTruncate, timestampTruncate, timestampTruncate, timestampTruncate, timestampTruncate, timestampTruncate, timestampTruncate, timestampTruncate, timestampTruncate, toLower, toLower, toLower, toUpper, toUpper, toUpper, trim, trim, trim, trimValue, trimValue, trimValue, trimValue, trimValue, trimValue, trunc, trunc, trunc, truncToPrecision, truncToPrecision, truncToPrecision, truncToPrecision, truncToPrecision, truncToPrecision, type, type, type, unixMicrosToTimestamp, unixMicrosToTimestamp, unixMicrosToTimestamp, unixMillisToTimestamp, unixMillisToTimestamp, unixMillisToTimestamp, unixSecondsToTimestamp, unixSecondsToTimestamp, unixSecondsToTimestamp, vectorLength, vectorLength, vectorLength, xor
-
Field Details
-
DOCUMENT_ID
- See Also:
-
-
Method Details
-
ofUserPath
Creates aFieldinstance representing the field at the given path.The path can be a simple field name (e.g., "name") or a dot-separated path to a nested field (e.g., "address.city").
Example:
// Create a Field instance for the 'title' field Field titleField = Field.of("title"); // Create a Field instance for a nested field 'author.firstName' Field authorFirstNameField = Field.of("author.firstName");- Parameters:
path- The path to the field.- Returns:
- A new
Fieldinstance representing the specified field.
-
ofServerPath
-
toProto
-
equals
-
hashCode
public int hashCode() -
getPath
-