Class IndexKeyValueToPartialRecord.Builder
- java.lang.Object
-
- com.apple.foundationdb.record.query.plan.IndexKeyValueToPartialRecord.Builder
-
- Enclosing class:
- IndexKeyValueToPartialRecord
public static class IndexKeyValueToPartialRecord.Builder extends Object
A builder forIndexKeyValueToPartialRecord
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IndexKeyValueToPartialRecord.Builder
addField(String field, IndexKeyValueToPartialRecord.TupleSource source, int index)
void
addRequiredMessageFields()
IndexKeyValueToPartialRecord
build()
IndexKeyValueToPartialRecord.Builder
getFieldBuilder(String field)
boolean
hasField(String field)
boolean
isValid()
To be valid for covering index use, must set all required fields and not attempt to set repeated fields, for which the index only has a partial view.boolean
isValid(boolean allowRepeated)
-
-
-
Method Detail
-
addField
public IndexKeyValueToPartialRecord.Builder addField(@Nonnull String field, @Nonnull IndexKeyValueToPartialRecord.TupleSource source, int index)
-
getFieldBuilder
public IndexKeyValueToPartialRecord.Builder getFieldBuilder(@Nonnull String field)
-
addRequiredMessageFields
public void addRequiredMessageFields()
-
isValid
public boolean isValid()
To be valid for covering index use, must set all required fields and not attempt to set repeated fields, for which the index only has a partial view.- Returns:
- whether this is a valid use
-
isValid
public boolean isValid(boolean allowRepeated)
-
build
public IndexKeyValueToPartialRecord build()
-
-