azure-data-tables-java
Build Azure Table Storage Apps with Java
Need to store structured NoSQL data at scale? This skill helps you implement table storage solutions using Azure Tables SDK for Java with proper authentication and efficient query patterns.
Descargar el ZIP de la skill
Subir en Claude
Ve a Configuración → Capacidades → Skills → Subir skill
Activa y empieza a usar
Pruébalo
Usando "azure-data-tables-java". Create an entity and handle conflict errors
Resultado esperado:
TableEntity entity = new TableEntity("products", "laptop-001").addProperty("Name", "Laptop").addProperty("Price", 999.99);
try {
tableClient.createEntity(entity);
} catch (TableServiceException e) {
if (e.getResponse().getStatusCode() == 409) {
System.out.println("Entity already exists - use upsert instead");
}
}
Usando "azure-data-tables-java". Query with filter and projection
Resultado esperado:
ListEntitiesOptions options = new ListEntitiesOptions()
.setFilter("PartitionKey eq 'electronics' and Price gt 100")
.setSelect("Name", "Price")
.setTop(10);
for (TableEntity entity : tableClient.listEntities(options, null, null)) {
System.out.printf("%s: $%.2f%n", entity.getProperty("Name"), entity.getProperty("Price"));
}
Auditoría de seguridad
SeguroThis skill is safe for publication. All static analysis findings are false positives. The external_commands detections are Java code examples in markdown format, not shell execution. URL references are environment variable documentation examples, not hardcoded endpoints. The cryptographic and system reconnaissance flags are incorrect pattern matches on documentation text and getter method names.
Puntuación de calidad
Lo que puedes crear
Application State Storage
Store user sessions, application settings, or feature flags with fast partition-based lookups
IoT Telemetry Data
Ingest and query sensor data using device ID as partition key with timestamp row keys
Product Catalog Management
Maintain product inventory with category-based partitions and efficient price/availability queries
Prueba estos prompts
Create a TableServiceClient using connection string authentication, then create a table called 'inventory' if it does not exist.
Show me how to create a new entity with partition key 'products', row key 'laptop-001', and properties Name, Price, and Quantity. Then retrieve and update the price.
Query all entities where PartitionKey equals 'electronics' and Price is greater than 100, returning only Name and Price properties with a limit of 10 results.
Create a batch transaction that inserts three entities with the same partition key 'batch' and row keys 'row1', 'row2', and 'row3' atomically.
Mejores prácticas
- Design partition keys to distribute queries evenly and avoid hotspots
- Always filter by PartitionKey in queries for optimal performance
- Use batch transactions for atomic updates to entities sharing the same partition key
Evitar
- Using timestamps or sequential values as partition keys causes uneven load distribution
- Querying without PartitionKey filter results in full table scans and poor performance
- Storing entities larger than size limits causes failures - keep under 1MB for Storage or 2MB for Cosmos
Preguntas frecuentes
What is the difference between Azure Table Storage and Cosmos DB Table API?
How do I choose a good partition key?
Can I update just one property of an entity?
What authentication methods are supported?
How many entities can I include in a batch transaction?
What does a 409 conflict error mean?
Detalles del desarrollador
Autor
sickn33Licencia
MIT
Repositorio
https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/azure-data-tables-javaRef.
main
Estructura de archivos
📄 SKILL.md