public class CodecRegistryTupleTypeFactory extends Object implements TupleTypeFactory
CodecRegistry-based TupleTypeFactory using
TupleType.of(ProtocolVersion, CodecRegistry, DataType...) to create tuple types. tuple
types.| Modifier and Type | Field and Description |
|---|---|
static CodecRegistryTupleTypeFactory |
DEFAULT
Default
CodecRegistryTupleTypeFactory using newest protocol versions and the default CodecRegistry. |
| Constructor and Description |
|---|
CodecRegistryTupleTypeFactory(com.datastax.driver.core.ProtocolVersion protocolVersion,
com.datastax.driver.core.CodecRegistry codecRegistry)
|
| Modifier and Type | Method and Description |
|---|---|
com.datastax.driver.core.TupleType |
create(com.datastax.driver.core.DataType... types)
Create a
TupleType representing the given tuple element types. |
com.datastax.driver.core.TupleType |
create(List<com.datastax.driver.core.DataType> types)
Create a
TupleType representing the given tuple element types. |
public static final CodecRegistryTupleTypeFactory DEFAULT
CodecRegistryTupleTypeFactory using newest protocol versions and the default CodecRegistry.public CodecRegistryTupleTypeFactory(com.datastax.driver.core.ProtocolVersion protocolVersion,
com.datastax.driver.core.CodecRegistry codecRegistry)
protocolVersion - must not be null.codecRegistry - must not be null.public com.datastax.driver.core.TupleType create(com.datastax.driver.core.DataType... types)
TupleTypeFactoryTupleType representing the given tuple element types.create in interface TupleTypeFactorytypes - must not be null and not contain null elements.TupleType representing the given tuple element types.public com.datastax.driver.core.TupleType create(List<com.datastax.driver.core.DataType> types)
TupleTypeFactoryTupleType representing the given tuple element types.create in interface TupleTypeFactorytypes - must not be null.TupleType representing the given tuple element types.Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.