[ 
https://issues.apache.org/jira/browse/ACCUMULO-4595?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15895148#comment-15895148
 ] 

Christopher Tubbs commented on ACCUMULO-4595:
---------------------------------------------

A custom output format could be modified to validate table constraints. That 
seems like the simplest option.

> Simple validator for inserting data
> -----------------------------------
>
>                 Key: ACCUMULO-4595
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-4595
>             Project: Accumulo
>          Issue Type: New Feature
>            Reporter: Michael Wall
>            Priority: Minor
>             Fix For: 2.0.0
>
>
> It would be useful to be able to write custom validation for specific parts 
> of a Key or Value that could be applied to both mutations on live ingest and 
> writing RFiles for bulk loads.  Initially I thought this could be done with a 
> table constraint, but didn't consider the importdirectory use case where 
> RFiles are bulk imported.  This validation does not need to track state 
> though.  Thinking this is really only for simple validation.  Couple of 
> contrived examples.
> 1) Validate the CF starts with the string "abcd".
> 2) Validate the CV only contains strings from a predefined list of strings.
> 3) Validate the row only contains letters or numbers.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to