Interface TestColumnSource<T>
- All Known Implementing Classes:
BooleanTestSource,ByteTestSource,CharTestSource,DateTimeTestSource,DoubleTestSource,FloatTestSource,ImmutableBooleanTestSource,ImmutableByteTestSource,ImmutableCharTestSource,ImmutableDateTimeTestSource,ImmutableDoubleTestSource,ImmutableFloatTestSource,ImmutableIntTestSource,ImmutableLongTestSource,ImmutableObjectTestSource,ImmutableShortTestSource,IntTestSource,LongTestSource,ObjectTestSource,ShortTestSource
public interface TestColumnSource<T>
A column source that is used within tests that we can add and remove values from at arbitrary locations.
-
Method Summary
Modifier and TypeMethodDescriptionvoidadd(ReadOnlyIndex index, Chunk<Attributes.Values> data) Add the chunk of data, parallel to index to this column source.voidremove(ReadOnlyIndex index) Remove the given index from the column source.voidshift(long startKeyInclusive, long endKeyInclusive, long shiftDelta) Move data within the column source.
-
Method Details
-
remove
Remove the given index from the column source.- Parameters:
index- the keys to remove
-
add
Add the chunk of data, parallel to index to this column source.For TestColumnSources with primitive types, the chunk of data must either be of the appropriate primitive type or an
ObjectChunkcontaining boxed values.- Parameters:
index- the index locations to add the datadata- the data to add
-
shift
void shift(long startKeyInclusive, long endKeyInclusive, long shiftDelta) Move data within the column source.- Parameters:
startKeyInclusive- the first key to shiftendKeyInclusive- the last key to shiftshiftDelta- how far to shift the data (either positive or negative)
-