public class CompleteRowKeyAssembler extends Object implements RowKeyScanAssembler, CompleteRowKey
DataGraphMapping,
TableMapping,
DataField,
MetaField,
MetaFieldName| Modifier and Type | Field and Description |
|---|---|
protected int |
bufsize |
protected Charset |
charset |
protected DataGraphMapping |
graph |
protected KeySupport |
keySupport |
protected StoreMappingContext |
mappingContext |
protected org.plasma.sdo.PlasmaType |
rootType |
protected String |
rootUUID |
protected ScanLiterals |
scanLiterals |
protected ByteBuffer |
startKey |
protected int |
startRowFieldCount |
protected TableMapping |
table |
| Constructor and Description |
|---|
CompleteRowKeyAssembler(org.plasma.sdo.PlasmaType rootType,
StoreMappingContext mappingContext)
Constructor
|
CompleteRowKeyAssembler(org.plasma.sdo.PlasmaType rootType,
String rootUUID,
StoreMappingContext mappingContext)
Constructor which enables the use of data object UUID as a pre-defined row
key field.
|
| Modifier and Type | Method and Description |
|---|---|
void |
assemble()
Assemble row key scan information based only on any pre-defined row-key
fields such as the data graph root type or URI.
|
void |
assemble(ScanLiterals literals)
Assemble row key scan information based on the given scan literals as well
as pre-defined row-key fields such as the data graph root type or URI.
|
void |
assemble(org.plasma.query.model.Where where,
org.plasma.sdo.PlasmaType contextType)
Assemble row key scan information based on one or more given query
predicates.
|
byte[] |
getKey()
Returns the row key as a byte array.
|
protected int bufsize
protected ByteBuffer startKey
protected org.plasma.sdo.PlasmaType rootType
protected StoreMappingContext mappingContext
protected DataGraphMapping graph
protected TableMapping table
protected KeySupport keySupport
protected Charset charset
protected ScanLiterals scanLiterals
protected int startRowFieldCount
protected String rootUUID
public CompleteRowKeyAssembler(org.plasma.sdo.PlasmaType rootType,
StoreMappingContext mappingContext)
rootType - the root typepublic CompleteRowKeyAssembler(org.plasma.sdo.PlasmaType rootType,
String rootUUID,
StoreMappingContext mappingContext)
rootType - the root typerootUUID - the root UUID.public void assemble()
assemble in interface RowKeyScanAssemblerMetaField,
MetaFieldNamepublic void assemble(ScanLiterals literals)
assemble in interface RowKeyScanAssemblerliteralList - the scan literalsMetaField,
MetaFieldNamepublic void assemble(org.plasma.query.model.Where where,
org.plasma.sdo.PlasmaType contextType)
assemble in interface RowKeyScanAssemblerwhere - the row predicate hierarchycontextType - the context type which may be the root type or another type linked
by one or more relations to the rootpublic byte[] getKey()
getKey in interface CompleteRowKeyIllegalStateException - if the row key is not yet assembledCopyright © 2021. All Rights Reserved.