本文整理汇总了Java中com.facebook.swift.codec.ThriftField类的典型用法代码示例。如果您正苦于以下问题:Java ThriftField类的具体用法?Java ThriftField怎么用?Java ThriftField使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ThriftField类属于com.facebook.swift.codec包,在下文中一共展示了ThriftField类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: DatanodeID
import com.facebook.swift.codec.ThriftField; //导入依赖的package包/类
/**
* Create DatanodeID
* @param name (hostname:portNumber)
* @param storageID data storage ID
* @param infoPort info server port
* @param ipcPort ipc server port
*/
@ThriftConstructor
public DatanodeID(@ThriftField(1) String name, @ThriftField(2) String storageID,
@ThriftField(3) int infoPort, @ThriftField(4) int ipcPort) {
this.name = name;
this.storageID = storageID;
this.infoPort = infoPort;
this.ipcPort = ipcPort;
}
开发者ID:rhli,项目名称:hadoop-EAR,代码行数:16,代码来源:DatanodeID.java
示例2: CloseRecoverLeaseRequest
import com.facebook.swift.codec.ThriftField; //导入依赖的package包/类
@ThriftConstructor
public CloseRecoverLeaseRequest(@ThriftField(1) RequestMetaInfo requestMetaInfo,
@ThriftField(2) String src, @ThriftField(3) String clientName,
@ThriftField(4) boolean discardLastBlock) {
super(requestMetaInfo, src, clientName);
this.discardLastBlock = discardLastBlock;
}
开发者ID:rhli,项目名称:hadoop-EAR,代码行数:8,代码来源:ClientProxyRequests.java
示例3: LocatedBlocks
import com.facebook.swift.codec.ThriftField; //导入依赖的package包/类
@ThriftConstructor
public LocatedBlocks(@ThriftField(1) long fileLength,
@ThriftField(2) List<LocatedBlock> locatedBlocks,
@ThriftField(3) boolean isUnderConstuction) {
this.fileLength = fileLength;
blocks = locatedBlocks;
underConstruction = isUnderConstuction;
}
开发者ID:rhli,项目名称:hadoop-EAR,代码行数:9,代码来源:LocatedBlocks.java
示例4: LocatedBlockWithFileName
import com.facebook.swift.codec.ThriftField; //导入依赖的package包/类
@ThriftConstructor
public LocatedBlockWithFileName(@ThriftField(1) Block block,
@ThriftField(2) List<DatanodeInfo> datanodes, @ThriftField(3) long startOffset,
@ThriftField(4) boolean corrupt, @ThriftField(5) String fileName) {
super(block, datanodes, startOffset, corrupt);
this.fullPath = fileName;
}
开发者ID:rhli,项目名称:hadoop-EAR,代码行数:8,代码来源:LocatedBlockWithFileName.java
示例5: GetBlockLocationsRequest
import com.facebook.swift.codec.ThriftField; //导入依赖的package包/类
@ThriftConstructor
public GetBlockLocationsRequest(@ThriftField(1) RequestMetaInfo requestMetaInfo,
@ThriftField(2) String src, @ThriftField(3) long offset, @ThriftField(4) long length) {
super(requestMetaInfo, src);
this.offset = offset;
this.length = length;
}
开发者ID:rhli,项目名称:hadoop-EAR,代码行数:8,代码来源:ClientProxyRequests.java
示例6: SetPermissionRequest
import com.facebook.swift.codec.ThriftField; //导入依赖的package包/类
@ThriftConstructor
public SetPermissionRequest(@ThriftField(1) RequestMetaInfo requestMetaInfo,
@ThriftField(2) String src, @ThriftField(3) @NotNull FsPermission permission) {
super(requestMetaInfo, src);
notNull(permission);
this.permission = permission;
}
开发者ID:rhli,项目名称:hadoop-EAR,代码行数:8,代码来源:ClientProxyRequests.java
示例7: LocatedBlockWithOldGS
import com.facebook.swift.codec.ThriftField; //导入依赖的package包/类
@ThriftConstructor
public LocatedBlockWithOldGS(@ThriftField(1) Block block,
@ThriftField(2) List<DatanodeInfo> datanodes, @ThriftField(3) long startOffset,
@ThriftField(4) boolean corrupt, @ThriftField(5) int dataProtocolVersion,
@ThriftField(6) int namespaceId, @ThriftField(7) int methodFingerPrint,
@ThriftField(8) long oldGenerationStamp) {
super(block, datanodes, startOffset, corrupt, dataProtocolVersion, namespaceId,
methodFingerPrint);
this.oldGenerationStamp = oldGenerationStamp;
}
开发者ID:rhli,项目名称:hadoop-EAR,代码行数:11,代码来源:LocatedBlockWithOldGS.java
示例8: getId
import com.facebook.swift.codec.ThriftField; //导入依赖的package包/类
@ThriftField(1)
public long getId() {
return id;
}
开发者ID:tiaoling,项目名称:high,代码行数:5,代码来源:ThirdPartyCollection.java
示例9: getDate
import com.facebook.swift.codec.ThriftField; //导入依赖的package包/类
@ThriftField(2)
public String getDate() {
return date;
}
开发者ID:tiaoling,项目名称:high,代码行数:5,代码来源:ThirdPartyCollection.java
示例10: save
import com.facebook.swift.codec.ThriftField; //导入依赖的package包/类
public ThirdPartyCollection save(@ThriftField(name = "collection") ThirdPartyCollection collection) throws IllegalAccessException, NoSuchMethodException, InvocationTargetException{
//ThirdPartyCollection th = new ThirdPartyCollection(2, "2017-03-04");
return collection;
}
开发者ID:tiaoling,项目名称:high,代码行数:5,代码来源:ThirdPartyCollectionServiceImpl.java
示例11: update
import com.facebook.swift.codec.ThriftField; //导入依赖的package包/类
public ThirdPartyCollection update(@ThriftField(name = "collection") ThirdPartyCollection collection){
//ThirdPartyCollection th = new ThirdPartyCollection(2, "2017-03-05");
return collection;
}
开发者ID:tiaoling,项目名称:high,代码行数:5,代码来源:ThirdPartyCollectionServiceImpl.java
示例12: getCategory
import com.facebook.swift.codec.ThriftField; //导入依赖的package包/类
@ThriftField(1)
public String getCategory()
{
return category;
}
开发者ID:tiaoling,项目名称:high,代码行数:6,代码来源:LogEntry.java
示例13: getMessage
import com.facebook.swift.codec.ThriftField; //导入依赖的package包/类
@ThriftField(2)
public String getMessage()
{
return message;
}
开发者ID:tiaoling,项目名称:high,代码行数:6,代码来源:LogEntry.java
示例14: save
import com.facebook.swift.codec.ThriftField; //导入依赖的package包/类
@ThriftMethod
public ThirdPartyCollection save(@ThriftField(name = "collection") ThirdPartyCollection collection) throws IllegalAccessException, NoSuchMethodException, InvocationTargetException;
开发者ID:tiaoling,项目名称:high,代码行数:3,代码来源:ThirdPartyCollectionService.java
示例15: update
import com.facebook.swift.codec.ThriftField; //导入依赖的package包/类
@ThriftMethod
public ThirdPartyCollection update(@ThriftField(name = "collection") ThirdPartyCollection collection);
开发者ID:tiaoling,项目名称:high,代码行数:3,代码来源:ThirdPartyCollectionService.java
示例16: log
import com.facebook.swift.codec.ThriftField; //导入依赖的package包/类
@ThriftMethod(value = "Log") ListenableFuture<ResultCode> log(
@ThriftField(value = 1) List<LogEntry> messages);
开发者ID:liaominghua,项目名称:zipkin,代码行数:3,代码来源:Scribe.java
示例17: UnixUserGroupInformation
import com.facebook.swift.codec.ThriftField; //导入依赖的package包/类
@ThriftConstructor
public UnixUserGroupInformation(@ThriftField(1) String userName,
@ThriftField(2) List<String> groups) {
this(userName, groups.toArray(new String[groups.size()]));
}
开发者ID:rhli,项目名称:hadoop-EAR,代码行数:6,代码来源:UnixUserGroupInformation.java
示例18: getUserName
import com.facebook.swift.codec.ThriftField; //导入依赖的package包/类
/** Return the user's name
*/
@ThriftField(1)
public String getUserName() {
return userName;
}
开发者ID:rhli,项目名称:hadoop-EAR,代码行数:7,代码来源:UnixUserGroupInformation.java
示例19: getGroups
import com.facebook.swift.codec.ThriftField; //导入依赖的package包/类
@ThriftField(2)
public List<String> getGroups() {
return Arrays.asList(groupNames);
}
开发者ID:rhli,项目名称:hadoop-EAR,代码行数:5,代码来源:UnixUserGroupInformation.java
示例20: getSrc
import com.facebook.swift.codec.ThriftField; //导入依赖的package包/类
@ThriftField(2)
public String getSrc() {
return super.getSrc();
}
开发者ID:rhli,项目名称:hadoop-EAR,代码行数:5,代码来源:ClientProxyRequests.java
注:本文中的com.facebook.swift.codec.ThriftField类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论