Package io.trino.plugin.accumulo.conf
Class AccumuloTableProperties
java.lang.Object
io.trino.plugin.accumulo.conf.AccumuloTableProperties
Class contains all table properties for the Accumulo connector. Used when creating a table:
CREATE TABLE foo (a VARCHAR, b INT) WITH (column_mapping = 'b:md:b', external = true);
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetColumnMapping(Map<String, Object> tableProperties) Gets the value of the column_mapping property, or Optional.empty() if not set.getIndexColumns(Map<String, Object> tableProperties) getLocalityGroups(Map<String, Object> tableProperties) Gets the configured locality groups for the table, or Optional.empty() if not set.getScanAuthorizations(Map<String, Object> tableProperties) static StringgetSerializerClass(Map<String, Object> tableProperties) Gets theAccumuloRowSerializerclass name to use for this tableList<PropertyMetadata<?>>static booleanisExternal(Map<String, Object> tableProperties)
-
Field Details
-
COLUMN_MAPPING
- See Also:
-
INDEX_COLUMNS
- See Also:
-
EXTERNAL
- See Also:
-
LOCALITY_GROUPS
- See Also:
-
ROW_ID
- See Also:
-
SERIALIZER
- See Also:
-
SCAN_AUTHS
- See Also:
-
-
Constructor Details
-
AccumuloTableProperties
public AccumuloTableProperties()
-
-
Method Details
-
getTableProperties
-
getColumnMapping
public static Optional<Map<String,Map.Entry<String, getColumnMappingString>>> (Map<String, Object> tableProperties) Gets the value of the column_mapping property, or Optional.empty() if not set.Parses the value into a map of Trino column name to a pair of strings, the Accumulo column family and qualifier.
- Parameters:
tableProperties- The map of table properties- Returns:
- The column mapping, Trino name to (accumulo column family, qualifier)
-
getIndexColumns
-
getLocalityGroups
public static Optional<Map<String,Set<String>>> getLocalityGroups(Map<String, Object> tableProperties) Gets the configured locality groups for the table, or Optional.empty() if not set.All strings are lowercase.
- Parameters:
tableProperties- The map of table properties- Returns:
- Optional map of locality groups
-
getRowId
-
getScanAuthorizations
-
getSerializerClass
Gets theAccumuloRowSerializerclass name to use for this table- Parameters:
tableProperties- The map of table properties- Returns:
- The name of the AccumuloRowSerializer class
-
isExternal
-