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