public class ConsistentHashingNode extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
ConsistentHashingNode.NodeTag
Node tag.
|
| Constructor and Description |
|---|
ConsistentHashingNode(int value,
String fileIdPrefix) |
ConsistentHashingNode(int value,
String fileIdPrefix,
ConsistentHashingNode.NodeTag tag) |
| Modifier and Type | Method and Description |
|---|---|
static List<ConsistentHashingNode> |
fromJsonString(String json) |
String |
getFileIdPrefix() |
ConsistentHashingNode.NodeTag |
getTag() |
int |
getValue() |
static String |
toJsonString(List<ConsistentHashingNode> nodes) |
String |
toString() |
public ConsistentHashingNode(int value,
String fileIdPrefix)
public ConsistentHashingNode(int value,
String fileIdPrefix,
ConsistentHashingNode.NodeTag tag)
public static String toJsonString(List<ConsistentHashingNode> nodes) throws IOException
IOExceptionpublic static List<ConsistentHashingNode> fromJsonString(String json) throws Exception
Exceptionpublic int getValue()
public String getFileIdPrefix()
public ConsistentHashingNode.NodeTag getTag()
Copyright © 2024 The Apache Software Foundation. All rights reserved.