public static QueryKey deserialize(byte[] serializedIndexKey) { checkNotNull(serializedIndexKey); return new QueryKey(Util.deserializeAvroObject(serializedIndexKey, reader)); }
/** * Deserialize a byte array into a table schema. * * @param serializedTableSchema Byte array of the table schema [Not null] * @return An table schema for the byte array. */ public static TableSchema deserialize(byte[] serializedTableSchema) { checkNotNull(serializedTableSchema); checkArgument(serializedTableSchema.length > 0); SchemaVersionUtils.processSchemaVersion(serializedTableSchema[0], TableSchemaInfo.VER_CURRENT); return new TableSchema(Util.deserializeAvroObject(serializedTableSchema, reader)); }
/** * Deserialize the provided serialized row buffer to a new {@link Row} instance * * @param serializedRow byte buffer containing serialized Row * @return new Row instance from serializedRow */ public static Row deserialize(byte[] serializedRow) { checkNotNull(serializedRow); checkArgument(serializedRow.length > 0); SchemaVersionUtils.processSchemaVersion(serializedRow[0], RowSchemaInfo.VER_CURRENT); return new Row(Util.deserializeAvroObject(serializedRow, reader)); }
/** * Deserialize a byte array into an index schema. * * @param serializedIndexSchema Byte array of the index schema [Not null] * @param indexName Name of the index [Not null, Not empty] * @return An index schema for the byte array. */ public static IndexSchema deserialize(byte[] serializedIndexSchema, String indexName) { checkNotNull(serializedIndexSchema); Verify.isNotNullOrEmpty(indexName); return new IndexSchema(indexName, Util.deserializeAvroObject(serializedIndexSchema, reader)); }
/** * Deserialize a byte array into a column schema. * * @param serializedColumnSchema Byte array of the column schema * @param columnName Column name * @return An column schema for the byte array. */ public static ColumnSchema deserialize(byte[] serializedColumnSchema, String columnName) { checkNotNull(serializedColumnSchema); Verify.isNotNullOrEmpty(columnName); return new ColumnSchema(columnName, Util.deserializeAvroObject(serializedColumnSchema, reader)); }