Examples of Meaning


Examples of com.google.storage.onestore.v3.OnestoreEntity.Property.Meaning

    property.setName(name);
    property.setMultiple(multiple);
    PropertyValue newValue = property.getMutableValue();
    if (value != null) {
      Type<?> type = getType(value.getClass());
      Meaning meaning = type.getV3Meaning();
      if (meaning != property.getMeaningEnum()) {
        property.setMeaning(meaning);
      }
      indexed &= type.toV3Value(value, newValue);
    }
View Full Code Here

Examples of com.google.storage.onestore.v3.OnestoreEntity.Property.Meaning

      return Pair.of(null, property);
    }

    Pair<Type<?>, PropertyValue> newValue = createPropertyValue(value);
    Type<?> type = newValue.first;
    Meaning meaning = type.getMeaning();
    if (meaning != Meaning.NO_MEANING) {
      property.setMeaning(meaning);
    }
    property.setValue(newValue.second);
    return new Pair<Type<?>, Property>(type, property);
View Full Code Here

Examples of com.google.storage.onestore.v3.OnestoreEntity.Property.Meaning

   * @param property a not {@code null} property
   * @return {@code null} if no value was set for {@code property}
   */
  public static Comparable<Object> getComparablePropertyValue(Property property) {
    PropertyValue value = property.getValue();
    Meaning meaning = property.getMeaningEnum();
    for (Type<?> type : typeMap.values()) {
      if (type.hasPropertyValue(value) &&
          (meaning == Meaning.INDEX_VALUE || meaning == type.getMeaning()) &&
          type.getComparableFunction() != null) {
        return toComparableObject(
View Full Code Here

Examples of com.google.storage.onestore.v3.OnestoreEntity.Property.Meaning

        cost += 25;
        EntityProto ep = i.next();
        Iterator<Property> pi = ep.propertyIterator();
        while (pi.hasNext()) {
          Property p = pi.next();
          Meaning m = p.getMeaningEnum();
          if (m != null) {
            if (m.compareTo(Meaning.BLOB) != 0
                && m.compareTo(Meaning.TEXT) != 0) {
              cost += 20;
            }
          }
        }
      }
View Full Code Here

Examples of com.google.storage.onestore.v3.OnestoreEntity.Property.Meaning

        cost += 25;
        EntityProto ep = i.next();
        Iterator<Property> pi = ep.propertyIterator();
        while (pi.hasNext()) {
          Property p = pi.next();
          Meaning m = p.getMeaningEnum();
          if (m != null) {
            if (m.compareTo(Meaning.BLOB) != 0
                && m.compareTo(Meaning.TEXT) != 0) {
              cost += 20;
            }
          }
        }
      }
View Full Code Here

Examples of org.takadb.editor.database.entities.CharacterEntity.Meaning

    // character_meanings
    iter = character.meanings.identifierMap.keySet().iterator();
    while (iter.hasNext()) {
      Meaning.Identifier identifier = (Meaning.Identifier)iter.next();
      Meaning meaning = (Meaning)character.meanings.identifierMap.get (identifier);
      sqlSaveCharacterMeaning (conn, character, identifier, meaning);
    }

  }
View Full Code Here

Examples of org.takadb.editor.database.entities.CharacterEntity.Meaning

        int characterId = rs.getInt("character_id");
        CharacterEntity character = (CharacterEntity)allCharacters.get (new Integer (characterId));
        character.meanings.set (
            rs.getString ("source_language_code"),
            rs.getString ("dest_language_code"),
            new Meaning (
                rs.getString ("dest_meaning")
            )
        );
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.