Package com.attivio.sdk.transport
Enum DataGroup
- java.lang.Object
-
- java.lang.Enum<DataGroup>
-
- com.attivio.sdk.transport.DataGroup
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<DataGroup>
public enum DataGroup extends java.lang.Enum<DataGroup>
DataGroupdefines data groups ofplatform messagesthat flow throughtransports. UseforAuthority(String)to parse the authority into a recognized data group.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CAMPAIGNThe replicated campaign data group.CONTENT_INDEXThe replicated content index data group.CONTROL_QUERYThe replicated control query data group.DICTIONARYThe replicated dictionary data group.PROMOTIONThe replicated promotion data group.QUERY_ARCHIVEThe replicated query archive data group.RELEVANCYThe replicated relevancy (models and features) data group.SEARCH_PROFILEThe replicated search profile data group.SIGNALThe replicated signal data group.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DataGroupforAuthority(java.lang.String authority)Retrieve theDataGroupfor the given authority.java.lang.StringgetAuthority()Return the exact authority name.java.lang.StringgetAuthorityPrefix()Return the authority prefix.static java.util.Set<DataGroup>getMasterReplicatedDataGroups()Return the data groups that originate from a master in a multi-region deployment.static java.util.Set<DataGroup>getSlaveReplicatedDataGroups()Return the data groups that originate from a slave in a multi-region deployment.java.lang.StringtoString()static DataGroupvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static DataGroup[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONTENT_INDEX
public static final DataGroup CONTENT_INDEX
The replicated content index data group. One or more authorities may map to this instance.
-
SEARCH_PROFILE
public static final DataGroup SEARCH_PROFILE
The replicated search profile data group.
-
DICTIONARY
public static final DataGroup DICTIONARY
The replicated dictionary data group.
-
CONTROL_QUERY
public static final DataGroup CONTROL_QUERY
The replicated control query data group.
-
PROMOTION
public static final DataGroup PROMOTION
The replicated promotion data group.
-
CAMPAIGN
public static final DataGroup CAMPAIGN
The replicated campaign data group.
-
RELEVANCY
public static final DataGroup RELEVANCY
The replicated relevancy (models and features) data group.
-
SIGNAL
public static final DataGroup SIGNAL
The replicated signal data group.
-
QUERY_ARCHIVE
public static final DataGroup QUERY_ARCHIVE
The replicated query archive data group.
-
-
Method Detail
-
values
public static DataGroup[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DataGroup c : DataGroup.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DataGroup valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
forAuthority
public static DataGroup forAuthority(java.lang.String authority)
Retrieve theDataGroupfor the given authority. The authority is resolved to aDataGroupfirst by exactstringmatch then by prefix.- Parameters:
authority-Stringthe authority to resolve- Returns:
DataGroupthe data group for the given authority ornullif one could not be found
-
getMasterReplicatedDataGroups
public static java.util.Set<DataGroup> getMasterReplicatedDataGroups()
Return the data groups that originate from a master in a multi-region deployment.- Returns:
Setof data groups
-
getSlaveReplicatedDataGroups
public static java.util.Set<DataGroup> getSlaveReplicatedDataGroups()
Return the data groups that originate from a slave in a multi-region deployment.- Returns:
Setof data groups
-
getAuthority
public java.lang.String getAuthority()
Return the exact authority name. This will benull(e.g.CONTENT_INDEX) if thegetAuthorityPrefix()is used to dynamically compute the authority.- Returns:
Stringauthority; may benull
-
getAuthorityPrefix
public java.lang.String getAuthorityPrefix()
Return the authority prefix. This will benull(e.g.DICTIONARY) if thegetAuthority()represents the exact authority name.- Returns:
Stringauthority prefix; may benull
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Enum<DataGroup>
-
-