public class IndexMutation extends Mutation<IndexEntry,IndexEntry>
IndexProvider
to execute updates more
efficiently.Modifier and Type | Field and Description |
---|---|
static com.google.common.base.Function<IndexEntry,String> |
ENTRY2FIELD_FCT |
Constructor and Description |
---|
IndexMutation(boolean isNew,
boolean isDeleted) |
IndexMutation(List<IndexEntry> additions,
List<IndexEntry> deletions,
boolean isNew,
boolean isDeleted) |
Modifier and Type | Method and Description |
---|---|
void |
consolidate() |
int |
determineTTL() |
static int |
determineTTL(List<IndexEntry> additions) |
boolean |
isConsolidated() |
boolean |
isDeleted() |
boolean |
isNew() |
void |
merge(IndexMutation m) |
void |
resetDelete() |
addition, consolidate, deletion, getAdditions, getDeletions, getTotalMutations, hasAdditions, hasDeletions, isConsolidated, isEmpty, merge
public static final com.google.common.base.Function<IndexEntry,String> ENTRY2FIELD_FCT
public IndexMutation(List<IndexEntry> additions, List<IndexEntry> deletions, boolean isNew, boolean isDeleted)
public IndexMutation(boolean isNew, boolean isDeleted)
public void merge(IndexMutation m)
public boolean isNew()
public boolean isDeleted()
public void resetDelete()
public void consolidate()
consolidate
in class Mutation<IndexEntry,IndexEntry>
public boolean isConsolidated()
isConsolidated
in class Mutation<IndexEntry,IndexEntry>
public int determineTTL()
public static int determineTTL(List<IndexEntry> additions)
Copyright © 2012–2015. All rights reserved.