|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.conquiris.api.index.IndexInfo
@Immutable public final class IndexInfo
Conquiris index info at a certain commit point.
| Field Summary | |
|---|---|
static String |
CHECKPOINT
Checkpoint property. |
static String |
CHECKPOINT_NAME
Checkpoint property unqualified name. |
static String |
RESERVED_PREFIX
Reserved commit properties prefix. |
static String |
SEQUENCE
Sequence property. |
static String |
SEQUENCE_NAME
Sequence property unqualified name. |
static String |
TARGET_CHECKPOINT
Target checkpoint property. |
static String |
TARGET_CHECKPOINT_NAME
Target checkpoint property unqualified name. |
static String |
TIMESTAMP
Timestamp property. |
static String |
TIMESTAMP_NAME
Timestamp property unqualified name. |
| Method Summary | |
|---|---|
IndexInfo |
asBasic()
Returns a basic version without user properties. |
static IndexInfo |
empty()
Returns the empty object. |
boolean |
equals(Object obj)
|
static IndexInfo |
fromMap(Map<String,String> data)
Creates a new index info object from a string map. |
String |
getCheckpoint()
Returns the checkpoint. |
com.google.common.collect.ImmutableMap<String,String> |
getProperties()
Returns the commit properties. |
long |
getSequence()
Returns the commit sequence. |
String |
getTargetCheckpoint()
Returns the last known target checkpoint. |
long |
getTimestamp()
Returns the commit timestamp. |
int |
hashCode()
|
static com.google.common.base.Predicate<String> |
isReserved()
Returns the reserved property name predicate. |
static boolean |
isReserved(String key)
Returns whether a property name is reserved. |
static com.google.common.base.Predicate<Map.Entry<String,String>> |
isUserProperty()
Returns the valid user property predicate. |
static boolean |
isUserProperty(Map.Entry<String,String> entry)
Returns whether the provided entry is a valid user property. |
static boolean |
isUserProperty(String key,
String value)
Returns whether the provided entry is a valid user property. |
static IndexInfo |
of(String checkpoint,
String targetCheckpoint,
long timestamp,
long sequence,
Map<String,String> properties)
Creates a new index info object. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String RESERVED_PREFIX
public static final String CHECKPOINT_NAME
public static final String TARGET_CHECKPOINT_NAME
public static final String TIMESTAMP_NAME
public static final String SEQUENCE_NAME
public static final String CHECKPOINT
public static final String TARGET_CHECKPOINT
public static final String TIMESTAMP
public static final String SEQUENCE
| Method Detail |
|---|
public static boolean isReserved(String key)
public static com.google.common.base.Predicate<String> isReserved()
public static boolean isUserProperty(String key,
String value)
public static boolean isUserProperty(Map.Entry<String,String> entry)
public static com.google.common.base.Predicate<Map.Entry<String,String>> isUserProperty()
public static IndexInfo empty()
public static IndexInfo of(@Nullable
String checkpoint,
@Nullable
String targetCheckpoint,
long timestamp,
long sequence,
Map<String,String> properties)
checkpoint - Checkpoint.timestamp - Commit timestamp. Must be >= 0.sequence - Commit sequence. Must be >= 0.properties - User properties. Must be non-null and contain no reserved properties.
IllegalArgumentException - if any of the arguments is invalid.public static IndexInfo fromMap(Map<String,String> data)
data - Commit data.
public IndexInfo asBasic()
public String getCheckpoint()
public String getTargetCheckpoint()
public long getTimestamp()
public long getSequence()
public com.google.common.collect.ImmutableMap<String,String> getProperties()
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||