private QNode() { super(PlasmaTypeHelper.INSTANCE.getType(Node.class)); }
@Override public PlasmaType decodeType(byte[] bytes) { String[] tokens = Bytes.toString(bytes).split(ROOT_TYPE_DELIM); return (PlasmaType) PlasmaTypeHelper.INSTANCE.findTypeByPhysicalName(tokens[0], tokens[1]); }
private QDoubleNode() { super(PlasmaTypeHelper.INSTANCE.getType(DoubleNode.class)); }
protected PlasmaType findRootType(TableReader childTableReader, GraphColumnKeyFactory keyFactory, PlasmaType subType, CellValues childResult) throws IOException { byte[] typeQual = keyFactory.createColumnKey(subType, EntityMetaKey.TYPE); byte[] rootType = childResult.getColumnValue(childTableReader.getTableConfig() .getDataColumnFamilyNameBytes(), typeQual); if (rootType != null) { String[] tokens = Bytes.toString(rootType).split(GraphRow.ROOT_TYPE_DELIM); PlasmaType result = (PlasmaType) PlasmaTypeHelper.INSTANCE.findTypeByPhysicalName(tokens[0], tokens[1]); if (result == null) throw new GraphServiceException("no type found for '" + Bytes.toString(rootType) + "'"); return result; } return null; }
private QDateNode() { super(PlasmaTypeHelper.INSTANCE.getType(DateNode.class)); }
protected PlasmaType fetchRootType(TableReader childTableReader, GraphColumnKeyFactory keyFactory, PlasmaType subType, CellValues childResult) throws IOException { byte[] typeQual = keyFactory.createColumnKey(subType, EntityMetaKey.TYPE); byte[] rootType = childResult.getColumnValue(childTableReader.getTableConfig() .getDataColumnFamilyNameBytes(), typeQual); if (rootType == null) throw new GraphServiceException("expected column: " + Bytes.toString(typeQual) + " for row '" + childResult.getRowKey() + "' in table: " + childTableReader.getTableConfig().getName()); String[] tokens = Bytes.toString(rootType).split(GraphRow.ROOT_TYPE_DELIM); PlasmaType result = (PlasmaType) PlasmaTypeHelper.INSTANCE.findTypeByPhysicalName(tokens[0], tokens[1]); if (result == null) throw new GraphServiceException("no type found for '" + Bytes.toString(rootType) + "'"); return result; }
private QMutual() { super(PlasmaTypeHelper.INSTANCE.getType(Mutual.class)); }
private QActor() { super(PlasmaTypeHelper.INSTANCE.getType(Actor.class)); }
private QConcurrent() { super(PlasmaTypeHelper.INSTANCE.getType(Concurrent.class)); }
private QTopic() { super(PlasmaTypeHelper.INSTANCE.getType(Topic.class)); }
private QIntNode() { super(PlasmaTypeHelper.INSTANCE.getType(IntNode.class)); }
private QMedia() { super(PlasmaTypeHelper.INSTANCE.getType(Media.class)); }
private QEdge() { super(PlasmaTypeHelper.INSTANCE.getType(Edge.class)); }
private QPhoto() { super(PlasmaTypeHelper.INSTANCE.getType(Photo.class)); }
private QLead() { super(PlasmaTypeHelper.INSTANCE.getType(Lead.class)); }
private QStoryFeed() { super(PlasmaTypeHelper.INSTANCE.getType(StoryFeed.class)); }
private QUnsignedLongNode() { super(PlasmaTypeHelper.INSTANCE.getType(UnsignedLongNode.class)); }
private QFloatNode() { super(PlasmaTypeHelper.INSTANCE.getType(FloatNode.class)); }
private QUnsignedIntNode() { super(PlasmaTypeHelper.INSTANCE.getType(UnsignedIntNode.class)); }
private QFriendship() { super(PlasmaTypeHelper.INSTANCE.getType(Friendship.class)); }