public class ElasticsearchMappingValidator extends Object implements IMappingValidator
Constructor and Description |
---|
ElasticsearchMappingValidator(List<Tuple> mappings) |
Modifier and Type | Method and Description |
---|---|
HashMap<String,Object> |
elasticsearchMappingValidation(Tuple docSrc,
Tuple mapping) |
List<Tuple> |
validate(Tuple docSrc)
Validate tuple with already provided mapping tuples.
|
Tuple |
validate(Tuple docSrc,
Tuple mapping)
Validate tuple with provided mapping tuple.
|
boolean |
validateDate(String field,
String expectedFormat) |
boolean |
validateDouble(String field) |
boolean |
validateFloat(String field) |
boolean |
validateGeopoint(String field) |
boolean |
validateInteger(String field) |
boolean |
validateIPAddress(String field) |
public List<Tuple> validate(Tuple docSrc)
IMappingValidator
validate
in interface IMappingValidator
docSrc
- tuple to validatepublic Tuple validate(Tuple docSrc, Tuple mapping)
IMappingValidator
validate
in interface IMappingValidator
docSrc
- tuple to validatemapping
- mapping used to validate tuple schemapublic HashMap<String,Object> elasticsearchMappingValidation(Tuple docSrc, Tuple mapping)
public boolean validateInteger(String field)
public boolean validateFloat(String field)
public boolean validateDouble(String field)
public boolean validateGeopoint(String field)
public boolean validateIPAddress(String field)
Copyright © 2022. All rights reserved.