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>
DataGroup
defines data groups ofplatform messages
that flow throughtransports
. UseforAuthority(String)
to parse the authority into a recognized data group.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONTENT_INDEX
The replicated content index data group.DICTIONARY
The replicated dictionary data group.QUERY
The replicated query data group.RELEVANCY
The replicated control query data group.SEARCH_PROFILE
The replicated search profile data group.SIGNAL
The replicated signal data group.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DataGroup
forAuthority(java.lang.String authority)
Retrieve theDataGroup
for the given authority.java.lang.String
getAuthority()
Return the exact authority name.java.lang.String
getAuthorityPrefix()
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.String
toString()
static DataGroup
valueOf(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.
-
RELEVANCY
public static final DataGroup RELEVANCY
The replicated control query data group.
-
SIGNAL
public static final DataGroup SIGNAL
The replicated signal data group.
-
QUERY
public static final DataGroup QUERY
The replicated query 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 theDataGroup
for the given authority. The authority is resolved to aDataGroup
first by exactstring
match then by prefix.- Parameters:
authority
-String
the authority to resolve- Returns:
DataGroup
the data group for the given authority ornull
if 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:
Set
of 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:
Set
of 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:
String
authority; 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:
String
authority prefix; may benull
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<DataGroup>
-
-