@Test public void testBuildBlobId() throws Exception { BlobId blobId = new BlobId(version, referenceType, referenceDatacenterId, referenceAccountId, referenceContainerId, referencePartitionId, referenceIsEncrypted, referenceDataType); assertEquals("Wrong blobId version", version, getVersionFromBlobString(blobId.getID())); assertBlobIdFieldValues(version, blobId, referenceType, referenceDatacenterId, referenceAccountId, referenceContainerId, referencePartitionId, referenceIsEncrypted, referenceDataType); }
@Override public String getID() { return Base64.encodeBase64URLSafeString(toBytes()); }
BlobId extends StoreKey { @Override public String getID() { return Base64.encodeBase64URLSafeString(toBytes()); } }
BlobId extends StoreKey { @Override public String getID() { return Base64.encodeBase64URLSafeString(toBytes()); } BlobId(short version, BlobIdType type, byte datacenterId, short accountId, short containerId,
      PartitionId partitionId, boolean isEncrypted, BlobDataType blobDataType);   BlobId(short version, BlobIdType type, byte datacenterId, short accountId, short containerId, PartitionId partitionId,
      boolean isEncrypted, BlobDataType blobDataType, String uuidStr); private  BlobId(DataInputStream stream, ClusterMap clusterMap, boolean ensureFullyRead);  BlobId(String id, ClusterMap clusterMap);  BlobId(DataInputStream stream, ClusterMap clusterMap); }
BlobId extends StoreKey { @Override public String getID() { return Base64.encodeBase64URLSafeString(toBytes()); } BlobId(short version, BlobIdType type, byte datacenterId, short accountId, short containerId,
      PartitionId partitionId, boolean isEncrypted, BlobDataType blobDataType);   BlobId(short version, BlobIdType type, byte datacenterId, short accountId, short containerId, PartitionId partitionId,
      boolean isEncrypted, BlobDataType blobDataType, String uuidStr); private  BlobId(DataInputStream stream, ClusterMap clusterMap, boolean ensureFullyRead);  BlobId(String id, ClusterMap clusterMap);  BlobId(DataInputStream stream, ClusterMap clusterMap); short sizeInBytes(); short getVersion(); PartitionId getPartition(); short getAccountId(); short getContainerId(); @Override boolean isAccountContainerMatch(short accountId, short containerId); byte getDatacenterId(); BlobIdType getType(); BlobDataType getBlobDataType(); static boolean isEncrypted(String blobIdString); String getUuid(); @Override byte[] toBytes(); @Override byte[] getUuidBytesArray(); @Override String getID(); @Override String getLongForm(); @Override String toString(); @Override int compareTo(StoreKey o); @Override boolean equals(Object o); @Override int hashCode(); static Short[] getAllValidVersions(); static BlobId craft(BlobId inputId, short targetVersion, short accountId, short containerId); static boolean isCrafted(String idStr); static short getVersion(String idStr); static Pair<Short, Short> getAccountAndContainerIds(String idStr); static BlobDataType getBlobDataType(String idStr); }
BlobId extends StoreKey { @Override public String getID() { return Base64.encodeBase64URLSafeString(toBytes()); } BlobId(short version, BlobIdType type, byte datacenterId, short accountId, short containerId,
      PartitionId partitionId, boolean isEncrypted, BlobDataType blobDataType);   BlobId(short version, BlobIdType type, byte datacenterId, short accountId, short containerId, PartitionId partitionId,
      boolean isEncrypted, BlobDataType blobDataType, String uuidStr); private  BlobId(DataInputStream stream, ClusterMap clusterMap, boolean ensureFullyRead);  BlobId(String id, ClusterMap clusterMap);  BlobId(DataInputStream stream, ClusterMap clusterMap); short sizeInBytes(); short getVersion(); PartitionId getPartition(); short getAccountId(); short getContainerId(); @Override boolean isAccountContainerMatch(short accountId, short containerId); byte getDatacenterId(); BlobIdType getType(); BlobDataType getBlobDataType(); static boolean isEncrypted(String blobIdString); String getUuid(); @Override byte[] toBytes(); @Override byte[] getUuidBytesArray(); @Override String getID(); @Override String getLongForm(); @Override String toString(); @Override int compareTo(StoreKey o); @Override boolean equals(Object o); @Override int hashCode(); static Short[] getAllValidVersions(); static BlobId craft(BlobId inputId, short targetVersion, short accountId, short containerId); static boolean isCrafted(String idStr); static short getVersion(String idStr); static Pair<Short, Short> getAccountAndContainerIds(String idStr); static BlobDataType getBlobDataType(String idStr); static final short BLOB_ID_V1; static final short BLOB_ID_V2; static final short BLOB_ID_V3; static final short BLOB_ID_V4; static final short BLOB_ID_V5; static final short BLOB_ID_V6; }