Java Code Examples for com.alibaba.fastjson.util.TypeUtils#fnv1a_64()

The following examples show how to use com.alibaba.fastjson.util.TypeUtils#fnv1a_64() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: JSONPath_t.java    From coming with MIT License 5 votes vote down vote up
public MultiPropertySegment(String[] propertyNames){
    this.propertyNames = propertyNames;
    this.propertyNamesHash = new long[propertyNames.length];
    for (int i = 0; i < propertyNamesHash.length; i++) {
        propertyNamesHash[i] = TypeUtils.fnv1a_64(propertyNames[i]);
    }
}
 
Example 2
Source File: JSONPath_s.java    From coming with MIT License 5 votes vote down vote up
public IntBetweenSegement(String propertyName, long startValue, long endValue, boolean not){
    this.propertyName = propertyName;
    this.propertyNameHash = TypeUtils.fnv1a_64(propertyName);
    this.startValue = startValue;
    this.endValue = endValue;
    this.not = not;
}
 
Example 3
Source File: JSONPath_t.java    From coming with MIT License 5 votes vote down vote up
public ValueSegment(String propertyName, Object value, boolean eq){
    if (value == null) {
        throw new IllegalArgumentException("value is null");
    }
    this.propertyName = propertyName;
    this.propertyNameHash = TypeUtils.fnv1a_64(propertyName);
    this.value = value;
    this.eq = eq;
}
 
Example 4
Source File: JSONPath_s.java    From coming with MIT License 5 votes vote down vote up
public MatchSegement(
        String propertyName,
        String startsWithValue,
        String endsWithValue,
        String[] containsValues,
        boolean not)
{
    this.propertyName = propertyName;
    this.propertyNameHash = TypeUtils.fnv1a_64(propertyName);
    this.startsWithValue = startsWithValue;
    this.endsWithValue = endsWithValue;
    this.containsValues = containsValues;
    this.not = not;

    int len = 0;
    if (startsWithValue != null) {
        len += startsWithValue.length();
    }

    if (endsWithValue != null) {
        len += endsWithValue.length();
    }

    if (containsValues != null) {
        for (String item : containsValues) {
            len += item.length();
        }
    }

    this.minLength = len;
}
 
Example 5
Source File: JSONPath.java    From uavstack with Apache License 2.0 5 votes vote down vote up
public MatchSegement(
        String propertyName,
        String startsWithValue,
        String endsWithValue,
        String[] containsValues,
        boolean not)
{
    this.propertyName = propertyName;
    this.propertyNameHash = TypeUtils.fnv1a_64(propertyName);
    this.startsWithValue = startsWithValue;
    this.endsWithValue = endsWithValue;
    this.containsValues = containsValues;
    this.not = not;

    int len = 0;
    if (startsWithValue != null) {
        len += startsWithValue.length();
    }

    if (endsWithValue != null) {
        len += endsWithValue.length();
    }

    if (containsValues != null) {
        for (String item : containsValues) {
            len += item.length();
        }
    }

    this.minLength = len;
}
 
Example 6
Source File: JSONPath.java    From uavstack with Apache License 2.0 4 votes vote down vote up
public DoubleOpSegement(String propertyName, double value, Operator op){
    this.propertyName = propertyName;
    this.value = value;
    this.op = op;
    propertyNameHash = TypeUtils.fnv1a_64(propertyName);
}
 
Example 7
Source File: JSONPath_t.java    From coming with MIT License 4 votes vote down vote up
public RefOpSegement(String propertyName, Segment refSgement, Operator op){
    this.propertyName = propertyName;
    this.refSgement = refSgement;
    this.op = op;
    propertyNameHash = TypeUtils.fnv1a_64(propertyName);
}
 
Example 8
Source File: JSONPath_s.java    From coming with MIT License 4 votes vote down vote up
public RlikeSegement(String propertyName, String pattern, boolean not){
    this.propertyName = propertyName;
    this.propertyNameHash = TypeUtils.fnv1a_64(propertyName);
    this.pattern = Pattern.compile(pattern);
    this.not = not;
}
 
Example 9
Source File: JSONPath_s.java    From coming with MIT License 4 votes vote down vote up
public NullSegement(String propertyName){
    this.propertyName = propertyName;
    this.propertyNameHash = TypeUtils.fnv1a_64(propertyName);
}
 
Example 10
Source File: JSONPath_t.java    From coming with MIT License 4 votes vote down vote up
public RlikeSegement(String propertyName, String pattern, boolean not){
    this.propertyName = propertyName;
    this.propertyNameHash = TypeUtils.fnv1a_64(propertyName);
    this.pattern = Pattern.compile(pattern);
    this.not = not;
}
 
Example 11
Source File: JSONPath_s.java    From coming with MIT License 4 votes vote down vote up
public IntOpSegement(String propertyName, long value, Operator op){
    this.propertyName = propertyName;
    this.propertyNameHash = TypeUtils.fnv1a_64(propertyName);
    this.value = value;
    this.op = op;
}
 
Example 12
Source File: JSONPath.java    From uavstack with Apache License 2.0 4 votes vote down vote up
public StringOpSegement(String propertyName, String value, Operator op){
    this.propertyName = propertyName;
    this.propertyNameHash = TypeUtils.fnv1a_64(propertyName);
    this.value = value;
    this.op = op;
}
 
Example 13
Source File: JSONPath.java    From uavstack with Apache License 2.0 4 votes vote down vote up
public RlikeSegement(String propertyName, String pattern, boolean not){
    this.propertyName = propertyName;
    this.propertyNameHash = TypeUtils.fnv1a_64(propertyName);
    this.pattern = Pattern.compile(pattern);
    this.not = not;
}
 
Example 14
Source File: JSONPath.java    From uavstack with Apache License 2.0 4 votes vote down vote up
public StringInSegement(String propertyName, String[] values, boolean not){
    this.propertyName = propertyName;
    this.propertyNameHash = TypeUtils.fnv1a_64(propertyName);
    this.values = values;
    this.not = not;
}
 
Example 15
Source File: JSONPath.java    From uavstack with Apache License 2.0 4 votes vote down vote up
public IntObjInSegement(String propertyName, Long[] values, boolean not){
    this.propertyName = propertyName;
    this.propertyNameHash = TypeUtils.fnv1a_64(propertyName);
    this.values = values;
    this.not = not;
}
 
Example 16
Source File: JSONPath.java    From uavstack with Apache License 2.0 4 votes vote down vote up
public IntInSegement(String propertyName, long[] values, boolean not){
    this.propertyName = propertyName;
    this.propertyNameHash = TypeUtils.fnv1a_64(propertyName);
    this.values = values;
    this.not = not;
}
 
Example 17
Source File: JSONPath_s.java    From coming with MIT License 4 votes vote down vote up
public RegMatchSegement(String propertyName, Pattern pattern, Operator op){
    this.propertyName = propertyName;
    this.propertyNameHash = TypeUtils.fnv1a_64(propertyName);
    this.pattern = pattern;
    this.op = op;
}
 
Example 18
Source File: JSONPath.java    From uavstack with Apache License 2.0 4 votes vote down vote up
public NullSegement(String propertyName){
    this.propertyName = propertyName;
    this.propertyNameHash = TypeUtils.fnv1a_64(propertyName);
}
 
Example 19
Source File: JSONPath_t.java    From coming with MIT License 4 votes vote down vote up
public DoubleOpSegement(String propertyName, double value, Operator op){
    this.propertyName = propertyName;
    this.value = value;
    this.op = op;
    propertyNameHash = TypeUtils.fnv1a_64(propertyName);
}
 
Example 20
Source File: JSONPath_s.java    From coming with MIT License 4 votes vote down vote up
public IntObjInSegement(String propertyName, Long[] values, boolean not){
    this.propertyName = propertyName;
    this.propertyNameHash = TypeUtils.fnv1a_64(propertyName);
    this.values = values;
    this.not = not;
}