public static class BEncodedHeapShard.B64ShardMethod extends java.lang.Object implements BEncodedHeapShard.Method
Modifier and Type | Field and Description |
---|---|
private int |
charpos |
private int |
keylength |
private ByteOrder |
ordering |
private java.lang.String |
prefix |
private byte[] |
template |
Constructor and Description |
---|
BEncodedHeapShard.B64ShardMethod(int keylength,
ByteOrder ordering,
java.lang.String prefix) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
filename(byte[] key)
a sharding method produces a filename from a given key
|
int |
getKeylength()
get the maximum key length for access keys
|
ByteOrder |
getOrdering()
get the byte order on the keys
|
java.lang.String |
getShardName(java.lang.String filename) |
boolean |
isShardPart(java.lang.String filename)
check if the given file name is a part of the shard
|
private final int keylength
private final ByteOrder ordering
private final byte[] template
private final int charpos
private final java.lang.String prefix
public BEncodedHeapShard.B64ShardMethod(int keylength, ByteOrder ordering, java.lang.String prefix)
public java.lang.String filename(byte[] key)
BEncodedHeapShard.Method
filename
in interface BEncodedHeapShard.Method
public int getKeylength()
BEncodedHeapShard.Method
getKeylength
in interface BEncodedHeapShard.Method
public ByteOrder getOrdering()
BEncodedHeapShard.Method
getOrdering
in interface BEncodedHeapShard.Method
public boolean isShardPart(java.lang.String filename)
BEncodedHeapShard.Method
isShardPart
in interface BEncodedHeapShard.Method
public java.lang.String getShardName(java.lang.String filename)
getShardName
in interface BEncodedHeapShard.Method