io.permazen.SetElementIndexInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of permazen-main Show documentation
Show all versions of permazen-main Show documentation
Permazen classes that map Java model classes onto the core API.
/*
* Copyright (C) 2015 Archie L. Cobbs. All rights reserved.
*/
package io.permazen;
import io.permazen.core.ObjId;
import io.permazen.core.Transaction;
import io.permazen.core.type.ReferenceFieldType;
/**
* Represents an index on the {@code element} sub-field of a {@link JSetField}.
*/
class SetElementIndexInfo extends ComplexSubFieldIndexInfo {
SetElementIndexInfo(JSetField jfield) {
super(jfield.elementField);
}
@Override
protected Iterable> iterateReferences(Transaction tx, ObjId id) {
assert this.getFieldType() instanceof ReferenceFieldType;
return tx.readSetField(id, this.getParentStorageId(), false);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy