/** * Stores the specified schema entry in memory. * * External synchronization required. * * @param avroEntry Avro schema entry. * @return the SchemaEntry stored in memory. */ private SchemaEntry storeInMemory(final SchemaTableEntry avroEntry) { return storeInMemory(fromAvroEntry(avroEntry)); }
SCHEMA_COLUMN_QUALIFIER_BYTES)) { try { final SchemaEntry entry = fromAvroEntry(decodeSchemaEntry(keyValue.getValue())); entries.add(entry); if (!getSchemaHash(entry.getSchema()).equals(entry.getHash())) {
SCHEMA_COLUMN_QUALIFIER_BYTES)) { try { final SchemaEntry entry = fromAvroEntry(decodeSchemaEntry(keyValue.getValue())); entries.add(entry); if (!getSchemaHash(entry.getSchema()).equals(entry.getHash())) {
new HashSet<SchemaEntry>(avroBackupEntries.size()); for (SchemaTableEntry avroEntry : avroBackupEntries) { schemaTableEntries.add(fromAvroEntry(avroEntry));
final SchemaTableEntry existingAvroEntry = loadFromHashTable(schemaHash); if (existingAvroEntry != null) { return fromAvroEntry(existingAvroEntry);