public AppenderatorDriverAddResult add( InputRow row, String sequenceName, final Supplier<Committer> committerSupplier ) throws IOException { return append(row, sequenceName, committerSupplier, false, true); }
/** * Add a row. Must not be called concurrently from multiple threads. * * @param row the row to add * @param sequenceName sequenceName for this row's segment * @param committerSupplier supplier of a committer associated with all data that has been added, including this row * if {@param allowIncrementalPersists} is set to false then this will not be used * @param skipSegmentLineageCheck if true, perform lineage validation using previousSegmentId for this sequence. * Should be set to false if replica tasks would index events in same order * @param allowIncrementalPersists whether to allow persist to happen when maxRowsInMemory or intermediate persist period * threshold is hit * * @return {@link AppenderatorDriverAddResult} * * @throws IOException if there is an I/O error while allocating or writing to a segment */ public AppenderatorDriverAddResult add( final InputRow row, final String sequenceName, final Supplier<Committer> committerSupplier, final boolean skipSegmentLineageCheck, final boolean allowIncrementalPersists ) throws IOException { return append(row, sequenceName, committerSupplier, skipSegmentLineageCheck, allowIncrementalPersists); }
public AppenderatorDriverAddResult add( InputRow row, String sequenceName, final Supplier<Committer> committerSupplier ) throws IOException { return append(row, sequenceName, committerSupplier, false, true); }
/** * Add a row. Must not be called concurrently from multiple threads. * * @param row the row to add * @param sequenceName sequenceName for this row's segment * @param committerSupplier supplier of a committer associated with all data that has been added, including this row * if {@param allowIncrementalPersists} is set to false then this will not be used * @param skipSegmentLineageCheck if true, perform lineage validation using previousSegmentId for this sequence. * Should be set to false if replica tasks would index events in same order * @param allowIncrementalPersists whether to allow persist to happen when maxRowsInMemory or intermediate persist period * threshold is hit * * @return {@link AppenderatorDriverAddResult} * * @throws IOException if there is an I/O error while allocating or writing to a segment */ public AppenderatorDriverAddResult add( final InputRow row, final String sequenceName, final Supplier<Committer> committerSupplier, final boolean skipSegmentLineageCheck, final boolean allowIncrementalPersists ) throws IOException { return append(row, sequenceName, committerSupplier, skipSegmentLineageCheck, allowIncrementalPersists); }