Class Range (2.46.0)

publicabstractclass RangeimplementsSerializable

Inheritance

java.lang.Object > Range

Implements

Serializable

Static Methods

newBuilder()

publicstaticRange.BuildernewBuilder()

Creates a range builder. Supported StandardSQLTypeName are [DATE, DATETIME, TIMESTAMP]

Returns
Type Description
Range.Builder

of(String value)

publicstaticRangeof(Stringvalue)
Parameter
Name Description
value String
Returns
Type Description
Range
Exceptions
Type Description
IllegalArgumentException

of(String value, FieldElementType type)

publicstaticRangeof(Stringvalue,FieldElementTypetype)

Creates an instance of Range from a string representation.

The expected string format is: "[start, end)", where start and end are string format of [DATE, TIME, TIMESTAMP].

Parameters
Name Description
value String
type FieldElementType
Returns
Type Description
Range
Exceptions
Type Description
IllegalArgumentException

Constructors

Range()

publicRange()

Methods

getEnd()

publicFieldValuegetEnd()

Returns the end value of the range. A null value represents an unbounded end.

Returns
Type Description
FieldValue

getStart()

publicFieldValuegetStart()

Returns the start value of the range. A null value represents an unbounded start.

Returns
Type Description
FieldValue

getType()

publicabstractFieldElementTypegetType()

Returns the type of the range.

Returns
Type Description
FieldElementType

getValues()

publicImmutableMap<String,String>getValues()

Returns the start and end values of this range.

Returns
Type Description
com.google.common.collect.ImmutableMap<String,String>

toBuilder()

publicabstractRange.BuildertoBuilder()
Returns
Type Description
Range.Builder

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 2025年10月30日 UTC.