C
- type of constituent record types@API(value=EXPERIMENTAL) public abstract class SyntheticRecordTypeBuilder<C extends SyntheticRecordTypeBuilder.Constituent> extends RecordTypeIndexesBuilder
SyntheticRecordType
.Modifier and Type | Class and Description |
---|---|
static class |
SyntheticRecordTypeBuilder.Constituent
A constituent type within a joined record type.
|
indexes, multiTypeIndexes, name, recordTypeKey
Modifier | Constructor and Description |
---|---|
protected |
SyntheticRecordTypeBuilder(String name,
Object recordTypeKey,
RecordMetaDataBuilder metaDataBuilder) |
Modifier and Type | Method and Description |
---|---|
protected C |
addConstituent(C constituent)
Add a new constituent.
|
C |
addConstituent(RecordTypeBuilder recordType)
Add a new constituent with a correlation name that is the same as the record type name.
|
protected C |
addConstituent(String constituent)
Add a new constituent with a correlation name that is the same as the record type name.
|
C |
addConstituent(String name,
RecordTypeBuilder recordType)
Add a new constituent by name.
|
C |
addConstituent(String name,
String recordType)
Add a new constituent by name.
|
abstract SyntheticRecordType<?> |
build(RecordMetaData metaData,
Descriptors.FileDescriptor fileDescriptor) |
void |
buildDescriptor(DescriptorProtos.FileDescriptorProto.Builder fileDescriptorProto) |
protected KeyExpression |
buildPrimaryKey() |
List<C> |
getConstituents()
Get the constitutents of this synthetic record type.
|
protected abstract C |
newConstituent(String name,
RecordTypeBuilder recordType) |
SyntheticRecordTypeBuilder<C> |
setRecordTypeKey(Object recordTypeKey) |
getIndexes, getMultiTypeIndexes, getName, getRecordTypeKey
public SyntheticRecordTypeBuilder<C> setRecordTypeKey(@Nullable Object recordTypeKey)
setRecordTypeKey
in class RecordTypeIndexesBuilder
@Nonnull public List<C> getConstituents()
@Nonnull protected abstract C newConstituent(@Nonnull String name, @Nonnull RecordTypeBuilder recordType)
@Nonnull protected C addConstituent(@Nonnull C constituent)
constituent
- the new constituent@Nonnull public C addConstituent(@Nonnull String name, @Nonnull RecordTypeBuilder recordType)
name
- the correlation name for the new constituentrecordType
- the record type for the new constituent@Nonnull public C addConstituent(@Nonnull String name, @Nonnull String recordType)
name
- the correlation name for the new constituentrecordType
- the name of the record type for the new constituent@Nonnull public C addConstituent(@Nonnull RecordTypeBuilder recordType)
recordType
- the record type for the new constituent@Nonnull protected C addConstituent(@Nonnull String constituent)
constituent
- name of the record type for the new constituent@Nonnull public abstract SyntheticRecordType<?> build(@Nonnull RecordMetaData metaData, @Nonnull Descriptors.FileDescriptor fileDescriptor)
public void buildDescriptor(@Nonnull DescriptorProtos.FileDescriptorProto.Builder fileDescriptorProto)
@Nonnull protected KeyExpression buildPrimaryKey()