@Test public void testEncode() { assertEquals(MetaDataUtil.encodeVersion("0.94.5"),MetaDataUtil.encodeVersion("0.94.5-mapR")); assertTrue(MetaDataUtil.encodeVersion("0.94.6")>MetaDataUtil.encodeVersion("0.94.5-mapR")); assertTrue(MetaDataUtil.encodeVersion("0.94.6")>MetaDataUtil.encodeVersion("0.94.5")); assertTrue(MetaDataUtil.encodeVersion("0.94.1-mapR")>MetaDataUtil.encodeVersion("0.94")); }
public static int encodeVersion(String version) { String[] versionParts = splitHBaseVersionString(version); return encodeVersion(versionParts[0], versionParts.length > 1 ? versionParts[1] : null, versionParts.length > 2 ? versionParts[2] : null); }
MetaDataUtil { public static int encodeVersion(String version) { String[] versionParts = splitHBaseVersionString(version); return encodeVersion(versionParts[0], versionParts.length > 1 ? versionParts[1] : null, versionParts.length > 2 ? versionParts[2] : null); } }
MetaDataUtil { public static int encodeVersion(String version) { String[] versionParts = splitHBaseVersionString(version); return encodeVersion(versionParts[0], versionParts.length > 1 ? versionParts[1] : null, versionParts.length > 2 ? versionParts[2] : null); }  }
MetaDataUtil { public static int encodeVersion(String version) { String[] versionParts = splitHBaseVersionString(version); return encodeVersion(versionParts[0], versionParts.length > 1 ? versionParts[1] : null, versionParts.length > 2 ? versionParts[2] : null); }  static boolean areClientAndServerCompatible(long version); static int decodePhoenixVersion(long version); static long encodeMutableIndexConfiguredProperly(long version, boolean isValid); static boolean decodeMutableIndexConfiguredProperly(long version); static int decodeHBaseVersion(long version); static String decodeHBaseVersionAsString(int version); static long encodeHBaseAndPhoenixVersions(String hbaseVersion); static int encodeVersion(String version); static String[] splitHBaseVersionString(String version); static int encodeVersion(String major, String minor, String patch); static int encodeVersion(int major, int minor, int patch); static int encodeMaxPatchVersion(int major, int minor); static int encodeMinPatchVersion(int major, int minor); static void getTenantIdAndSchemaAndTableName(List<Mutation> tableMetadata, byte[][] rowKeyMetaData); static byte[] getParentTableName(List<Mutation> tableMetadata); static long getSequenceNumber(Mutation tableMutation); static byte[] getBaseTableName(List<Mutation> tableMutations); static byte[] getBaseSchemaName(List<Mutation> tableMutations); static long getSequenceNumber(List<Mutation> tableMetaData); static PTableType getTableType(List<Mutation> tableMetaData); static long getParentSequenceNumber(List<Mutation> tableMetaData); static Mutation getTableHeaderRow(List<Mutation> tableMetaData); static Mutation getPutOnlyTableHeaderRow(List<Mutation> tableMetaData); static Mutation getParentTableHeaderRow(List<Mutation> tableMetaData); static long getClientTimeStamp(List<Mutation> tableMetadata); static long getClientTimeStamp(Mutation m); static byte[] getParentLinkKey(String tenantId, String schemaName, String tableName, String indexName); static byte[] getParentLinkKey(byte[] tenantId, byte[] schemaName, byte[] tableName, byte[] indexName); }
MetaDataUtil { public static int encodeVersion(String version) { String[] versionParts = splitHBaseVersionString(version); return encodeVersion(versionParts[0], versionParts.length > 1 ? versionParts[1] : null, versionParts.length > 2 ? versionParts[2] : null); }  static boolean areClientAndServerCompatible(long version); static int decodePhoenixVersion(long version); static long encodeMutableIndexConfiguredProperly(long version, boolean isValid); static boolean decodeMutableIndexConfiguredProperly(long version); static int decodeHBaseVersion(long version); static String decodeHBaseVersionAsString(int version); static long encodeHBaseAndPhoenixVersions(String hbaseVersion); static int encodeVersion(String version); static String[] splitHBaseVersionString(String version); static int encodeVersion(String major, String minor, String patch); static int encodeVersion(int major, int minor, int patch); static int encodeMaxPatchVersion(int major, int minor); static int encodeMinPatchVersion(int major, int minor); static void getTenantIdAndSchemaAndTableName(List<Mutation> tableMetadata, byte[][] rowKeyMetaData); static byte[] getParentTableName(List<Mutation> tableMetadata); static long getSequenceNumber(Mutation tableMutation); static byte[] getBaseTableName(List<Mutation> tableMutations); static byte[] getBaseSchemaName(List<Mutation> tableMutations); static long getSequenceNumber(List<Mutation> tableMetaData); static PTableType getTableType(List<Mutation> tableMetaData); static long getParentSequenceNumber(List<Mutation> tableMetaData); static Mutation getTableHeaderRow(List<Mutation> tableMetaData); static Mutation getPutOnlyTableHeaderRow(List<Mutation> tableMetaData); static Mutation getParentTableHeaderRow(List<Mutation> tableMetaData); static long getClientTimeStamp(List<Mutation> tableMetadata); static long getClientTimeStamp(Mutation m); static byte[] getParentLinkKey(String tenantId, String schemaName, String tableName, String indexName); static byte[] getParentLinkKey(byte[] tenantId, byte[] schemaName, byte[] tableName, byte[] indexName);  }