Package io.deephaven.engine.table
Interface WritableSourceWithPrepareForParallelPopulation
- All Known Implementing Classes:
BooleanArraySource,BooleanSparseArraySource,BooleanSparseArraySource.ReinterpretedAsByte,ByteArraySource,ByteSparseArraySource,CharacterArraySource,CharacterSparseArraySource,DoubleArraySource,DoubleSparseArraySource,FloatArraySource,FloatSparseArraySource,Immutable2DByteArraySource,Immutable2DCharArraySource,Immutable2DDoubleArraySource,Immutable2DFloatArraySource,Immutable2DInstantArraySource,Immutable2DIntArraySource,Immutable2DLongArraySource,Immutable2DNanosBasedTimeArraySource,Immutable2DObjectArraySource,Immutable2DShortArraySource,Immutable2DZonedDateTimeArraySource,ImmutableByteArraySource,ImmutableCharArraySource,ImmutableDoubleArraySource,ImmutableFloatArraySource,ImmutableInstantArraySource,ImmutableIntArraySource,ImmutableLongArraySource,ImmutableNanosBasedTimeArraySource,ImmutableObjectArraySource,ImmutableShortArraySource,ImmutableZonedDateTimeArraySource,InstantArraySource,InstantSparseArraySource,IntegerArraySource,IntegerSparseArraySource,LongArraySource,LongSparseArraySource,NanosBasedTimeArraySource,NanosBasedTimeSparseArraySource,ObjectArraySource,ObjectSparseArraySource,ShortArraySource,ShortSparseArraySource,SparseArrayColumnSource,ZonedDateTimeArraySource,ZonedDateTimeSparseArraySource
public interface WritableSourceWithPrepareForParallelPopulation
A writable source that allows parallel population.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanallSupportParallelPopulation(@NotNull WritableColumnSource<?>... sources) Test if allsourcessupport parallel parallel population.static voidprepareAll(@NotNull RowSequence rowSequence, @NotNull WritableColumnSource<?>... sources) Prepare allsourcesfor parallel population.voidprepareForParallelPopulation(RowSequence rowSequence) Prepare this column source such that: all values in rowSet may be accessed using getPrev all values in rowSet may be populated in parallelstatic booleanDoes the specified WritableColumnSource provide the prepareForParallelPopulation function?
-
Method Details
-
supportsParallelPopulation
Does the specified WritableColumnSource provide the prepareForParallelPopulation function?- Parameters:
wcs- the WritableColumnSource to check- Returns:
- true if prepareForParallelPopulation can be called on wcs
-
prepareForParallelPopulation
Prepare this column source such that:- all values in rowSet may be accessed using getPrev
- all values in rowSet may be populated in parallel
Further operations in this cycle need not check for previous when writing data to the column source; you must provide a row set that contains every row that may be written to this column source.
- Parameters:
rowSequence- the row sequence of values that will change on this cycle
-
allSupportParallelPopulation
Test if allsourcessupport parallel parallel population.- Parameters:
sources- Thesourcesto test- Returns:
- Whether all
sourcessupport parallel parallel population
-
prepareAll
static void prepareAll(@NotNull @NotNull RowSequence rowSequence, @NotNull @NotNull WritableColumnSource<?>... sources) Prepare allsourcesfor parallel population.- Parameters:
rowSequence- TheRowSequenceto prepare forsources- Thesourcesto prepare
-