UserType usertype = (UserType) listType.getElementsType(); Collection result = new ArrayList(); Iterator collectionItems = outputCollection.iterator();
if (((ListType) type).getElementsType().getClass().getSimpleName().equals("UserType"))
@Override public boolean referencesUserType(String userTypeName) { return getElementsType().referencesUserType(userTypeName); }
public boolean equals(ListType lt, Value v) { if (elements.size() != v.elements.size()) return false; for (int i = 0; i < elements.size(); i++) if (lt.getElementsType().compare(elements.get(i), v.elements.get(i)) != 0) return false; return true; }
public boolean equals(ListType lt, Value v) { if (elements.size() != v.elements.size()) return false; for (int i = 0; i < elements.size(); i++) if (lt.getElementsType().compare(elements.get(i), v.elements.get(i)) != 0) return false; return true; }
@Override public boolean referencesUserType(String userTypeName) { return getElementsType().referencesUserType(userTypeName); }
@Override public boolean referencesDuration() { return getElementsType().referencesDuration(); }
public boolean equals(ListType lt, Value v) { if (elements.size() != v.elements.size()) return false; for (int i = 0; i < elements.size(); i++) if (lt.getElementsType().compare(elements.get(i), v.elements.get(i)) != 0) return false; return true; }
@Override public boolean referencesDuration() { return getElementsType().referencesDuration(); }
@Override public boolean referencesUserType(String userTypeName) { return getElementsType().referencesUserType(userTypeName); }
public boolean equals(ListType lt, Value v) { if (elements.size() != v.elements.size()) return false; for (int i = 0; i < elements.size(); i++) if (lt.getElementsType().compare(elements.get(i), v.elements.get(i)) != 0) return false; return true; }
@Override public boolean referencesDuration() { return getElementsType().referencesDuration(); }
static boolean listAppliesTo(ListType type, Iterator<Cell> iter, List<ByteBuffer> elements, Operator operator) { return setOrListAppliesTo(type.getElementsType(), iter, elements.iterator(), operator, false); }
public boolean equals(ListType lt, Value v) { if (elements.size() != v.elements.size()) return false; for (int i = 0; i < elements.size(); i++) if (lt.getElementsType().compare(elements.get(i), v.elements.get(i)) != 0) return false; return true; }
@Override public boolean referencesUserType(String userTypeName) { return getElementsType().referencesUserType(userTypeName); }
@Override public boolean referencesDuration() { return getElementsType().referencesDuration(); }
private int compareCollectionTypes(AbstractType<?> type, AbstractType<?> otherType) { if (type instanceof MapType) return compareMapType((MapType<?, ?>) type, (MapType<?, ?>) otherType); if (type instanceof SetType) return compare(((SetType<?>) type).getElementsType(), ((SetType<?>) otherType).getElementsType()); return compare(((ListType<?>) type).getElementsType(), ((ListType<?>) otherType).getElementsType()); }
private int compareCollectionTypes(AbstractType<?> type, AbstractType<?> otherType) { if (type instanceof MapType) return compareMapType((MapType<?, ?>) type, (MapType<?, ?>) otherType); if (type instanceof SetType) return compare(((SetType<?>) type).getElementsType(), ((SetType<?>) otherType).getElementsType()); return compare(((ListType<?>) type).getElementsType(), ((ListType<?>) otherType).getElementsType()); }
private int compareCollectionTypes(AbstractType<?> type, AbstractType<?> otherType) { if (type instanceof MapType) return compareMapType((MapType<?, ?>) type, (MapType<?, ?>) otherType); if (type instanceof SetType) return compare(((SetType<?>) type).getElementsType(), ((SetType<?>) otherType).getElementsType()); return compare(((ListType<?>) type).getElementsType(), ((ListType<?>) otherType).getElementsType()); }
public static ColumnSpecification valueSpecOf(ColumnSpecification column) { return new ColumnSpecification(column.ksName, column.cfName, new ColumnIdentifier("value(" + column.name + ")", true), ((ListType)column.type).getElementsType()); }