Class MultiAccessBuilder
- java.lang.Object
-
- cz.o2.proxima.direct.core.randomaccess.MultiAccessBuilder
-
- All Implemented Interfaces:
java.io.Serializable
@Stable public class MultiAccessBuilder extends java.lang.Object implements java.io.Serializable
A builder forRandomAccessReaderreading from multiple attribute families.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MultiAccessBuilderaddAttributes(RandomAccessReader reader, AttributeDescriptor<?>... attrs)Add specified attributes to be read with given reader.MultiAccessBuilderaddFamily(AttributeFamilyDescriptor family)Add specified family to be read with given reader.RandomAccessReaderbuild()CreateRandomAccessReaderfor attributes and/or families specified in this builder.
-
-
-
Method Detail
-
addAttributes
public MultiAccessBuilder addAttributes(RandomAccessReader reader, AttributeDescriptor<?>... attrs)
Add specified attributes to be read with given reader.- Parameters:
reader- the reader to use to read attributesattrs- the attributes to read with specified reader- Returns:
- this
-
addFamily
public MultiAccessBuilder addFamily(AttributeFamilyDescriptor family)
Add specified family to be read with given reader.- Parameters:
family- family to access with the built reader- Returns:
- this
-
build
public RandomAccessReader build()
CreateRandomAccessReaderfor attributes and/or families specified in this builder.- Returns:
RandomAccessReadercapable of reading from multiple attribute families.
-
-