Package com.nickrobison.tuple
Class DirectTupleSchema.Builder
- java.lang.Object
-
- com.nickrobison.tuple.TupleSchema.Builder
-
- com.nickrobison.tuple.DirectTupleSchema.Builder
-
- Enclosing class:
- DirectTupleSchema
public static class DirectTupleSchema.Builder extends TupleSchema.Builder
-
-
Field Summary
Fields Modifier and Type Field Description protected int
wordSize
-
Constructor Summary
Constructors Constructor Description Builder(TupleSchema.Builder builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DirectTupleSchema
build()
DirectTupleSchema.Builder
padToWordSize(int wordSize)
Pads out the size of each individual record such that it fits within a multiple of the wordSize.-
Methods inherited from class com.nickrobison.tuple.TupleSchema.Builder
addField, addFieldNames, addFieldNames, addFieldTypes, addFieldTypes, directMemory, expandingPool, heapMemory, implementInterface, poolOfSize
-
-
-
-
Constructor Detail
-
Builder
public Builder(TupleSchema.Builder builder)
-
-
Method Detail
-
padToWordSize
public DirectTupleSchema.Builder padToWordSize(int wordSize)
Pads out the size of each individual record such that it fits within a multiple of the wordSize. This is useful for eliminating false sharing when adjacent records are being utilized by different threads.- Parameters:
wordSize
- - Word size to pad between tuples- Returns:
- -
DirectTupleSchema.Builder
-
build
public DirectTupleSchema build() throws java.lang.Exception
- Throws:
java.lang.Exception
-
-