Interface Type
- All Known Subinterfaces:
Type.HllAggregateInput,Type.MaxAggregateInput,Type.MinAggregateInput,Type.SumAggregateInput
- All Known Implementing Classes:
Type.Aggregate,Type.Bytes,Type.Int64,Type.Raw
@BetaApi
public interface Type
Wrapper class for the
Type protobuf message.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classA value that combines incremental updates into a summarized value.static classRepresents a string of bytes with a specific encoding.static interfacestatic classRepresents a 64-bit integer with a specific encoding.static interfacestatic interfacestatic classstatic interfaceThese types are marker types that allow types to be used as the input to aggregate function. -
Method Summary
Modifier and TypeMethodDescriptionstatic Type.Int64Creates an Int64 type with a big-endian encoding.static Type.Bytesbytes(Type.Bytes.Encoding encoding) Creates a Bytes type with the specified encodingstatic Typestatic Type.Aggregatehll(Type.HllAggregateInput inputType) Creates an Aggregate type with a HLL aggregator and specified input type.static Type.Int64int64(Type.Int64.Encoding encoding) Creates an Int64 type with the specified encoding.static Type.Aggregateint64Hll()Creates an Aggregate type with a HLL aggregator and Int64 input type.static Type.Aggregateint64Max()Creates an Aggregate type with a MAX aggregator and Int64 input type.static Type.Aggregateint64Min()Creates an Aggregate type with a MIN aggregator and Int64 input type.static Type.Aggregateint64Sum()Creates an Aggregate type with a SUM aggregator and Int64 input type.static Type.Aggregatemax(Type.MaxAggregateInput inputType) Creates an Aggregate type with a MAX aggregator and specified input type.static Type.Aggregatemin(Type.MinAggregateInput inputType) Creates an Aggregate type with a MIN aggregator and specified input type.static Type.Rawraw()The raw type denotes the absence of a type.static Type.BytesrawBytes()Creates a Bytes type with a "raw" encoding, leaving the bytes encoded as they are passed in.static Type.Aggregatesum(Type.SumAggregateInput inputType) Creates an Aggregate type with a SUM aggregator and specified input type.toProto()
-
Method Details
-
toProto
Type toProto() -
fromProto
-
raw
The raw type denotes the absence of a type. -
rawBytes
Creates a Bytes type with a "raw" encoding, leaving the bytes encoded as they are passed in. -
bytes
Creates a Bytes type with the specified encoding -
bigEndianInt64
Creates an Int64 type with a big-endian encoding. The bytes are then encoded in "raw" format. -
int64
Creates an Int64 type with the specified encoding. -
int64Sum
Creates an Aggregate type with a SUM aggregator and Int64 input type. -
sum
Creates an Aggregate type with a SUM aggregator and specified input type. -
int64Min
Creates an Aggregate type with a MIN aggregator and Int64 input type. -
min
Creates an Aggregate type with a MIN aggregator and specified input type. -
int64Max
Creates an Aggregate type with a MAX aggregator and Int64 input type. -
max
Creates an Aggregate type with a MAX aggregator and specified input type. -
int64Hll
Creates an Aggregate type with a HLL aggregator and Int64 input type. -
hll
Creates an Aggregate type with a HLL aggregator and specified input type.
-