GetTraits

See javadoc - uk.gov.gchq.gaffer.store.operation.GetTraits

Gets the traits of the current store.

Required fields

No required fields

Examples

Get all traits

Using this directed graph:


    --> 4 <--
  /     ^     \
 /      |      \
1  -->  2  -->  3
         \
           -->  5

Java
JSON
Full JSON
Python
final GetTraits operation = new GetTraits.Builder()
        .currentTraits(false)
        .build();
{
  "class" : "GetTraits",
  "currentTraits" : false
}
{
  "class" : "uk.gov.gchq.gaffer.store.operation.GetTraits",
  "currentTraits" : false
}
g.GetTraits( 
  current_traits=False 
)

Result:

Java
JSON
QUERY_AGGREGATION
PRE_AGGREGATION_FILTERING
POST_AGGREGATION_FILTERING
ORDERED
INGEST_AGGREGATION
VISIBILITY
POST_TRANSFORMATION_FILTERING
TRANSFORMATION
STORE_VALIDATION
MATCHED_VERTEX
[ "QUERY_AGGREGATION", "PRE_AGGREGATION_FILTERING", "POST_AGGREGATION_FILTERING", "ORDERED", "INGEST_AGGREGATION", "VISIBILITY", "POST_TRANSFORMATION_FILTERING", "TRANSFORMATION", "STORE_VALIDATION", "MATCHED_VERTEX" ]


Get current traits

This will only return traits that are applicable to your current schema. This schema doesn't have a visibility property, so the VISIBILITY trait is not returned.

Using this directed graph:


    --> 4 <--
  /     ^     \
 /      |      \
1  -->  2  -->  3
         \
           -->  5

Java
JSON
Full JSON
Python
final GetTraits operation = new GetTraits.Builder()
        .currentTraits(true)
        .build();
{
  "class" : "GetTraits",
  "currentTraits" : true
}
{
  "class" : "uk.gov.gchq.gaffer.store.operation.GetTraits",
  "currentTraits" : true
}
g.GetTraits( 
  current_traits=True 
)

Result:

Java
JSON
QUERY_AGGREGATION
PRE_AGGREGATION_FILTERING
POST_AGGREGATION_FILTERING
ORDERED
INGEST_AGGREGATION
POST_TRANSFORMATION_FILTERING
TRANSFORMATION
STORE_VALIDATION
MATCHED_VERTEX
[ "QUERY_AGGREGATION", "PRE_AGGREGATION_FILTERING", "POST_AGGREGATION_FILTERING", "ORDERED", "INGEST_AGGREGATION", "POST_TRANSFORMATION_FILTERING", "TRANSFORMATION", "STORE_VALIDATION", "MATCHED_VERTEX" ]


results matching ""

    No results matching ""