public interface Plumber
| Modifier and Type | Field and Description |
|---|---|
static IncrementalIndexAddResult |
DUPLICATE |
static IncrementalIndexAddResult |
NOT_WRITABLE |
static IncrementalIndexAddResult |
THROWAWAY |
| Modifier and Type | Method and Description |
|---|---|
IncrementalIndexAddResult |
add(InputRow row,
com.google.common.base.Supplier<Committer> committerSupplier) |
void |
finishJob()
Perform any final processing and clean up after ourselves.
|
<T> QueryRunner<T> |
getQueryRunner(Query<T> query) |
void |
persist(Committer committer)
Persist any in-memory indexed data to durable storage.
|
Object |
startJob()
Perform any initial setup.
|
static final IncrementalIndexAddResult THROWAWAY
static final IncrementalIndexAddResult NOT_WRITABLE
static final IncrementalIndexAddResult DUPLICATE
Object startJob()
finishJob().IncrementalIndexAddResult add(InputRow row, com.google.common.base.Supplier<Committer> committerSupplier) throws IndexSizeExceededException
row - the row to insertcommitterSupplier - supplier of a committer associated with all data that has been added, including this rowIndexSizeExceededException<T> QueryRunner<T> getQueryRunner(Query<T> query)
void persist(Committer committer)
committer - committer to use after persisting datavoid finishJob()
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.