Class Range (2.41.0)

public abstract class Range implements Serializable

Inheritance

java.lang.Object > Range

Implements

Serializable

Static Methods

newBuilder()

public static Range.Builder newBuilder()

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

Returns
Type Description
Range.Builder

of(String value)

public static Range of(String value)
Parameter
Name Description
value String
Returns
Type Description
Range
Exceptions
Type Description
IllegalArgumentException

of(String value, FieldElementType type)

public static Range of(String value, FieldElementType type)

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()

public Range()

Methods

getEnd()

public FieldValue getEnd()

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

Returns
Type Description
FieldValue

getStart()

public FieldValue getStart()

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

Returns
Type Description
FieldValue

getType()

public abstract FieldElementType getType()

Returns the type of the range.

Returns
Type Description
FieldElementType

getValues()

public ImmutableMap<String,String> getValues()

Returns the start and end values of this range.

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

toBuilder()

public abstract Range.Builder toBuilder()
Returns
Type Description
Range.Builder